9

Depth of Field with the mental ray Renderer 91
To render depth-of-field effects with mental ray,
ray tracing (the Ray Trace toggle) must be enabled
on the Render Scene dialog > Renderer panel >
Rendering Algorithm s rollout (page 3–116).You
must also enable depth of field for the camera:
in the camera’s Multi-Pass Effect group, choose
“Depth Of Field (mental ray)” as the depth-of- field
type. (If you choose the scanline renderer’s Depth
Of Field option, the rendering that results can be
out of focus.)
The mental ray renderer uses the camera’s target
distance and f-Stop parameters to control the
depth-of-field effect.
The c amera’s t arget distance determines the focus
plane. The focus plane is the distance f rom the
camera at which the scene is completely in focus.
Focus plane in relation to a camera
Here it is set to the middle apple, as in the previous renderings.
Focus plane in relation to a camera
Here it is set to the neare st apple, as in the renderings that
follow.
The f-stop controls the amount of blurring at
distances other than the focus plane distance. In
a real-world camera, the f-stop measures the size
of the lens’s aperture. The lower the f-stop value,
the larger the apertu re and the narrower the depth
of field. So increasing the f-stop value broadens
the depth of field, and decreasing the f-stop va lue
narrows the depth of field.