EECE 478: Assignment #1


Due Date: Jan. 24 5pm.
Value: 5% of course grade.
Late Penalty: down 20% per day. No credit after 5 days.

This is a simple programming assignment to demonstrate an understanding of GLUT, OpenGL and some interactivity. For this assignment, you will work alone.

You will be required to compile and enhance the ex1.c program from the course website.

I will ask for three enhancements to the program:
  1. Add a new keyboard command (key '0') that will reset the gasket to a depth of 5, two-dimensional and drawn using points.
  2. Modify the redisplay so that when animated, it will generate a new frame every 16ms.  (See GLUT API docs...)
  3. Finally, modify the program so that when drawing the 3D version of the gasket, it recurses by dividing the tetrahedron into four sub-tetrahedrons (instead of simply recursing on the faces of the main tetrahedron as the program currently does).
The assignment submission will be by email (to leei+478@ece.ubc.ca), with a short (max. 40 lines) description of the means of accomplishing the enhancements, the operating system you used, and the complete source code for your working program attached. It will be compiled and executed to test its functionality.

The program will be marked based on the guidelines outlined in the document "Guidelines for Marking Programming Assignments"