See assignments overview page for general information.
The ray tracer programming assignment is divided into seven checkpoints:
This is checkpoint #4, "Procedural shading".
Using your program from Checkpoint #3 (without extras), the task for this assignment is to add procedural shading to your ray tracer. On intersection with the floor, rather than using the Phong model from Checkpoint #3, you must compute the floor color at the point of intersection using procedural shading.
At the intersection point, you'll need to obtain the "texture coordinates" to perform the mapping of (u,v) to the desired color. The basic algorithm is as follows:
| Row | Column | Color |
|---|---|---|
| Even | Even | red |
| Even | Odd | yellow |
| Odd | Even | yellow |
| Odd | Odd | red |
To submit your solution, do the following before midnight on April 8, 2009:
As it is extremely important to continue to make progress as the course progresses, late deliverables will be penalized 10% for each day late. There is an exception to this rule: if you anticipate any problems with meeting deliverable deadlines, see me well in advance (ideally, at least one week) of the deadline that might be missed, and we can attempt to work out alternate arrangements.
Recall that you must do at least four "extras" in order to achieve the full 100 points for the programming assignments. "Extras" are worth five points each; this assignment has two possible "extras":
If you choose to do an extra, put multiple images on your web site: