- Our project is to simulate a cloth soft body to interact with it self and static object. Based on Taichi and Open3D tools, we implemented the simulation pipeline from scratch according to the paper by Muller. Our main reference code is from the course exercise of mass spring system.
- Step 1:
git checkout <demo_branch>
- Step 2:
python runner.py
- If you want to tune the parameters, you can change rendering option in
runner.py
and simulation parameters inlib/simulation.py
. - If
saving
is true in render option, images will be exported to folderImage/{timestamp}
. If you want to make video, please usemake_video.py
script to generate videos from images.
demo-ball-cloth-colliding
: The cloth falls on the balldemo-cloth-falling
: Cloth self collision.demo-stanford-bunny
: The cloth falls on the stanford bunny.demo-with-wind
: The cloth is blowed by winddiffTaichi
Use DiffTaichi to make the cloth fall on the ball by controlling the wind speed.