OpenGL Terrain Generator
A downloadable game
This is a procedural terrain generator project created in C++ with OpenGL during my 3rd year of university. It consists of a procedurally generated scene with randomly generated terrain, animated water, clouds and altitude based textures.
Being my first experience with procedural mesh generation, I used all previously learnt skills with C++ and OpenGL. Throughout the creation of this generator, I learnt a lot about the use of Perlin Noise and the Diamond-Square algorithm.
This project consists of a procedural generated mountain/island surrounded by animated water with clouds overhead and surounded with a skybox. The mountains are generated using the Diamond-Square algorithm and the intensity was amplified to allow for more dramatic peaks. The water is simply animated using Sine waves (both on a small scale for small ripples and large scale for overall waves). The clouds use a Perlin Noise generator. A skybox is also included and both the mountains and waves transition between textures in their fragment shaders based off height position provided by their vertex shaders.
Build files to try out the generator are available on this page, source files are available on github at the following link: https://github.com/GameDevChris/OpenGL-Procedural-Terrain-Generator
Status | Prototype |
Author | Bodsworthcm |
Download
Install instructions
Unzip file and run .exe, all included folders and files must be in the same location as the executable.