Jump to content
MadMax50

sample velocity in dops

Recommended Posts

hello,

I have a custom velocity field that i created in sops and i want to sample it in a particle simulation.

I know that i can easily use the pop advect node but i want to learn how to use the "volumesamplev" vex function for this. It seems like i have everything in order but the particles are not moving.

I think i need a little guidance on this...i will attach my scene file for anyone that wants to take a look.

thank you!

volumesample v.hipnc

Share this post


Link to post
Share on other sites

your wrangle is good, but your volume doesn't contain any values at locations of the particles

- in VDB From Particles values are populated only within narrow band around the particle's surface 
in this case it doesn't reach all the way to where particle centers  are so they will not be affected by advection

- you can increase narrow band to fill in the whole particle, but that will also expand by the same distance
and for bigger particles you may still get hollow interior
there is no Fill Interior for VDB from particles unfortunately

- you can also make your particles smaller to get a good ratio between particle scale and narrow band to cover desired area

- or use Attribute Rasterize to get fully filled particle within its pscale with your values, even though it may not end up exactly spherical

 

volumesample_v_fix.hipnc

Edited by anim
  • Like 1

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×