This is the code of the final project for the course Physically-Based Simulation in Computer Graphics, ETHZ, HS2021. We use Taichi to implement a fluid solver as described in the paper: Zhu, Yongning and Bridson, Robert, Animating sand as a fluid. ACM Transactions on Graphics 2005, 24, pp. 965-972.
git clone --recursive https://github.com/boelukas/pbs-sandfluid.git
git submodule update --init --recursive
conda env create -f env.yaml
conda activate sandfluid
python src/simulation.py
Key | Action |
---|---|
space | start/pause simulation |
r | reset simulation |