A CUDA + OpenGL powered position-based physics engine.
This framework supports fluid, clothes and solid. This is possible due to unified particle physics [1]. The unified particle physics combines the position-based approaches from several papers:
- Position-based dynamics [4]
- Position-based fluids [5]
- Shape-matching [6]
- To make the shape-matching stable, the robust rotation extraction method [7] is implemented
- The surface tension method [2]
- Aerodynamics for clothes and flag[3]
- For efficient collision detection and density estimation, an efficient hash-based searching method [8] is used.
https://www.youtube.com/watch?v=-DgD_PovEdk
Sadly, There are some bugs to be killed. (In multi-phase fluid test, the denser fluid floats.) There are a lot of duplicated code to be removed. :(
References:
- MACKLIN , M., MÜLLER , M., CHENTANEZ , N., AND KIM , T.-Y. 2014. Unified particle physics for real-time applications. ACM Transactions on Graphics (TOG) 33, 4, 153.
- AKINCI , N., AKINCI , G., AND TESCHNER , M. 2013. Versatile surface tension and adhesion for sph fluids. ACM Transactions on Graphics (TOG) 32, 6, 182.
- KECKEISEN , M., KIMMERLE , S., THOMASZEWSKI , B., AND W ACKER , M. 2004. Modelling effects of wind fields in cloth animations.
- MÜLLER , M., HEIDELBERGER , B., HENNIX , M., AND RATCLIFF, J. 2007. Position based dynamics. Journal of Visual Communication and Image Representation 18, 2, 109–118.
- MACKLIN , M., AND M ÜLLER , M. 2013. Position-based fluids. ACM Transactions on Graphics (TOG) 32, 4, 104.
- MÜLLER , M., HEIDELBERGER , B., TESCHNER , M., AND GROSS , M. 2005. Meshless deformations based on shape matching. In ACM transactions on graphics (TOG), vol. 24, ACM, 471–478.
- MÜLLER , M., BENDER , J., CHENTANEZ , N., AND MACKLIN, M. 2016. A robust method to extract the rotational part of deformations. In Proceedings of the 9th International Conference on Motion in Games, ACM, 55–60.
- GREEN , S. 2010. Particle simulation using cuda.