Assignment 4

Cameras

Ray tracing using varying camera parameters. Please excuse the lighting model - it's pretty unrealistic right now.

All images have lookfrom=(0,0,-5) lookat=(0,0,0) lookup=(0,1,0). The film is 35mm x 58mm (aspect ratio 1.66667) and is 10mm behind the lens. The lens (except in the pinhole image) has 50mm focal length. There is a plane at y = -1 (xz-aligned) and a sphere with center (0,0,-2) and radius 1. There are 4 samples per pixel, jittered both on the film and on the lens.

First, I'll show the image as it looks through a pinhole camera:

Focus plane Aperture .1 Aperture .2 Aperture .3
x = -4 (in front of sphere)
x = -3 (on tip of sphere)
x = -2 (in middle of sphere)
x = 5 (behind sphere)