SC443:
Computer Game Programming
Assignment
#3: Bumps in NTU. Can You Feel It?
The purpose of this assignment is to
modify Assignment #2, and add a Bump Map to any of the surfaces present in the previous
assignment. The purpose of this is not to practise coding bump mapping in
OpenGL or DirectX, but rather to make sure the student understands the concept
of Bump Mapping and how it can be useful in the rendering of 3D generated
scenes.
Using a simple graphics programme, an
embossed bump map of the brick wall in the scene has been created. This bump
map is then used to enhance the brick wall in the scene. Pressing the gBh buton
will swap the regular texture map with the bump map. A comparison of the bump
maps can be seen below.
Picture
on left is regular texture map. Picture on right is the bump map.
Navigation buttons are supposed to be
provided in this assignment, however, it has already
been incorporated in the previous assignment, so the key navigations are still
the same.
The choice of using Texture Bump Mapping
is because the OpenGL code for actual bump mapping is very complex and various
implementations of it failed and tended to crash the programme itself. Hence,
the Texture Bump Mapping is used. The code and executable for this assignment
can be found here.