Cheat sheet · April 28, 2025

Depth Blur and Fog with Z-Depth: Integrating CINEMA 4D and After Effects

In 3D graphics, a sense of depth and atmosphere plays an important role. One convenient way to enhance these effects is to use a Z-Depth pass to create blur and fog at the compositing stage. In this article I’ll show how to prepare a scene in CINEMA 4D and build a realistic effect in After Effects — quickly and without re-rendering.
Using Z-Depth to create blur and fog in After Effects. It’s a simple but very effective way to add depth and atmosphere to your projects.

Preparing the scene in CINEMA 4D

Create an abstract scene.
  • Place the objects in 3D space so that they sit at different depths relative to the camera.
Depth Blur and Fog with Z-Depth: Integrating CINEMA 4D and After Effects
An example of a simple abstract scene in CINEMA 4D with objects arranged in depth.
Render settings:
  • Open the render settings.
  • In the Multipass section, add a Z-Depth pass.
  • Output the final render as TIFF (or another format that supports channels) together with the Z-Depth pass.
Depth Blur and Fog with Z-Depth: Integrating CINEMA 4D and After Effects
Adding a Z-Depth pass in the render settings to output a depth map.

Working with Z-Depth in After Effects

Importing the files:
  • Import the main sequence/image and a separate Z-Depth layer into After Effects. Right after import, the layer looks black.
Depth Blur and Fog with Z-Depth: Integrating CINEMA 4D and After Effects
Z-Depth after import into After Effects.
Preparing the Z-Depth layer:
  • Apply the 3D Channel Extract effect to the Z-Depth layer (Effect → 3D Channel → 3D Channel Extract).
  • Once the effect is applied, the layer will start showing the depth information.
Depth Blur and Fog with Z-Depth: Integrating CINEMA 4D and After Effects
3D Channel Extract.
  • Use the Black Point and White Point parameters to set the visible depth range — this helps bring out the details in the scene properly.
Adjusting the black and white points to bring out the depth in Z-Depth properly.

Creating depth blur

Adding the blur:
  • Create a new Adjustment Layer.
  • Apply the Gaussian Blur effect to it (Effect → Blur & Sharpen → Gaussian Blur).
Masking by depth:
  • Use the Z-Depth layer as a matte for the blur effect (with a track matte or the Set Matte effect).
  • Now objects farther from the camera will be blurred more, while closer ones stay sharp.
Depth Blur and Fog with Z-Depth: Integrating CINEMA 4D and After Effects
Depth blur with the Gaussian Blur effect on an adjustment layer.

Creating the fog effect

Creating the fog:
  • Add a solid layer in a neutral blue color (Layer → New → Solid).
  • Use the same Z-Depth layer as its matte.
Fine-tuning the fog:
  • To make the fog look more natural, add the Fractal Noise effect to the color layer (Effect → Noise & Grain → Fractal Noise).
  • Add a slight blur to soften the fractal details.
  • Adjust the layer’s opacity.
Depth Blur and Fog with Z-Depth: Integrating CINEMA 4D and After Effects
Adding a color layer and masking it with the depth map to create the fog effect.
This way, a Z-Depth pass lets you achieve professional depth blur and add atmospheric fog — without having to re-render the 3D scene.

A few tips:
  • Control the depth range already in CINEMA 4D — it will save time during compositing.
  • Work in 16 bits per channel in After Effects — this prevents posterization and makes the gradients in Z-Depth smoother.
  • Experiment with the Fractal Noise settings to make the fog look natural.