Naudotojo vadovas Atšaukti

3D depth data extraction

Extract depth data from a 3D scene and use the depth maps to create more realistic 3D composites.

You can now get depth data from Advanced 3D scene in the same way as working with the Classic 3D and Cinema 4D renderers. The depth maps based on the depth data can be used to create more realistic composites by simulating real-world camera settings for 3D renders or to apply effects to a portion of a 3D scene based on its depth. 

There are two ways to use this depth data in After Effects:

  • Create a depth map via the 3D Channel Extract effect
  • Apply one of the 3D Channel effects that can reference depth data directly

Create a depth map using the 3D Channel Extract effect

3D Channel Extract generates a grayscale depth map where parts of the scene that are closer to the camera are brighter, and further away elements are darker. This map can be used as an input for other effects like post-processing blur or color correction effects. You can adjust the black and white point to change the range of the map, and these values can also serve as a helpful reference when setting values of other depth-aware effects. 

A lotus suspended in the air.
A lotus suspended in the air with depth map added.

Before and after the 3D Channel Extract effect is applied to create a depth map from extracted depth data.

  1. Create a 3D scene and precompose it by selecting the layers in the timeline > Layer > Pre-compose.

  2. Give a name to the precomposition.

  3. Select the precomp and select Effect > 3D Channel > 3D Channel Extract.    

  4. Once you apply this effect, in the Composition panel, you'll get depth data representing the distance of each point on a surface from the camera. Black represents further away from the camera, and white represents the closest.

    In the Effect Controls panel, under the 3D Channel Extract effect, use the Black Point and White Point options to adjust their values and range.

  5. Now, use this depth map and add effects to create variations of stylized animations. 

A lotus suspended in the air with depth map added.
A lotus suspended in the air with depth map and Color Correction effect added.

An example where the Colorama effect is applied to the depth map created using the 3D Channel Extract effect.

Apply 3D Channel effects that can reference depth data directly

Depth of Field and Fog 3D don't require 3D Channel Extract. These effects create more realistic composites by simulating camera behavior and can also produce more exaggerated, stylized looks.

Depth Matte also accesses depth data directly and can be animated to create depth-based transitions or used with static settings to create a partial matte of a scene or to insert 2D layers in the middle of a 3D scene. 

More like this

Gaukite pagalbą greičiau ir lengviau

Naujas vartotojas?