Hi everyone, I am dabbling with volumes recently and I wish to know how can I have a fall-off of volume, gradiently? (see image attached).
I have zero to minimal knowledge of volume vop. Forum Users talk about volume sample and volume gradient when I search on forums regarding this issue.
**Additional Info– Better still if I can control, say, point A is densest and point B is thinnest.**
Thank you in advance.
Gradient Fall-off Volume
10940 10 0- Tanner Chow
- Member
- 17 posts
- Joined: Aug. 2014
- Offline
- mestela
- Member
- 1802 posts
- Joined: May 2006
- Offline
- Tanner Chow
- Member
- 17 posts
- Joined: Aug. 2014
- Offline
- Alexandre Dizeux
- Member
- 17 posts
- Joined: Feb. 2017
- Offline
- buzzdev
- Member
- 1 posts
- Joined: Nov. 2018
- Offline
- animatrix_
- Member
- 4723 posts
- Joined: Feb. 2012
- Offline
Inside a volumewrangle you can just do:
@density = 1 - relbbox(@P).y;
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
- tapoh
- Member
- 1 posts
- Joined: Jan. 2019
- Offline
- jpparkeramnh
- Member
- 178 posts
- Joined: Jan. 2013
- Offline
- Kareeem
- Member
- 63 posts
- Joined: Oct. 2021
- Offline
- Kareeem
- Member
- 63 posts
- Joined: Oct. 2021
- Offline
- animatrix_
- Member
- 4723 posts
- Joined: Feb. 2012
- Offline
If you want to have falloff for 3 axes, you can do something like this in a Volume Wrangle SOP:
vector r = relbbox ( @P ); @density = ( 4 * r.x * ( 1 - r.x ) + 4 * r.y * ( 1 - r.y ) + 4 * r.z * ( 1 - r.z ) ) / 3;
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