/sph_opengl

SPH simulation in OpenGL compute shader.

Primary LanguageC++MIT LicenseMIT

SPH Fluid Simulation in OpenGL Compute Shader

Codacy Badge

Build status

Smoothed Particle Hydrodynamics implementation in OpenGL compute shader. Licensed under MIT License.

Quickstart guide

  1. Install Visual Studio 2017.
  2. Install the latest graphics driver with OpenGL 4.6 support.
  3. Install Vulkan SDK to compile GLSL shaders into SPIR-V format.
  4. Install Python 3 to run shader compilation script.
  5. Run shader/compile.py to compile shaders.

Third-party libraries

  1. GLEW/OpenGL Loader https://github.com/nigels-com/glew
  2. GLFW https://github.com/glfw/glfw
  3. GLM https://github.com/g-truc/glm

Video

https://www.youtube.com/watch?v=4LnaZmim81k

Vulkan version

https://github.com/multiprecision/sph_vulkan