COMP 236: Spring 2006
Homeworks
COMP236, Spring 2006: Homeworks
-
Mon Jan 22, 2006: Homework 1 (
part a,
part
b ), Transformations, Due Mon Feb 5
The winding order on the glut teapot is incorrect (I think its a glut bug).
If you have backface culling on (you should) you won't see the teapot,
it wll be drawn black (back faces of triangles). To fix this do the following
in your display routine for the teapot.
glMatrixMode(GL_MODELVIEW);
glPushMatrix();
     glLoadIdentity();
     glRotatef(180, 0,0,1); // NEEDED TO CORRECT WINDING ORDER
     glScalef(-1,-1,-1); // NEEDED TO CORRECT WINDING ORDER
     glutSolidTeapot(0.2);
glPopMatrix();
You could also just turn off backface culling, but you normally don't want to pay the performance penalty.
- Monday Feb 8, 2006: Homework 2 Perspective Transform and Clipping (link)(
Due Monday Feb 20)
- Monday Feb 12, 2006: Homework 3 (link)(
Due Monday Mar 6)
- Monday Apr 12, 2006: Homeworks 4 & 5 (link)(
Due Monday Apr 24)
- Monday Apr 24, 2006: Homeworks 6 & 7 (link)(
Due Friday May 05)