Skip to content

multiprecision/sph_vulkan

Repository files navigation

SPH Fluid Simulation in Vulkan

Build status

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

Further reading

https://github.com/multiprecision/undergraduate_thesis/blob/master/undergraduate_thesis.pdf

Quickstart guide

  1. Install Visual Studio 2022 with "Desktop development with C++" workload and "Windows 11 SDK (10.0.22000)" component.
  2. Make sure to have the latest graphics driver installed.
  3. Install the latest Vulkan SDK (version 1.3) and select GLM during installation.
  4. Install Python 3 to run shader compilation script.
  5. Run compile.py to compile shaders.
  6. Open sph.sln, build, and run.

Third-party libraries

  1. Vulkan SDK (GLM is bundled)
  2. GLFW (bundled in the third_party folder)

Short video

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

OpenGL version

https://github.com/multiprecision/sph_opengl