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

Unlock this course with a free trial

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

Rack focus with a 3D-generated depth map

Rack focus with a 3D-generated depth map

Now that we've looked at the fundamentals behind using a depth map like this one to add shallow depth of field to a 3D object such as this, let's create the actual rack focus shot. Now, it's a little bit more complicated in this particular scene than just simply key framing the focal distance. But that is where we'll start. So here at the beginning, I'll just set this to 0%. Go to the end. And I'll rack focus forward to 100%. Instantly you can see a problem. The focal map isn't fitting the board. The reason for that, is a phenomenon that exists in this scene called lens breathing. If I just solo the plate you can see this in action so, see the slight zoom that's happening between the beginning and end of the shot. This is a natural byproduct of a heavy rack focus. I've accounted for it in the foreground by parenting all the layers associated with the board to this scale null. So this goes down to 97, from 100. I’ll copy that to use it in this scene as well. But now I have a challenge.…

Contents