Skip to content

Latest commit

 

History

History
41 lines (30 loc) · 1.09 KB

README.md

File metadata and controls

41 lines (30 loc) · 1.09 KB

Mod 1

3D water simulation using the pipe method

The solver uses a 2D staggered grid (heightmap)
It stores the water depth at the center of each cell and the water flow between each of them
This idea was first introduced by James O’Brien and Jessica Hodgins in Dynamic simulation of splashing fluids, 1995

The project uses magnum with ImGui

screenshots

Rain

Wave

Building

You will need cmake, sdl2, magnum and magnum imgui integration installed on your system alongside a C++20 compiler

git clone git@github.com:angauber/mod1.git
cd mod1
chmod +x build.sh
./build.sh

Running

Run the binary with a map file as the first argument

./mod1 resources/demo2.mod1