Graphics Terrain Generation and Lighting

Description

Made during 3rd year (2015/2016) of college using SFML + OpenGL + Assimp. Terrain height generated from black+white height map texture. Light applied to vertex shader along with this height. Fragment shader applies color to fragment (sea/water/snow) depending on height.

Controls

  • W, A, S, D to move camera
  • Q, E to move camera up and down
  • O to switch to orthographic projection
  • P to switch to perspective projection
  • Arrow keys to change camera facing direction
  • I to see wire mesh of polygons

Video

https://youtu.be/ObMABocSfLM?list=PLn9-l8kkg87PzWmn7uGRBlUTwavOcUfOw