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
12241 10 0-
- Tanner Chow
- Member
- 17 posts
- Joined: 8月 2014
- オフライン
-
- mestela
- Member
- 1850 posts
- Joined: 5月 2006
- オフライン
-
- Tanner Chow
- Member
- 17 posts
- Joined: 8月 2014
- オフライン
-
- Alexandre Dizeux
- Member
- 17 posts
- Joined: 2月 2017
- オンライン
-
- buzzdev
- Member
- 1 posts
- Joined: 11月 2018
- オフライン
-
- animatrix_
- Member
- 5041 posts
- Joined: 2月 2012
- オンライン
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] https://lnk.bio/animatrix [lnk.bio]
Get to the NEXT level in Houdini & VEX with Pragmatic VEX! [www.pragmatic-vfx.com] https://lnk.bio/animatrix [lnk.bio]

-
- tapoh
- Member
- 1 posts
- Joined: 1月 2019
- オフライン
-
- jpparkeramnh
- Member
- 178 posts
- Joined: 1月 2013
- オフライン
-
- Kareeem
- Member
- 94 posts
- Joined: 10月 2021
- オフライン
-
- Kareeem
- Member
- 94 posts
- Joined: 10月 2021
- オフライン
-
- animatrix_
- Member
- 5041 posts
- Joined: 2月 2012
- オンライン
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] https://lnk.bio/animatrix [lnk.bio]
Get to the NEXT level in Houdini & VEX with Pragmatic VEX! [www.pragmatic-vfx.com] https://lnk.bio/animatrix [lnk.bio]

-
- Quick Links