Depth of Field

Depth of Field

Maya 8.0 Tutorial


How to Add 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.


Step One

With several objects in your scene, add a camera (Create > Cameras > Camera).

Step Two

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 by pressing and holding the Option key (PC - Alt key) and dragging the mouse while holding the left, middle or right mouse button.

Step Three

The objects should be at different distances from the camera. In this example the objects are 10, 20 and 25 units from the camera.

Step Four

Select the camera object in the workspace or with the Outliner (Window > Outliner). Open the Attribute Editor panel for the camera by clicking the Attribute Editor icon.

Step Five

Open the camera's Depth of Field category and click the Depth of Field checkbox.

Step Six

Adjust the Focus Distance, F Stop and Focus Region Scale settings to simulate depth of field. In 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. career skills