Thomson Gunardi Teguh

Games and Graphics Programmer

Terrain Generator

Specifications

  • Platform: Windows
  • Engine: Unity3D
  • Language: C#
  • Tools: Git, Visual Studio

Summary

A procedural terrain generator that generates each polygons based on a height map that was generated through an algorithm.  The goal of this project is to investigate the technicalities of procedural mesh creation and basic illumination models.

Technical Details

  • Diamond Square Algorithm was used to generate a height map
  • Polygons and vertices were created based on a given dimension and the generated height map
  • Blinn-Phong Illumination and Phong Shading (per pixel lighting) was used to shade the terrain
  • Simple transparent shader was used for the water quad
  • A simple day and night cycle is used to test the correctness of the terrain shader
  • A variety of vertex colors were used based on the height of individual vertices

Next Post

Previous Post

© 2020 Thomson Gunardi Teguh

LinkedIn | GitHub | thomsongunardi@hotmail.com