Claurissa Tuttle
Graphics 6620


Project 4.

Required image:


The red box in this image shows, but I swapped the min and max values in the scene file that was provided to us because my box class assumes that the lower bound is given first.

Code listing:

Program 4 zipped

Design Choices:

I implemented ray-tree pruning and that sped up the rendering process quite a bit. I wasn't sure where to keep track of the attenuation, so I put it as part of my ray class. That worked out pretty well. Other than that, I just followed the notes from class. On the coupled model, I chose to include the phong component. I chose to implement phong with the coupled model because I felt that the coupled surface should be shiny.

Creative Image:



This image contains 25 phong spheres, a phong disk, a glass ball, a glass heightfield, 10 metal boxes, and a metal sphere that has a pinkish tint. It also uses a gradient background.

Time it took:

Didn't keep track

Difficulty:

The most difficult part was figuring out that my dielectric file was correct, but I wasn't correctly calculating the normals for the box when a ray leaves it.

Extra Credit:




The first image is of the coupled model on the spheres in place of the Phong material, and on the floor in place of the Lambertian material. As you can see (especially in the reflection of the floor on the metal sphere), the phong term was included in the calculations. The second image is of a heightfield of Renton Washington. The third image is the Oren-Nayar version of the heightfield with a standard deviation of 1.0f.