Jump to content

Transfer Volume attributes to Mesh/Points/Prims


Recommended Posts

Hey guys I know this may already have been asked somewhere, but had a real good luck and couldn't find much so my apologies if so! 

So I have a mesh generated from a volume (convert vdb > convert vdb to polygons) but my (density/temperature/vel etc) attributes get carried over in prim attributes from looking at my geo spreadsheet. 

I was trying to promote the attributes across so I can then use them to color my mesh, but so far been unsuccessful,

if anyone could explain how I would do this and how it works that would be great! 

 

 

Link to comment
Share on other sites

Hi Chris,

I don't really understand what you have in your scene : seems you had different VDB (one for each field you mention : density, temp, vel etc.), then you converted one of them to poly using the Convert VDB ? Each field is considered as a primitive, but once you transform them to Poly, you loose the info that were stored in each voxels.

So if you want to sample your VDB close to the points of your poly to transfer attributes, I think the easiest way is to do it through a point VOP, where you wire your geo in input 1, you wire your VDB in input 2 and use a "volume sample" or "volume sample vector" node (maybe you need to convert your VDB into a houdini volume, not sure, don't remember...).

Hope this helps ?

  • Like 1
Link to comment
Share on other sites

13 hours ago, StepbyStepVFX said:

Hi Chris,

I don't really understand what you have in your scene : seems you had different VDB (one for each field you mention : density, temp, vel etc.), then you converted one of them to poly using the Convert VDB ? Each field is considered as a primitive, but once you transform them to Poly, you loose the info that were stored in each voxels.

So if you want to sample your VDB close to the points of your poly to transfer attributes, I think the easiest way is to do it through a point VOP, where you wire your geo in input 1, you wire your VDB in input 2 and use a "volume sample" or "volume sample vector" node (maybe you need to convert your VDB into a houdini volume, not sure, don't remember...).

Hope this helps ?

Thanks Jo, that makes way more sense now can see where I'm going wrong! 

Link to comment
Share on other sites

  • 5 months later...
  • 5 months later...

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...