Awesome
PBF3D
This repository is the implementation of PBF (Postion Based Fluid) based on taichi, and with help of particle2obj tool in fluid-engine-dev to make particles to mesh, finally use blender to render animation.
Dependencies
taichi (tested with 1.5.0)
opencv-python (tested with 4.5.5)
blender (tested with blender 3.6.0-usd.200.0)
Overall process
- first run pbf3d.py to get particles' position and save to local (the file extension should be xyz);
- run particle2obj.py to generate mesh per frame (you can adjust the kernel_size as needed);
- run animate.py in blender, this is a blender script to import mesh and generate animation;
- use blender to render each frame of the image and save local;
- run pic2vedio.py to make images to vedio;