Ray Tracing Project 9: Depth of Field


This project was straightforward to implement. For each ray generated, I selected a random position on the camera "disc" using 2 Halton sequences and a per-pixel random rotation.

I also increased the minimum sample count (adaptive sampling) from 4 to 8, yielding satisfactory results.


Render times listed below only include actual rendering, not scene file or output image I/O.

All the images were rendered with 4 render threads on my late 2011 Macbook Pro with the following specifications:

Color Image

Render time: 23.0 seconds

The test scene we were provided with.