Depth of Field
Maya 2012 Tutorial
How to Control Depth of Field in Maya
Depth of Field for real cameras is controlled with the lens aperture. A larger aperture opening (i.e., f2.8) provides much less in focus than a smaller aperture opening (i.e., f22). In Maya we can simulate the depth of field by adjusting the depth of field camera settings. For more info on cameras, see topic Add a Basic Camera.
With several objects in your scene, add a camera.
In the perspective view, choose Panels > Perspective and choose your new camera. The view now displays the scene from your new camera's point-of-view. Move the camera to frame the objects in the scene.
The objects should be at different distances from the camera. In this example the objects are 10, 20 and 25 units from the camera.
Select the camera object in the workspace or with the outliner (Window > Outliner). Open the attributes panel for the camera by clicking the Attribute Editor icon.
Open the camera's Depth of Field category and click the Depth of Field checkbox.
Adjust the Focus Distance, F Stop and Focus Region Scale settings to simulate depth of field. For this example, Distance = 10, 20 and 25, F Stop = 5.6 and Scale = 60.
Depth of Field and f-Stops
Common f-stops include 2.8, 4, 5.6, 8, 11, 16 and 22. The smaller the number the shorter the depth of field. Depth of field is also dependent on the camera's distance from an object.
What's Focus Region Scale?
The Focus Region Scale setting allows you to determine the depth of the focused area. The default setting is 1. As you increase the setting, more of your image is in focus.