A hydraulic erosion simulation written in c99 based on Hans Beyer's paper.
This is a hydraulic erosion simulator written in C implementing Hans Beyers hydraulic erosion algorythm. It uses OpenGL and GLFW for the graphics, encapsulated in my own custom API based on the sokol-headers.
Before | After |
---|---|
Platform | Support | Notes |
---|---|---|
Windows x64 | ✔️ Yes | |
Windows x86 | N/A | |
Linux x64 | ✔️ Yes | |
Linux x86 | N/A | |
MacOS | ✖️ No | MacOS does not support OpenGL. |
To build and run this project, you will first have to download it localy. Use either git or download it directly from github.
If you use git to clone this repository, use the following command to make sure you get the all the dependencies as well.
git clone https://github.com/jovialen/hydraulic_erosion.git --recursive
You can then use the build scripts in the repository root to build the project
Target | Description |
---|---|
release | Build the release version of the project. |
debug | Build the debug version of the project. Has a terrain wireframe. |
sh build_linux.sh <target>
.\build_win32.bat <target>