Thursday, February 19, 2009

Inter 3D Week 2

This week was a big leap but still very interesting. This week we were given the task of getting terrain on screen using three different methods.

Using a height map


Procedural Fault Formation Generation


Procedural Midpoint Displacement Generation


Both procedural methods are based off Jason Shankel's code found in the Programming Gems book. The articles about it are very interesting especially seeming as I just have this attraction to terrain.

After getting the terrain working was to light it and make it look solid. This meant creating a mesh to calculate hold the normals for the terrain easily, otherwise it would not be lit properly.

This is the Midpoint method being lit.

No comments: