WPI-AIM / ambf

Asynchronous Multi-Body Framework
162 stars 64 forks source link

Generation of soft bodies #118

Open eliseeer opened 3 years ago

eliseeer commented 3 years ago

Hello, I have 2 kidneys model that I would like to implement as soft bodies in the scene for a palpation task. Starting from the rigid model in Blender, I've reduced the number of verts (they are about 160 now). After saving the .yaml file generated by the add-on, I've modified the model from there directly: I've included the kideys in the soft bodies and add the config field. When running the simulation, even setting a fixed frequency of 60Hz, I either get a seg fault or the kidneys do not appear in the scene. Is there any way to solve this? I'm attaching the model for a better understanding of what I did.

Thanks a lot!

model.tar.gz

adnanmunawar commented 3 years ago

Hi Elisa, Please checkout the branch called restructure. It is a work in progress but has faster loading and update times for softbodies. You can increase the resolution of your low res meshes to a couple of thousand vertices. Also, please make sure that both the low res and high res meshes are exactly the same. Moreover, your kidney model seems to have complex geometry at the center, where the individual faces have high variability in terms of relative angles within a small span. In my experience, this would make pressure and volume constraints (for softbodies) unstable.