Rendering Medvednica From a Heightmap
Na Sljeme, na Sljeme na Sljeme…. I started this project to explore the usage of Bullet’s btHeightfieldTerrainShape collision shape, initial idea was to generate a heightmap using Perlin noise. I ended up using a static heightmap as I didn’t like the results I was getting with the terrain generated from using plain noise.
Results are in the video below, Link to the source code: jan-kelemen/soil
Heightmaps
Heightmaps are images that are used to represent the height of a terrain. Values taken from this image are mapped to a rectangular grid, combining these two things gives us a coordinate in 3D space. Brighter values represent a higher point in the space. Below is the image I’ve used for this project, although you can generate a heightmap for any point of Earth with a site like manticorp.github.io/unrealheightmap.