Jump to content
Sign in to follow this  
gangland

cut density inside dop

Recommended Posts

Hey guys.

I building an underwater scene. In dop I using high buoyancy values.

i would like to delete the velocity and density field right above the water surface directly in dop. it would improve to memory consumption. Also cut the velocity field(in the surface of sea) that in future would advect points.

i not figuring how to do that, can anyone help me?

 

image.thumb.png.8275cd351a77835d69a31e7e2d002ecc.png

air_v00.hip

Share this post


Link to post
Share on other sites

you can do that with a gaswrangle node inside DOPs

// using height as threshold
if(@P.y>chf("max_Y_value")){
	f@density = 0;
  	v@vel = 0;
}
// or anthing outside the water area
if(f@surface>0){
	f@density = 0;
  	v@vel = 0;
}
  

 

Edited by bunker

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
Sign in to follow this  

×