Real-time fluid simulation in unity.
- Based on Smoothed-particle hydrodynamics method.
- Runs entirely on GPU.
- Handles up to one million particles.
- Uses counting sort to speed-up neighbor searching.
- Implementing surface extraction techniques proposed by Yu and Turk.
- Performs normal smoothing to make the surface more realistic while avoiding expensive isosurface extraction algorithms.
- Basic water shading
One million particles simulated in real-time. ~40 fps with GTX 1070 Ti.
- M. Müller, D. Charypar and M. Gross. Particlebased fluid simulation for interactive applications. 2003.
- J. Yu and G. Turk. Reconstructing Surfaces of Particle-Based Fluids Using Anisotropic Kernels. 2010.
- Rama C. Hoetzlein. Fast Fixed-Radius Nearest Neighbor Search on the GPU. 2014.