Skip to content
/ PBD Public

Using taichi to implement position based dynamic

Notifications You must be signed in to change notification settings

lyd405121/PBD

Repository files navigation

Positon based dynamic with taichi

  • The code implements one of nvidia's paper PBD

  • The code uses Taichi programming language


How to run

  • First config your anaconda workspace, and open the anaconda prompt

  • Second you need to install dependency

    pip install -r requirements.txt
  • Last you type

    ti Example.py

How to generate voxel file

  • First copy your obj file to "model" , for example "Bearings.obj"

  • Second you need to modify the code in GenVoxel.py

    obj_name = "Bearings"
  • Then you type

    ti GenVoxel.py
  • Last you will get a voxel file like below:

image

Some example

  • Rigidbody Simulation
  • Red particle means it contact ground plane, green means it has at least one neighbour from other rigidbody

image

About

Using taichi to implement position based dynamic

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages