This project is based on Mike Ash's implementation of the fluid simulation which was based on Jos Stam's paper on Real-Time Fluid Dynamics for Games. You can find his original implementation here.
You can download from the releases page to run the program as a .exe
, or you can build the project yourself.
Download the repository and open the sfml-fluid-simulation.sln
file in Visual Studio 2019/2022.
Setup SFML with your Visual Studio solution.
Then build and run the project.
To cycle between the different rendering modes, press the Spacebar
key.
To exit the program, press the Escape
key.
To change the simulation settings, open the Constants.h
file and change the values of the constants.