Assignment  2A. Due date: 11:59am, November 17th, 2011

The goals of this assignment are to familiarize yourself with the OpenGL commands of illumination, shading and texture mapping. You can directly use any commands provided by OpenGL.

1.    Illumination and Shading

Based on the assignment 1, extend the system to support the following features (you only need to implement the following futures in the OpenGl window!)

bullet

Support for a light source.

bullet

Interactively turn light(s) on and off.

bullet

Support flat shading models.

bullet

interactive change the (RGBA) values associated with the global ambient light.

bullet

interactive change the (RGBA) values associated with the specular material properties of the objects.

2.    Texture Mapping

bullet

Put a cow texture on the cow mesh model.

bullet

The texture should be modulated by the shading computation.

You have to submit your code and a self-contained executable program to csc5870@cs.wayne.edu by the deadline. Please include all the necessary source code (do not include "debug" or "release" directory but do not forget "res" directory if you are using VC++), and a file named "Readme.txt" in the submission. We will check and compile your code, then give you an evaluation.