Centered around a GPU-accelerated Smoothed Particle Hydrodynamics (SPH) simulation, this project takes a deep dive into fluid dynamics. The simulation makes heavy utilization of compute shaders, which tap into the inherent parallelisation of GPUs, enabling an accelerated realization of the simulation via the DirectX11 graphics API.
Moreover, a custom renderer, designed within the framework of DirectX11, was written for efficient utilization of resources, to minimize the overhead of rendering for the particles.
Notably, the simulation maintains high frame rates, seemlessly handling a substantial volume of particles. This is the direct outcome from the exploration of GPU-driven spatial acceleration techniques, with a particular focus on Spatial Hash Gridding, and the more contemporary approach of Spatial Binning, all achieved with full parallelism on the GPU.
At the core of the simulation lies an adaptation of the Navier-Stokes equations. This adaptation serves as the foundation for capturing realistic approximations of fluid movement, and particle interactions, all optimized for the constaints of a real-time environment.