CS 6620 - Fall 2019 - Ray Tracing for Graphics

Project 9 - Depth of Field

In this project we add depth of field support to our ray tracers.

Requirements

XML Scene Format

In the XML scene format we specify depth of filed using the "dof" and "focaldist" tags inside the "camera" tag as below.

<camera>
   <!-- Additional camera parameters -->
   <focaldist value="70.0"/>
   <dof value="1.5"/>
</camera>

The "dof" value specifies the size of the circle of confusion and "focaldist" is the distance from the camera to the focal point.

Source Code

The following source code files are provided to help you with this and upcoming projects. You are not required to use them, but it is highly recommened that you use them and refrain from modifying them. Some of these files include additional code as compared to the same files in the previous project, so make sure to download them all again.

Test Scenes

The following scene files are provided to help you test your implementation. You can also prepare other scenes to show your work.

Optional Feature Suggestions

References

Student Project Pages



_