Homework 5

22C:151 Introduction to Computer Graphics

Due Tuesday, October 14, 2003

15 points

This assignment involves a few small extensions of Homework 3, to get ready for use in developing your ray tracing program in Homework 6.

In Homework 5 you will implement a recursive ray tracer. Instead of requiring users to edit, by hand, a text file to describe the scene to be rendered, we'd like to be able to let users create their scenes interactively using a program like that of Homework 3. Using your Homework 3 program, users can create and position objects and the viewpoint, enabling them to quickly set up a nice scence. The idea here is to add functionality to Homework 3 that will enable you to use save and then use that scene description as input for your ray tracer.

Note that your ray tracer will only be required to handle spheres and boxes (cubes scaled by possible differents amounts along each axis). So, you only need to update/handle Homework 3 features relevant to spheres and boxes (not cones, cylinders, etc.)

Requirements:


Submitting your program

Submit your assignment according to the guidelines on the class WWW home page. For the on-line part of the submission, respond 'hw5' to the ``Location:'' request.