検索 - User list
Full Version: VolumeWrangler get height of specified
Root » Houdini Indie and Apprentice » VolumeWrangler get height of specified
CStinson
VolumeWranglers are invoked for each Voxel in a HeightField and so already have access to that voxel. Is there a way to read the height of a neighbourning voxel.

Thanks
Clff
Farmeadow
To access neighbors, you need to calculate their positions relative to the current one. Since voxels are on a grid, you do this by offsetting the voxel coordinates. Houdini provides the volumeindex VEX function [www.sidefx.com] to help you read values from a volume at specific voxel coordinates.
Tanto
You can do it using:
volumesample(0, 'height', v@P + offset)
CStinson
Thank you both. I now have it working.

Cliff
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Powered by DjangoBB