> For the complete documentation index, see [llms.txt](https://video-copilot.gitbook.io/element2/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://video-copilot.gitbook.io/element2/composing-element-3d/using-depth-compositing.md).

# Using Depth Compositing

## Using Depth Compositing

You can use a Z Depth or [World Position Pass](/element2/composing-element-3d/world-position-matte.md) to integrate other layers. What you could do is use a duplicate of your Element layer, set the duplicate to Z Depth from the Output/Show. You can then set that layer as a track matte for another layer to get it to appear behind an object.

<figure><img src="/files/F5JF9MnWyyYP4lxdcgdm" alt=""><figcaption></figcaption></figure>

## Video Tutorial

• Use a Z-pass render to combine 2D stock footage\
• Use most 3D programs like 3D max, C4D & even Element 3D

{% embed url="<https://www.youtube.com/watch?ab_channel=VideoCopilot2&v=FivFZhcQFi4>" %}

## Settings

### Z Depth Start

Control the start depth (white) and how it transitions to the End (black).<br>

### **Z Depth End**

Control the position of the Depth (black)  <br>

### **Clamp Output**

Limits the maximum depth value to 1 when using 32bpc.<br>

### **Preserve Alpha**

Makes background transparent&#x20;
