Jump to content

cut density inside dop


gangland

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

Link to comment
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
Link to comment
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...