Spring 2009 CSG140 Computer Graphics

Assignment 2

Professor Harriet Fell


In this assignment, you will add reflection and transparency to your ray tracing program.

General description

Here are the stages for developing your program. You may choose to do them in a different order.

  1. Make your program recursive (See "recursive ray tracing" in your text). Until you add reflection or transparency, there will be no recursive calls.

  2. Add reflection and get it working properly. Make sure that your scene has at least one reflective sphere and that other spheres are placed where the viewer will see their reflections.

  3. Place a second reflective sphere in your scene and call on recursion (level 2, 3 or higher) so that reflections in reflections are visible.

  4. Add a bubble (non-refractive transparent sphere).

  5. Add a solid, refractive transparent sphere.

See Building a Ray Tracer - Page Two and Building a Ray Tracer - Page Three for sample images. Note that the small images on that page are links to larger images.


By midnight Thursday, February 12, 2009.


The usual grading guidelines apply for late work.

For the performance parts of this program:

Code, comments, ease of use - 30 points

Turn in:

Harriet Fell
College of Computer Science, Northeastern University
360 Huntington Avenue #161CN,
Boston, MA 02115
email: graphics@harrietfell.com
Phone: (617) 373-2198 / Fax: (617) 373-5121

Last Updated:
The URL for this document is: http://www.ccs.neu.edu/home/fell/CSU140/Assignments/CSG140SP2009prog2.html