Skip to content

Latest commit

 

History

History
37 lines (29 loc) · 1.3 KB

README.md

File metadata and controls

37 lines (29 loc) · 1.3 KB

wasm-fluid-sim

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

Building from source

This project uses CMake for the build process, so install that if you don't have it already.

Windows (MSVC)

# From the root folder of the project:
cd build
rm CMakeCache.txt
cmake ..
cmake --build . --config Release

WebAssembly (Emscripten)

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