williamljb / HumanMultiView

45 stars 16 forks source link

Cloth simulation.. #3

Open SeongHwaChoi opened 4 years ago

SeongHwaChoi commented 4 years ago

Hello, Thank you for providing the code.

I downloaded your data generation code, and I want to do cloth simulation using the SMPL model. I understood that the motion data can be created by position and rotation of the pose.

However could you please explain how to use SMPL model when using arcsim?(Is it right that simply simulate motion data extracted from SMPL model to arcsim with default obstacle body mesh?)

williamljb commented 4 years ago

Hi Chioseonghwa,

Yes. I edited the obstacle part in the original Arcsim code so that it supports the non-rigid movement of the obstacles.

To simulate cloth with a moving body, first, you need to have the SMPL model sequence generated, named e.g. 0000.obj-0250.obj. Then you can simply set the obstacle information in the config file (e.g. see arcsim/conf/dress.json), and set the 'motion_type' as 1. As you can see in arcsim/src/obstacles.cpp, the simulation algorithm will then read the corresponding body data at each frame, and do interpolation if it is between two consecutive frames.