ManiSkill icon indicating copy to clipboard operation
ManiSkill copied to clipboard

make new soft body

Open nutsintheshell opened this issue 1 year ago • 3 comments
trafficstars

Dear authors, Your work is pretty good. I'd like to make some soft bodies in your environment. I'm wondering is there a way to make my own soft models or load a soft model from other paper. Thanks for your reply. Additional, I know how to load a model by ursf file in the environment(but only rigid object). Is there a similar standard way to add soft model in your environment?

nutsintheshell avatar Apr 10 '24 12:04 nutsintheshell

@fbxiang

StoneT2000 avatar May 23 '24 02:05 StoneT2000

The MPM based soft body is currently available in ManiSkill 2 (v0.5.3 branch of this repo). Assuming you are using that branch, you can take a look at one of the soft body envs to see how soft bodies are added. Essentially at initialization, we add particles uniformly distributed in a volume into the scene. For example, the Pour env samples particles from a cylinder. There is no standard file formats for creating soft body, but you can always just create some procedure to sample from mesh volumes and use regular watertight meshes as your soft body representation.

fbxiang avatar May 23 '24 03:05 fbxiang

The MPM based soft body is currently available in ManiSkill 2 (v0.5.3 branch of this repo). Assuming you are using that branch, you can take a look at one of the soft body envs to see how soft bodies are added. Essentially at initialization, we add particles uniformly distributed in a volume into the scene. For example, the Pour env samples particles from a cylinder. There is no standard file formats for creating soft body, but you can always just create some procedure to sample from mesh volumes and use regular watertight meshes as your soft body representation.

Thanks for your reply. I 've tried to make my soft body successfully.

nutsintheshell avatar May 23 '24 05:05 nutsintheshell

@fbxiang. I was wondering if it's possible to add my own custom soft bodies to the "ManiSkill3" environment programmatically. Specifically, can this be done using the MPM method you mentioned, or is that feature currently only available in "ManiSkill2"?

yang-si-hang avatar May 13 '25 08:05 yang-si-hang

The MPM code in maniskill2 is being ported to maniskill3 at the moment. You currently have to use maniskill 2 to do soft body simulation. The ManiSkill3 MPM will be faster and majorly improved compared to ms2, mostly in terms of documentation and API design.

StoneT2000 avatar May 13 '25 08:05 StoneT2000

Thanks so much! I saw you mentioned that soft body simulation will be added to ManiSkill3 soon. Do you have an idea of when this feature might be released later this year?

yang-si-hang avatar May 13 '25 08:05 yang-si-hang

Maybe in the summer. No hard timeline yet sorry

StoneT2000 avatar May 13 '25 16:05 StoneT2000

Got it, thanks for the update! Looking forward to it.

yang-si-hang avatar May 14 '25 01:05 yang-si-hang