CS 6620
Project 9
Chelsea Robertson
Required Image
None for this assignment.
Code Listing
My source code for project 9 can be found
here.
Creative Image
This image consists of 50 randomly colored boxes. Each
box is also randomly rotated (random axis and angle), randomly translated, and
randomly scaled.
Design Choices
Below are some of the design decisions I made:
- I followed the recommended implementation given in the class notes.
- I created an Instance class that is a subclass of my Primitive class.
- The Instance class contains a constructor which takes in an object, matrix,
and material, an intersect method, and a normal method. The normal is stored
in the scratchpad during the intersect call, and in transformed in the normal
method.
- I used the Matrix class in Realistic Ray Tracing, and modified it to
function with my code.
Extra Credit
I didn't implement the extra credit.