Skip to content

aren227/unity-fluid-simulation

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

38 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

unity-fluid-simulation

image_004_0485 Real-time fluid simulation in unity.

Features

  • 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

Demo Video

https://youtu.be/s-cDYtNfsl4

One million particles simulated in real-time. ~40 fps with GTX 1070 Ti.

References

  • 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.

About

Real-time sph fluid simulation in unity.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published