Depth Of Field

I added depth of field to the camera class. There are two parameters that affect the depth of field using this interface; focal distance and lens radius.

The focal distance corresponds to the distance of the focal plane which will have an infinite depth of field and is the same as the pinhole camera. This means that objects at the focal distance will be in focus.

The lens radius corresponds the the aperture which samples are generated on. The larger the radius the more peturbed the ray is and gives a shallower depth of field.

Below the gifs show the affect of changing one of the parameters while keeping the other one fixed.

render-aperture.gifrender-dof.gif

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s