Skip to content

angauber/mod1

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

38 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

3D water simulation using the pipe method

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published