Sharpen Heightfield Terrains
3622 6 1-
- tadian
- Member
- 92 posts
- Joined: March 2013
- Offline
-
- animatrix_
- Member
- 5100 posts
- Joined: Feb. 2012
- Offline
Hi,
You can perform an unsharp mask in VEX on a volume like this where the second input is the output of a HeightField Blur, using a Volume Wrangle SOP:
You can perform an unsharp mask in VEX on a volume like this where the second input is the output of a HeightField Blur, using a Volume Wrangle SOP:
int index = nametoprim ( 1, chs("layer") ); float d = volumesample ( 1, index, @P ); @density += ( @density - d ) * ch("amount");
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]
-
- tadian
- Member
- 92 posts
- Joined: March 2013
- Offline
-
- animatrix_
- Member
- 5100 posts
- Joined: Feb. 2012
- Offline
tadian
Wow, thank you. What are you inputing into the layer?
height
This is inline with other HF SOPs that expects a layer name.
And make sure to bind height to density:
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]
-
- tadian
- Member
- 92 posts
- Joined: March 2013
- Offline
-
- yx042117
- Member
- 1 posts
- Joined: Feb. 2021
- Offline
-
- animatrix_
- Member
- 5100 posts
- Joined: Feb. 2012
- Offline
yx042117
hi
thank you for your help.
is it okay to write it that way?
float d = volumesample(1,"height",@P);
@height += (@height - d)*ch("amount");
thank!
Yes that's valid as well.
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


