Login | Register 
FEATURES
APPLICATIONS
DOWNLOADS
EDUCATION
BLOG
WIKI
FORUM
STORE

FIXED: Clamping acceleration in a Lag CHOP?

General discussion about anything TouchDesigner

FIXED: Clamping acceleration in a Lag CHOP?

Postby mji » Tue Aug 28, 2018 2:15 pm

Hi,
I'm attempting to clamp acceleration with a lag CHOP, but it doesn't work as I expect. In the attached example, I've limited the velocity to 100 and the acceleration to 50. I then sample both with Slope CHOPs. Move the slider quickly to generate data... The velocity nicely respects the limits, while the acceleration limit is seemingly ignored. Am I doing something wrong (likely)? Is this a bug?
thanks!
Attachments
lagAccelQuestion.toe
(5.72 KiB) Downloaded 39 times
mji
 
Posts: 320
Joined: Tue Oct 28, 2008 4:21 pm

Re: Clamping acceleration in a Lag CHOP?

Postby mji » Wed Aug 29, 2018 2:26 pm

Update: It seems like it works correctly if I divide my desired acceleration limit by 60 and enter that in the acceleration limit field... I'm guessing that 60 is not an accident... seems likely to be tied to the global frame rate? This does kind of look like a bug to me now...
-michael
mji
 
Posts: 320
Joined: Tue Oct 28, 2008 4:21 pm

Re: Clamping acceleration in a Lag CHOP?

Postby rob » Thu Aug 30, 2018 11:55 am

Thanks for the example.
It was in fact calculating acceleration units wrong, by a factor of the sample rate as you noticed.
This will be fixed in an upcoming build.
User avatar
rob
Staff
 
Posts: 1621
Joined: Tue Nov 13, 2007 1:14 am

Re: FIXED: Clamping acceleration in a Lag CHOP?

Postby mji » Thu Apr 11, 2019 12:56 pm

Is this fix still coming? It's still wrong in the current build.
thanks!
michael
mji
 
Posts: 320
Joined: Tue Oct 28, 2008 4:21 pm

Re: FIXED: Clamping acceleration in a Lag CHOP?

Postby rob » Thu Apr 11, 2019 4:04 pm

When I wiggle the slider, I see the acceleration clamp out between 50 and -50 (as specified in the Lag parameters).

In terms of velocity, when I lower the Lag parameters to values below 10, I likewise see the calculated velocity clamped between those values.

Can you confirm the build you are running?

Thanks,
Rob.
User avatar
rob
Staff
 
Posts: 1621
Joined: Tue Nov 13, 2007 1:14 am

Re: FIXED: Clamping acceleration in a Lag CHOP?

Postby mji » Fri Apr 12, 2019 2:58 pm

I see acceleration go up to 2000 in each direction. I'm running build 2018.27910 on MacOS. As far as I can tell this is the latest stable build (posted in March).
thanks!
michael
mji
 
Posts: 320
Joined: Tue Oct 28, 2008 4:21 pm

Re: FIXED: Clamping acceleration in a Lag CHOP?

Postby rob » Fri Apr 12, 2019 6:21 pm

Ah I see.
We implemented the fix in the experimental branch, as it causes a backward compatibility issue.
Can you try that branch?
Thanks,
Rob.
User avatar
rob
Staff
 
Posts: 1621
Joined: Tue Nov 13, 2007 1:14 am

Re: FIXED: Clamping acceleration in a Lag CHOP?

Postby mji » Wed Apr 17, 2019 1:16 pm

I see... I wonder if maybe it would be worth having a separate field for "classic mode" acceleration vs real-world acceleration in order to not break older projects that may have just eyeballed the acceleration values? For my use case, real-world units are important.
-michael
mji
 
Posts: 320
Joined: Tue Oct 28, 2008 4:21 pm

Re: FIXED: Clamping acceleration in a Lag CHOP?

Postby rob » Thu Apr 18, 2019 10:02 am

Possibly. We consider each 'Legacy Mode' addition pretty carefully, weighing parameter bloat vs list of compatibility issues in the release notes.
We'll take this one into consideration as well.
Cheers,
Rob
User avatar
rob
Staff
 
Posts: 1621
Joined: Tue Nov 13, 2007 1:14 am


Return to General TouchDesigner Discussion

Who is online

Users browsing this forum: No registered users and 14 guests