JosefAlbers/TerrainZigger
TerrainZigger: A procedural 3D terrain generator and visualizer written in Zig using Raylib
TerrainZigger is a 3D terrain generator written in Zig using the Raylib library. It creates procedurally generated landscapes with dynamic water features, offering an interactive 3D visualization.
To build and run TerrainZigger, you'll need:
Clone the repository:
git clone https://github.com/JosefAlbers/TerrainZigger.git
cd TerrainZigger
Build the project:
zig build-exe terrain_zigger.zig -lc $(pkg-config --libs --cflags raylib)
Run the executable:
./terrain_zigger
You can adjust various parameters in the terrain_zigger.zig
file to customize the terrain generation:
TERRAIN_SIZE
: Changes the size of the terrain gridINITIAL_WATER_LEVEL
: Sets the initial height of the water planeCUBE_SIZE
: Modifies the size of individual terrain cubesFeel free to experiment with the fbm
function parameters in generateTerrain
to create different terrain styles.
Contributions are welcome! Please feel free to submit a Pull Request.
This project is open source and available under the MIT License.
Happy terrain generating! 🏞️