From the course: After Effects Compositing: 2 Matching Foreground to Background

Unlock this course with a free trial

Join today to access over 22,600 courses taught by industry experts.

Add a 3D-generated depth map from CINEMA 4D

Add a 3D-generated depth map from CINEMA 4D

I've shown you how to create a simple depth map with a straight gradient to rack focus along a flat plane. The real world is more complicated of course, and as you add more complex images like this computer-generated skateboard, you'll want a computer-generated depth map to match. Here's how you set that up. In this case, working with a Cinema 4D source scene. This shot contains a rack focus. And it travels right along the distance of this board. So pretty much from the back to the front of the board, if you look at where the plane is in focus right along the bottom of that board. The skateboard element is from Cinema 4D and I have the scene right here, so I'll add it to the comp. And after a moment's pause we'll see the software-rendered version. I can switch that to Final Render. And once I do that, I get access to the multi-pass options. If I click Set Multi-Pass, one of the options is for depth. I'll click OK, and now I see a 3D depth map, which I can use with camera lens blur and…

Contents