Ray Tracer Checkpoint 4: Procedural Shading

Assigned: January 11, 2012

Due: January 20, 2012

See assignments overview page for general information.


Introduction

The ray tracer programming assignment is divided into seven checkpoints:

  1. Setting the scene
  2. Camera modeling
  3. Basic shading
  4. Procedural shading
  5. Recursive ray tracing - reflection
  6. Recursive ray tracing - transmission
  7. Tone reproduction

This is checkpoint #4, "Procedural shading".

Objective

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:

What to Submit

To submit your solution, do the following before midnight on January 20, 2012:

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 of the deadline that might be missed, and we can attempt to work out alternate arrangements.

Extras

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: