A simple console programm to create a random heightmap based on different algorithms.
Following algotihms can be used to create an initial heightmap:
Fractal (1-3) and procedural (4-7) algorithms
- triangle division
- diamond-square
- midpoint disblacement
- fault formation
- particle deposition
- perlin noise
- voronoi diagram
additional you can use erosion algorithms to simulate heightmap erosion overt time.
Source code is available and testet for Windows and Linux, also Sample Data are added for heightmap textures.
Generated heightmaps can be used for games or simulations.
How To:
just comile source code and put data folder in the same directory as generated heightmap binary.
Tested on Windows (Visual Studio) and Linux (CodeLite)
More details about this: https://developer-blog.net/cplusplus-programm-windows-linux-portieren/