Try a demo in the browser here!
This is a C++ implementation of the particle-based fluid simulation method described in this paper. This project was done as an exercise to compare the performance with my javascript implementation of the algorithm, and to learn about more about writing web applications in C++.
The project also includes a native application for x64 windows, which can be run with:
# From the root folder of the project:
cd build
./Release/main_sim_sdl.exe
This project uses CMake for the build process, so install that if you don't have it already.
# From the root folder of the project:
cd build
rm CMakeCache.txt
cmake ..
cmake --build . --config Release
First, install the Emscripten compiler from here if you haven't already. Then, from your preferred terminal:
# From the root folder of the project:
cd build_wasm
rm CMakeCache.txt
emcmake cmake .
cmake --build . --config Release