This is a position based fluid demo modified from the k-ye's pbf2d (which is a official example of taichi).
The taichi official repo:
https://github.com/taichi-dev/taichi
pbf means position based fluid, which is a fluid simulation method. The original paper is:
- Macklin, M., Müller, M. 2013. Position Based Fluids. ACM Trans. Graph. 32, 4, Article 104, July 2013, 5 pages. http://doi.acm.org/10.1145/2461912.2461984
I am modifing it from 2d to 3d. The 3d rendering learn from mpm3d(another taichi official example)
First install taichi
then
python pbf3d.py
关于如何实现的,以及注意事项,以及其中的坑,更多详情请看我的博客