Term project from Realtime Computer Graphics and Physics Simulation 2110514 (2022/1)
Leaf model and textures : https://www.cgtrader.com/free-3d-models/plant/leaf/dead-leaf
Sand textures : https://3dtextures.me/2020/02/14/sand-005/
Bark textures : https://3dtextures.me/2021/05/05/bark-006-2/
Bamboo textures : https://www.filterforge.com/filters/12411.html
- FTL Hair&Fur https://matthias-research.github.io/pages/publications/FTLHairFur.pdf
- Fluid simulation https://mikeash.com/pyblog/fluid-simulation-for-dummies.html
- Hair style modeling https://davis.wpi.edu/~matt/courses/hair/hrstlmodeling.html
- Python l-system https://github.com/pvigier/lsystem
- Distance function https://iquilezles.org/articles/distfunctions/
- pbrt-v3 https://www.pbrt.org/fileformat-v3
- animate.py => Animate fluid simulation from density grid value.
- density.py => Calculate density value for vexel by distance function + AABB.
- grammar.py => l-system parser, see Python l-system.
- pbrtGen.py => Convert position and object into pbrt file sturcture.
- hair.py => Generate hair position (for each particle).
- plot.py => Plot l-system for debugging, see Python l-system.
- tree.py => Create tree, see Python l-system.
- fluid.cpp => Generate density grid.
finalproject_report.pdf (Thai)
https://youtu.be/yrDMuLmWuVs (Thai)