Skip to content

abobco/wasm-fluid-sim

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Particle-based fluid simulation targetting native Windows and WebAssembly http://www.studiostudios.net/wasm-fluid-sim/main_sim_sdl.html

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published