Project 9 - Depth of Field

We now have the ability to use our circle of confusion to simulate depth of field in a scene. This requires our camera to now contain information about the focal distance to the plane that is in focus along with how large our circle of confusion is (aka how blurry things off our focal plane get). By simply changing the rays being cast in the scene with quasi-random sampling and random rotations of those samples on our circle of confusion, we get depth of field for free.


Many Spheres

depth of field


Many Spheres - More Samples

depth of field, more samples


Many Colors

depth of field


Buggy Images


Details

Specs

Many Spheres:

render time minimum samples maximum samples
49.136 s 8 32
1 min 45.240 s 16 64

Many Colors:

render time minimum samples maximum samples color variance
19 min 08.591 s 16 128 0.0001