transferring velocity from vdb grid to mesh..

   2336   3   0
User Avatar
Member
5 posts
Joined: May 2017
Offline
hey guys,

any pointers on how to approach this, basically I have a vbd with density and vel grids, I have processed the vdb and created a clean mesh, now Im looking to transfer the velocity back onto the surface as an attribute so I can render with vertex motion blur.

I thought it would just be piping the same vdb into slot 2 on convertVDB sop to access the surface properties, but that doesnt seem to funtion as I was hoping.

cheers,
Jeff
Edited by jthomson - Nov. 7, 2022 12:14:16
User Avatar
Member
9380 posts
Joined: July 2007
Offline
append Attribute From Volume SOP and connect your volume to second input
then set Volume to name of your velocity volume
and Attribute Name to: v
and Attribute Type to: Vector
Edited by tamte - Nov. 7, 2022 18:51:39
Tomas Slancik
CG Supervisor
Framestore, NY
User Avatar
Member
5 posts
Joined: May 2017
Offline
that was exactly the hypothetical node I was looking for, many thanks Tomas
Edited by jthomson - Nov. 8, 2022 17:40:46
User Avatar
Member
9380 posts
Joined: July 2007
Offline
in case it's handy you can also do it in vex using volumesamplev() and volumesample() functions for vector and float volumes respectively
Tomas Slancik
CG Supervisor
Framestore, NY
  • Quick Links