Skip to content

ryan-cd/Terrain_Generator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Terrain_Generator

OpenGL 1.0/C++ random terrain generation with dynamic lighting and shading. The program will prompt you for a size of terrain to generate, and then will generate a random terrain using an implementation of the fault algorithm.

The terrain is colored according to hypsometric tinting.

The program defaults to display the terrain with flat shading, and the user is able to change the shading mode to Gouraud shading.

The main terrain window opens along with a heightmap window that shows an overhead view of the terrain. The user can interact with the heightmap to instantly modify the terrain.

The user is also able to change the scene orientation, the amount and positioning of the lights, and turn on different kinds of wireframes.

alt-text alt-text alt-text

Required Libraries

glut.h, gl.h

Running the Program

This repository is a Visual Studio 2013 solution. An exe is in the debug folder. When running the program operation instructions will appear in the console window.

About

OpenGL random terrain generation with dynamic lighting and shading

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages