Jump to content

import geo attribute in heightfield


anicg

Recommended Posts

Is there a way of importing an attribute from the geo world to the heightfield world?

I want to use the mask generated by the new node in 18.5 "Distance from geometry" as a mask in the heighfield. I've tried Bind import in Heightfield VOP but didn't know how to connect it? I can bring attributes from heightfield to geo but not the other way around.

Any idea?

Link to comment
Share on other sites

heightfields are just 2d volumes, so you can flatten your geo to the same plane 

- and either rasterize your attribute to volumes using one of many methods (VDB from polys, Attribute Rasterize, ...) and sample that volume onto Layer in Volume Wrangle

- or directly sample the geo in Volume Wrangle (xyzdist) per voxel of heightfield layer and get the value (primuv), which may be slower than sampling the volume, but the same idea

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...