Jump to content
sipi

Volume Advection

Recommended Posts

Hey everyone,

I'm advecting this density field with the velocity field using a for loop, and if I crank up the iteration the density starts to clip.

Do you have any idea how to prevent that?

image.png.7e3ea5bdd7a47aed05d0eccd1a43675c.png

volume_advection_clipping.hiplc

Share this post


Link to post
Share on other sites

You can expand your bounds with a VDB Activate SOP in the "Expand" tab, but I believe the actual issue is not clipping but rather that your velocity data stops at the bounds your input frame is frozen on so your loop is multiplying by 0 in those areas - you might need to pipe in velocities from later frames or fake some by creating a custom velocity field

vdbactivate.thumb.jpg.2b68822b4aa262b9ab99bc8129373308.jpg

Share this post


Link to post
Share on other sites
11 hours ago, ryew said:

You can expand your bounds with a VDB Activate SOP in the "Expand" tab, but I believe the actual issue is not clipping but rather that your velocity data stops at the bounds your input frame is frozen on so your loop is multiplying by 0 in those areas - you might need to pipe in velocities from later frames or fake some by creating a custom velocity field

Thank you! I think I will go to the direction of using velocities from later frames somehow, because I have no idea how to create a custom velocity field which expands outward with keeping the border values.

Actually there is an other solution which is to resimulate the sim with greater padding value, but the sim could become different so I purposely avoid this option, I want to do it all in post witout resim.

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

×