C481 B581 Computer Graphics
Dana Vrajitoru
C481/B581 Homework 9

Due date: Monday, April 3, 2017.

In this homework we'll draw a teapot with a tea cup and explore light sources and material properties.

Ex. 1 Download the following files in a dedicated folder.
teapot_spec.cc
glheader.h --> same as in homework 8
Makefile

Compile the program with the command make and run it with the command teapot. For now, this program draws the glut teapot with material effects and a light source, and a disk for a table. Here is a snapshot of the application window:

a. Add a tea cup with a saucer next to the teapot on the table, with different material properties. You can create a tea cut any way you want, for example, using the glutSolidCone function (see reference: https://www.opengl.org/resources/libraries/glut/spec3/node83.html) combined with a disk. Alternatively, you can use the rotation surface from homework 8.

Change the colors in the scene or other light/material properties combination the way you want.

b. Add another light source to the scene, defined using GL_LIGHT1 instead of GL_LIGHT0. This light starting from a position at a distance of 3 from the teapot over x. Add an animation that rotates this light source around the teapot.

Upload to Canvas: all the files that you modified/added.