User Guide (Version 1.16)

Setting Camera Focus

Camera focus, or depth of field (DoF), is used to add realism to scenes by simulating the way a real-world camera works. You can use a broad depth of field to focus on the entire scene, or use a shallow depth of field to have sharp focus only on objects that are a specific distance from the camera.

Here are some guidelines and best practices when setting up camera focus:

  • Always keep characters in focus.

  • Shift focus slowly and deliberately.

  • Don't overdo it.

  • Do not use depth of field for scenes that are far away. Rather, it works best for differentiating between closeups and the background.

  • Use your eyes to focus at different distances and see what is sharp and what is blurred (use your thumb as a helper). This should give you a sense of how it should look in a scene.

DoF is rendered only for a single view pane layout (the default) in the viewport in Lumberyard Editor. If you are using a multiple view pane layout and the sequence camera is not in the active pane, DoF does not render. If you need to set this, complete the following procedure.

To set the view port for a single view pane layout

  1. In Lumberyard Editor, right-click the Perspective title bar in the viewport, then click Configure Layout...

  2. In the Layout Configuration dialog box, click the single view pane (the left-most option), then click OK.

  3. Right-click the Perspective title bar again, then click Sequence Camera.

            View port layout configuration

To add a Depth of Field node

  • In the Track View editor, right-click the Director node or any camera node, and then click Add Depth of Field Node.

Camera nodes take precedence over the Director node. Use the Director DoF node if you want the same DoF setup for multiple cameras. Most of the time, however, you want separate, specific DoF setups for each camera for more control.

You can add as many keys as you want, and use the curve editor to further tweak DoF settings to change over time.