Jump to content
sant0s81

[SOLVED] Whitewater only on surface, but not below water surface

Recommended Posts

Good morning,

I am trying to implement a fish into real footage.
The animated fish only shows the fin for some frames over the water surface.

I already simulated the water (flip tank).

Now, when I add Whitewater, it appears also below the water surface what looks kinda strange.
What parameter do I have to change, to see whitewater only when the fin goes out of the water?

And how to I get way more whitewater when the fin gets out of the water?

Thank you!

sant0s
 

Edited by sant0s81

Share this post


Link to post
Share on other sites

Hi,

Assuming you're using Houdini 17 or higher. The particles are assigned a different state based on their depth, any particles under the surface will be bubbles, on the surface is foam, and above is spray. If you go into the whitewater solver and turn up the age rate of the bubbles to something like 10,000,000 this will make the bubbles more likely to die, eliminating any particles under the surface. As for whitewater amount you can play around with the settings in the 'Whitewatersource' node under curvature, acceleration, and vorticity. Also up the emission amount in the whitewater solver node under the emission tab.

Hope this helps

Josh

  • Like 1

Share this post


Link to post
Share on other sites

And also you could kill all the particles inside of the ocean sdf. If you use a geowrangle and first input is self, second input is the sdf, you can do something like:

 

float sdf = volumesample(1,"surface",@P);

if(sdf < 0){
            removepoint(0,@ptnum)
            }

But this is a hard condition that kill all the particles inside the sdf in the sim, you could also fit the sdf value into a pscale after the whitewater sim.

Something like:

float sdf = volumesample(1,"surface",@P);
float mult = fit(sdf,-0.1, 0, 0, 1);

f@pscale *= mult;

 

Hope this could help.

 

  • 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

×