How to combine RBD object with FLIP sims?

   1276   7   2
User Avatar
Member
229 posts
Joined: July 2013
Offline
If I want to fracture a building and make it collapse using an RBD dynamics sim in to a FLIP container so the fractured pieces splash the water, can FLIP recognise packed geometry from an RBD bullet simulation, or does it have to be converted to unpacked (real) geometry for collisions with the fluid sim?

Any advice on the basic node setup or links to tutorials would be appreciated.

In one tutorial I see a Collision Source node was used to convert an animated fractured object in to a VDB volume so it can collide with a FLIP sim. Must the animated object be converted to real geometry before feeding in to theCollision Source node rather than using a packed RBD Object, i.e. unpack it first?

In a different tutorial an RBD Packed Object with a Rigid Body Solver is fed in to the FLIP sim.

It seems there are multiple ways.Are there any advantages/disadvantages to these two methods?
Edited by litote - Oct. 28, 2023 22:35:25
User Avatar
Member
54 posts
Joined: Sept. 2008
Offline
The simple method is merging rigid body solver and flip solver, and implement operation through a sop solver.
Edited by ifree - Oct. 29, 2023 01:22:42

Attachments:
image.png (32.6 KB)
flip_rbd.gif (9.3 MB)

User Avatar
Member
229 posts
Joined: July 2013
Offline
That confirms one method. Thanks! I like your gif too.
User Avatar
Member
229 posts
Joined: July 2013
Offline
In one tutorial I see a Collision Source node was used to convert an animated fractured object in to a VDB volume so it can collide with a FLIP sim. Is there some reason to not just se the normal geometry? Why convert to VDB?
User Avatar
Member
8583 posts
Joined: July 2007
Offline
litote
Is there some reason to not just se the normal geometry? Why convert to VDB?
FLIP doesn't collide with surfaces (apart from particles that can be corrected using particle collision), for computing proper velocity pressure projection it needs volume representation of collider object
and it's generally faster to compute it using VDB (or even being able to cache it), and just sample in Static Object or sample directly into Collision field rather than letting Static Object compute it
Edited by tamte - Oct. 29, 2023 12:21:24
Tomas Slancik
FX Supervisor
Method Studios, NY
User Avatar
Member
229 posts
Joined: July 2013
Offline
Thank you again Thomas! I appreciate your expertise. Would you always convert geometry to VDB to use as a collider in a FLIP sim? I see many basic tutorials just feed the polygon geo straight in to the sim without converting it to VDB. Presumably they are mot aware this is less efficient.
Edited by litote - Oct. 29, 2023 20:55:11
User Avatar
Member
8583 posts
Joined: July 2007
Offline
always, especially for deforming geo

there are ways to optimize though
if you are using just transforming object from object level it may not matter as much as the volume is built just once and not per timestep
I'd still use VDB volume though as it's more precise and also faster to compute, even if the speed benefit may not be as crucial if its built just once

there is also a possibility to use packed sets for colliders, which allows to reuse tansformed packed primitives as colliders efficiently, in a similar way of building the vdb just once per piece and just instance on points over time with v and w inherited from points

this is not built into FLIP however Pyro Solver SOP uses those so it's possible to rebuild for DOP level FLIP as they share the ay collision fields are built

for SOP level FLIPs the workflow is a bit different as there you manage your vdbs in SOPs and source into the global collision field before it even gets to solver
Edited by tamte - Oct. 29, 2023 22:46:42
Tomas Slancik
FX Supervisor
Method Studios, NY
User Avatar
Member
229 posts
Joined: July 2013
Offline
Thanks for the detailed explanation Thomas!
  • Quick Links