Jump to content

Bullet and Flips collisions?


Butachan

Recommended Posts

Hi,
Can someone please help me confirm is bullet is compatible or not with flip simulations?

I set up a simple packed geo as a static object for a flip simulation.
The geometry collision is properly calculated as convex hulls… (image1)

Capture.thumb.PNG.035b250d2a1dea08f6aced377a3b51ea.PNG

But as soon as I run the sim this weird shape appears (image2)

Capture2.thumb.PNG.1d4b1ae8090a6bb8a2f9f1b9e59a2139.PNG

It is like if the flip sim automatically converts the collision geo into a weird resampled volume.
is this true? Would this mean that the flip solver will automatically convert the packed geo into a volume?

Feel free to look at my set up… I simplified the scene to run a test. (the hip file is attached at the bottom)

bulletandFlip.hiplc

 

I also added this post in SideFx forums as is driving me crazy trying to figure the solution... I have figured a work around transforming my collision geo into volumes and then just using regular static solver but I would like to have a clear answer about what is going on here...

Link to comment
Share on other sites

>> It is like if the flip sim automatically converts the collision geo into a weird resampled volume.

Correct, that is the proper functioning of FLIP. It resamples dynamic/static collision objects into it's own sample space (i.e. particle separation). Thus you get a lumpy representation of the original object if you don't have enough FLIP resolution. Turn on the collision guide for "Collision" on the FLIPObject. The light purple geometry will display the actual collision geometry that the FLIP Solver will collide with. The blue RBD collision geometry is not used.

In this case, there is no need for RBD at all, you have it set to static initialization to begin with. You are better off just creating a Static Collision object instead. Also, if you do want to start off with a static initialization then add activation somewhere in the middle of the simulation you are still better off approaching this in passes. Just solve your RBD as you see fit and write that out as a .bgeo.sc sequence. Then use a File node to bring that sequence in as deforming collision geometry that you submit to FLIP.

Here I have converted your RBD object into a static object and it works much better.

ap_bulletandFlip.hiplc

Untitled-1.jpg

Edited by Atom
  • Thanks 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...