chrisdunham95 Posted March 27, 2018 Share Posted March 27, 2018 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! Quote Link to comment Share on other sites More sharing options...
StepbyStepVFX Posted March 27, 2018 Share Posted March 27, 2018 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 ? 1 Quote Link to comment Share on other sites More sharing options...
chrisdunham95 Posted March 28, 2018 Author Share Posted March 28, 2018 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! Quote Link to comment Share on other sites More sharing options...
jeannel Posted August 31, 2018 Share Posted August 31, 2018 attribfromvolume does that. 3 Quote Link to comment Share on other sites More sharing options...
ftaswin Posted September 3, 2018 Share Posted September 3, 2018 @density = volumesample(1, "density", @P); v@v = volumesamplev(1, "vel", @P); 1 Quote Link to comment Share on other sites More sharing options...
loucifer Posted February 12, 2019 Share Posted February 12, 2019 Could you post your result, I'm currently trying to copy color info from vdb to geo and it seems you resolved it? Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.