James Bigler: CS6650 Homework 5




Create an image with depth of field effects by randomly choosing ray origins on a lens rather than at a point.



Here are some examples illustrating this effect. All images were created with 1024 samples per pixel using a jitter sampling



Example 1

The yellow sphere is in focus

Example 2

The blue and red sphere are in focus

Example 3

The green sphere is in focus

Example 4

The white sphere is in focus

Movie

This is a movie showing the tweening of focus from the yellow sphere to the white one.


// this is sample code