Jump to content

Sticky Particle Fluid


arsenyg

Recommended Posts

I have a simple Particle Fluid Simulation, a kind of liquid with high viscosity.

Is there a way to make it very sticky? I need it to follow a surface of an Object it collides with.

Convert the collision into an SDF volume and within VOPs user the VolumeGradient and VolumeSample to "stick" the particles back to the surface. Gradient gives you the vector to the nearest surface and Sample gives you the distance. If you have a multiplier on the sample node you can stick it back by a percentage, maybe based on normals etc...

I have a scene kicking around somewhere, I'll try and find it if no-one else has one to show.

Christian

Link to comment
Share on other sites

This is the video that show the asset work:

Thanks Pazuzu ;)

I need to go back and have a proper look at that, it worked a treat for a test I had to do, thanks for sharing it, it really helped a lot.

This is based on SPH/DOP fluids and works really nicely. If you want something a bit simpler with "dumb" particles, just check out the bit in Pazuzu's POPNetwork where it's got the VolumeGradient and VolumeSample nodes.

Basically you just need the Gradient (the direction to the nearest bit of the volume) and the sample (the distance to it). Multiply them together and add it back to the point (Either Velocity or Position etc).

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...