Jump to content

FLIP soft collider.


Recommended Posts

Hi guys,

 

i would like to know if it would be possible to create soft collider with FLIP fluid.

 

By soft collider i mean using a SDF as a collision object but instead of colliding with the surface.

The particle behavior would be soften by a multiplicator on @v according to distance.

 

My goal is to use a collider to draw my fluid but to get rid of the feeling that the fluid collide on an object,

I would like to soften the speed of particle when they are close to the collider and maybe inject them a new direction to keep them moving.

 

Maybe a VOP plug in the field entry that modify @v according to gradient and distance is the way to go ?

 

Does anyone have try this ?

 

Thanks for your time !

 

Cheers

 

E

 

Link to comment
Share on other sites

I think the best approach for this kind of setup is to handle your particle "soft-collision" with a custom popwrangle pluged in the particle velocity of your flip solver. Use the volumegradient to get the direction outward and the volumesample to progressively apply your changes to the velocity. If you using vdb, dont forget to extent your padding a little. Otherwise you might not have enouth information to create your transition smoothly. If you don't necessarily want the particles to be bounced off the the collider but you just want them to avoid it, you could also use the cross product of the velocity of the particle and the gradient of the sdf. It could give you an even smoother motion depending of what you're looking for.

 

Alex

  • Like 1
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...