Particle banking rotation
2829 4 0- JoshFoster
- Member
- 11 posts
- Joined: May 2016
- Offline
Hi all,
I'm having a difficult time adding smooth banking rotation to particles. From the older threads that I looked at like this one [www.sidefx.com], it seems the popular recommendation is smoothing in CHOP's, however I'm trying to avoid this route because my understanding is CHOP's isn't multi-threaded and doesn't scale well.
Attached is the test file that I've been working on. I have the bank angle set to the magnitude of the XZ acceleration. Is there an operator or VEX expression that will smooth an attribute over time? Any help or hints would be greatly appreciated.
I'm having a difficult time adding smooth banking rotation to particles. From the older threads that I looked at like this one [www.sidefx.com], it seems the popular recommendation is smoothing in CHOP's, however I'm trying to avoid this route because my understanding is CHOP's isn't multi-threaded and doesn't scale well.
Attached is the test file that I've been working on. I have the bank angle set to the magnitude of the XZ acceleration. Is there an operator or VEX expression that will smooth an attribute over time? Any help or hints would be greatly appreciated.
Edited by JoshFoster - Oct. 3, 2018 12:37:37
- Enivob
- Member
- 2573 posts
- Joined: June 2008
- Offline
Check out the lerp function.
http://www.sidefx.com/docs/houdini/vex/functions/lerp.html [www.sidefx.com]
Or maybe the AttributeBlur node.
The problem may be in this line.
If you examine the result of angle you will discover that is can exceed the range values you have specified. When that happens, you are losing resolution in your values and the fit will act a bit like a clamp. It might be better to clamp the xy_accel_mag so the resulting angle falls within the fit range.
Is bank_angle output supposed to be in radians?
http://www.sidefx.com/docs/houdini/vex/functions/lerp.html [www.sidefx.com]
Or maybe the AttributeBlur node.
The problem may be in this line.
f@bank_angle = fit(angle, -PI/2, PI/2, -PI/5, PI/5);
Is bank_angle output supposed to be in radians?
Edited by Enivob - Oct. 4, 2018 10:27:54
Using Houdini Indie 20.0
Windows 11 64GB Ryzen 16 core.
nVidia 3050RTX 8BG RAM.
Windows 11 64GB Ryzen 16 core.
nVidia 3050RTX 8BG RAM.
- Enivob
- Member
- 2573 posts
- Joined: June 2008
- Offline
The jitter does seem to be related to the distance from curve. When I copy a few boxes along the path I can see that the boxes closest to the curve points exhibit less jitter on banking than the ones farther away from the curve/path.
Using Houdini Indie 20.0
Windows 11 64GB Ryzen 16 core.
nVidia 3050RTX 8BG RAM.
Windows 11 64GB Ryzen 16 core.
nVidia 3050RTX 8BG RAM.
- brianBurke
- Member
- 192 posts
- Joined: Nov. 2008
- Offline
- JoshFoster
- Member
- 11 posts
- Joined: May 2016
- Offline
-
- Quick Links