Procedural Terrain Generation

Github Link

Overview

This is a C++ programmed OpenGL application that generates a square shaped terrain of odd numbers (3×3, 9×9 etc.). The Diamond – Square algorithm was used to generate the terrain, incorporating a random value at each vertex, weighted by the values of it’s surrounding vertices. This gave the terrain a more natural feel. Every time this program is run, the terrain will be generated differently.

Skills Learned

Future Features

Screenshots

This slideshow requires JavaScript.

Code Snippets