Assignment 3 - Bump Mapping
Introduction
Here comes Assignment 3! In this assignment, we have to add realism to our previous Assignment 2 project using texture and bump mapping. Toggling of 'B' key should also be implemented to switch the rendering between scenes with/without bump mapping.

In this assignment, I made use of 2 additional programs to aid me in the rendering of bump mapping. These 2 programs are GIMP and GTK+ Runtime environment.


The GIMP

The GIMP is the GNU Image Manipulation Program. It is a freely distributed piece of software which allow tasks such as photo retouching, image composition and image authoring.


GTK+
GTK+ is a multi-platform toolkit for creating graphical user interfaces.GTK+ was initially developed for and used by the GIMP, thus it is also known as the GIMP Toolkit.Today GTK+ is used by a large number of applications and is the toolkit used by the GNU project's GNOME desktop.The 3 libraries used by GTK+ are GLib, Pango and ATK.
Bump mapping
Floor texture with bump mapping
Floor texture without bump mapping
The texture with/without bump mapping are shown as above. Bump mapped texture is created using The GIMP. In the program, we load the texture which we want to apply bumping mapping (ie the picture on the left). Using the function "Bump mapping" which is available in The GIMP, a texture which is bump mapped is then generated (ie the picture on thr right).This texture is then applied onto the floor plane.Here, a scene with a bump mapped floor is achieved.

To allow toggling between the scene with/without bump mapping, a flag is set to determine the status of user's choice.If bump mapping is selected(flag=true), then the floor will be textured with the bump mapped texture.Otherwise, the flag will be set to false and the floor will be textured with the normal unbumped texture.
References
The GIMP
GTK +
Download Area
Assignment 3 (Zip file)
Back to Home!
Hosted by www.Geocities.ws

1