Petros Tzathas
ptzdan
About Me
Connect
LOCATION
Not Specified
WEBSITE
Houdini Skills
Availability
Not Specified
Recent Forum Posts
Sample the mask of a heightfield in Attribute Wrangle Sept. 18, 2023, 12:17 p.m.
I had imagined that it had something to do with some intrinsic but when I looked for it I failed to find it. Thanks again for clearing that up
Sample the mask of a heightfield in Attribute Wrangle Sept. 18, 2023, 11:43 a.m.
Thank you. This solved the issue. It still seems to me a bit weird how for any other volume primitive this wasn't problematic. Wrapping seems to be handled specially for the mask
Sample the mask of a heightfield in Attribute Wrangle Sept. 18, 2023, 11:14 a.m.
animatrix_ptzdan
Hello, I'm trying to use the volumesample VEX function to sample the mask volume of a heightfield in a Volume Wrangle node. This works for every other volume but it simply cannot sample the mask. What is the reason for this, and how can I do it?
Are you using the "mask" volume name?
Yes. I just have an Attribute Wrangle node with the first input being a grid and the second being the volume whose mask I want to sample. The VEX code in the node is:
float mask = volumesample(1, 'mask', @P); @Cd = lerp(@Cd, {1., 0., 0.}, mask);
For any other volume name is works, but for the mask it always returns 0.
I create the mask with a Heightfield Draw Mask node.