CS 6620 - Fall 2012 - Ray Tracing for Graphics

Project 3 - Shadows, Reflections, and Refractions

In this project we add shadows, reflections, and refractions to our ray tracer.

Requirements

XML Scene Format

Our XML scene has some additional descriptions for materials that specify reflection and refraction properties.

<!-- Reflection color -->
<reflection r="1" g="1" b="0.8" value="0.7"/>

<!-- Refraction color and index of refraction -->
<refraction value="0.8" index="1.52"/>

<!-- Absorption coefficients -->
<absorption r="0.01" g="0.001" b="0.0001"/>

You can use this test scene to verify that your implementation is correct.

Resources

Here is an updated header file that includes classes for keeping the new scene definition in the memory. Here is an example implementation of the XML parser using TinyXML. You are free (but not obligated) to make use of these files.

Student Project Pages



_