Found 4 posts.
Search results Show results as topic list.
Houdini Indie and Apprentice » Sample the mask of a heightfield in Attribute Wrangle
- ptzdan
- 4 posts
- Offline
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
Houdini Indie and Apprentice » Sample the mask of a heightfield in Attribute Wrangle
- ptzdan
- 4 posts
- Offline
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
Houdini Indie and Apprentice » Sample the mask of a heightfield in Attribute Wrangle
- ptzdan
- 4 posts
- Offline
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.
Houdini Indie and Apprentice » Sample the mask of a heightfield in Attribute Wrangle
- ptzdan
- 4 posts
- Offline
Hello, I'm trying to use the volumesample VEX function to sample the mask volume of a heightfield in a Attribute 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?
Edit: I had erroneously written Volume Wrangle node, instead of Attribute Wrangle
Edit: I had erroneously written Volume Wrangle node, instead of Attribute Wrangle
Edited by ptzdan - Sept. 18, 2023 11:15:22
-
- Quick Links