Skip to content

A Terrain generated using a Heightmap. GPU Tessellation included.

Notifications You must be signed in to change notification settings

dindii/HeightmapTerrain

Repository files navigation

HeightmapTerrain

A Terrain generated using a Heightmap

How to run via command line:
First parameter - The heightmap image you want to generate the terrain from.
Second paramter [optional] - The texture you want your terrain to have.

Controls:
WASD - Camera movement
SPACE - Move camera upwards
LEFT CTRL - Move camera downwards
MOUSE - Camera look (rotation)
ESC - Close program
F2 - Switch between mouse or free view
F3 - Change render mode (Points, Lines, Triangles and Opaque)
F4 - Turns attenuation on (light losing strength by distance)
F5 - Enable normal map visualization
RIGHT SHIFT - Move the light upwards
RIGHT CTRL - Move the light downwards
ARROW KEYS - Controls the light source

NOTES:
Some artifacts are present because of the resolution of the heightmap image. To make it better, please use a noise map generated from a reliable source.

GPU TESSELLATION BRANCH:
In the Tessellation branch, all the mesh generation is made on the GPU so you don't need to wait while the map is being generated, also, there is level of detail (LOD) enabled.
imageAnimation


CPU Branch: b1 b2 b3 b4 b5 b6 b7

About

A Terrain generated using a Heightmap. GPU Tessellation included.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published