How to Create Depth of Field in After Effects

Create Cinematic Depth of Field in After Effects

Introduction to Depth of Field in After Effects

 

Depth of field adds a cinematic look to your scene by blurring objects that are too far or too close to the camera. It helps create focus and adds a sense of realism to layered 2D or 3D compositions. In this tutorial, you’ll learn how to enable and control depth of field using a camera layer in After Effects.

Step 1: Prepare Your Composition

Open your project in After Effects. For best results, use a scene with multiple visual layers – for example, a landscape with foreground, midground, and background elements. This will make the depth of field effect more noticeable and visually appealing.Step 2: Add a Camera Layer

Go to Layer > New > Camera. In the settings window, choose a preset such as 50mm and make sure Enable Depth of Field is turned on. This camera will simulate real-world lens behavior inside After Effects.

 

Get 10% off when you subscribe to our newsletter

By subscribing you agree to your email being stored and used to receive the emails in accordance to our Privacy Policy
descount

Step 3: Make All Layers 3D

Select each visual layer in your timeline and enable the 3D Layer switch (the cube icon). This allows layers to exist in 3D space, which is required for the camera and depth of field to interact with them properly.Step 4: Position Layers in 3D Space

Press “P” to reveal the Position property for each layer. Adjust the Z-axis (Z value) to arrange your layers in depth. Place background layers farther away (lower Z values) and foreground objects closer to the camera (higher Z values). This creates a simple parallax setup for a more realistic scene. Step 5: Adjust the Camera’s Aperture

Twirl open the Camera layer’s properties and go to Camera Options. Increase the Aperture value (for example, set it to 933) to intensify the depth of field effect. A higher aperture creates a stronger blur between focused and unfocused areas.

-50%
-50%
00hrs : 00mins : 00sec
Happy HolidaysSale sitewide
Shop now

Step 6: Set the Focus Distance

Still in the Camera Options, adjust the Focus Distance. A smaller value will keep close objects in focus and blur the background, while a higher value will focus on distant elements and blur the foreground. Fine-tune this to get the visual depth effect you want. Step 7: Preview the Scene

Press the Spacebar to preview your animation or static scene. Look at how the focus shifts and how the background or foreground elements blur. You can always adjust the Focus Distance, Aperture, and layer Z-positions to refine the result.

Conclusion

Adding depth of field in After Effects is a powerful way to simulate camera focus and create cinematic, layered visuals. By setting up a camera, enabling 3D layers, and adjusting focus controls, you can guide the viewer’s attention and add realism to your motion graphics or compositions.

-50%
-50%
00hrs : 00mins : 00sec
Happy HolidaysSale sitewide
Shop now

Our Bestsellers