Skip to content

yoharol/PBD_Taichi

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PBD Taichi

Library for PBD and XPBD, aiming at including most type of constraints on mesh and tetrahedron.

  • Cloth simulation
  • Deformable simulaiton
  • Complementary Dynamics
  • Hash grid collision
  • Rigid body simulation
  • Rod

Environments

Python version 3.9

pip install taichi 
pip install usd-core
pip install meshio
pip install pillow
pip install glfw
pip install PyOpenGL PyOpenGL_accelerate

See results

Run scripts in test folder

For example:

python -m test.cloth_sim
  1. Cloth

python -m test.cloth_sim

Constraints:

  • Bending
  • Length

drawing

  1. Balloon

python -m test.balloon

Constraints:

  • Bending
  • Length
  • Volume preserving

drawing

  1. Particles Collision

python -m test.dem3d

Solve collision of large group of particles with hash grid

drawing

  1. Neo-Hookean Deformable Objects

python -m test.fish_deform

Based on this paper and the live demo.

drawing

For comparison, there is a mass spring version.

python -m test.fish_spring

drawing

  1. Complementary Dynamics

python -m test.fish_comp

Based on complementary dynamics and its modified PBD version.

drawing

About

PBD and XPBD in Taichi, aiming at including most type of constraints on mesh and tetrahedron.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages