how to mesh different sources in the same flip sim

   1251   2   0
User Avatar
Member
30 posts
Joined: July 2016
Offline
Hi everyone,

I'm trying to output two different meshes from a flip simulation, which has 2 different sources.

I've tried creating 2 streams and deleting the other streams particles, but haven't yet had any luck with this approach.

Any help would be greatly appreciated!

Thanks!

Attachments:
SeparatePOPStreams.hiplc (2.0 MB)

User Avatar
Member
37 posts
Joined: Aug. 2015
Offline
I looked at your scene. I had no problems separating the streams so i'm not sure what you meant there.

The problem i think you're having is with the VDBs and resurfacing process where the inner cavity disappears when the outer liquid fully encloses the inner one. So instead of having a shell you have a blob.

To fix this i took only the flip particles (int the particle_fluid obj) and split the streams. Each stream connects to a ParticleFluidSurface node that is set to output Surface VDB. Then using a VDBCombine, i subtract the inner VDB from the outr VDB (SDF Difference).

The inner VDB you can use as is.

Both VDBs are then converted to poly or polysoup using ConvertVDB. At this point, if necessary, you can transfer necessary attribs (velocity, color, etc) from the original sim.
User Avatar
Member
30 posts
Joined: July 2016
Offline
Hi Nicolas, thank you for the help! This did the trick
  • Quick Links