Jump to content
gpapaioa

FLIP morph custom forces

Recommended Posts

Hello everyone,

I am trying to achieve a similar effect likes this by Ivan: 

On the sidefx forums, Ivan mentions that he creates two fields, one to attract the particles and one to keep the particles on the surface. I managed to create the force field to attract the particles but i cant find a way to create a field to keep the particles inside the geometry and form the shape. Any tips or help is highly appreciated.

Share this post


Link to post
Share on other sites

Hey,

 

Not much thought put into this at the moment, but would imagine you could use both the volume gradient and the volume sample to create both fields. Gradient will give you the direction, and the sample will let you know where are the particles. Negative values would represent inside your geo, positive outside. Zero value represents the positions directly on the surface. (This is for VDBs)

Hope it helps

 

M

Share this post


Link to post
Share on other sites

Thanx M. I managed to achieve something by using POP nodes. I make a bound object using the geometry and when particles are passing through, I group them and use a POP wrangle to zero their velocity. I understand the SDF concept with 0s and minus, my lack of knowledge is how can I use this information with the FLIP solver and tell the particles to stay on the surface and stick to it.

Share this post


Link to post
Share on other sites

Thanks Stephen, that is a nice setup.

Here is my extension to your file with a morphable input. The fluid morphs between 3 font nodes. (X O +). You can control the morph timing by animating the SDF Blend value on the three shapes.

flip_morph.gif

ap_flipAttract.hipnc

  • Like 2

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

×