hey all!
I need a way to limit the acceleration of each particle in a POP net.
I can't seem to find a way to accurately calculate the change in velocity of the particles.
Any help is appreciated, thanks in advance!
POP Acceleration Limit
514 1 0- luanrogalewski
- Member
- 4 posts
- Joined: 9月 2024
- Offline
- animatrix_
- Member
- 4729 posts
- Joined: 2月 2012
- Offline
Hi,
You can do it like this:
Store old vel:
Limit_acceleration:
I used this method in a lot of RBD sims on Aquaman destruction shots and LOTR: Rings of Power bridge destruction. Works a lot better than POP Speed Limit DOP.
You can do it like this:
Store old vel:
v@oldv = @v; i@has_oldv = 1;
Limit_acceleration:
if ( i@has_oldv ) { vector dv = @v - v@oldv; float accel = length ( dv ); float maxaccel = ch("maxaccel") * @TimeInc; dv *= maxaccel / accel; @v = select ( accel > maxaccel, v@oldv + dv, @v ); }
I used this method in a lot of RBD sims on Aquaman destruction shots and LOTR: Rings of Power bridge destruction. Works a lot better than POP Speed Limit DOP.
Senior FX TD @ Industrial Light & Magic
Get to the NEXT level in Houdini & VEX with Pragmatic VEX! [www.pragmatic-vfx.com]
youtube.com/@pragmaticvfx | patreon.com/animatrix | pragmaticvfx.gumroad.com
Get to the NEXT level in Houdini & VEX with Pragmatic VEX! [www.pragmatic-vfx.com]
youtube.com/@pragmaticvfx | patreon.com/animatrix | pragmaticvfx.gumroad.com
-
- Quick Links