Session 6 - Terrain Generation
Table of Contents
Base project
The base project can be downloaded from this week Github folder. which contains the TerrainShaderized Visual Studio Solution to get you started with the modern version of OpenGL. The project uses the libraries: GLM, GLEW and freeglut. The project contains initialisation code to create a window and to draw a flat height map. Compile and run the code and check that you get the grid shown below.
Make Sure, the project Configuration is set as 'x64' (NOT 'Win32').
Terran generation
The instruction for lab task can be found in "Workshop 6B Instructions.pdf".
Hint: The random function with range from -1 to 1 should be expressed as
h1 = (rand() % 10) / 5.0 - 1.0;
The final result should like this: