Start learning with our library of video tutorials taught by experts. Get started

CINEMA 4D: Rendering Motion Graphics for After Effects
Illustration by John Hersey

Adding depth of field with the Lens Blur effect


From:

CINEMA 4D: Rendering Motion Graphics for After Effects

with Rob Garrott

Video: Adding depth of field with the Lens Blur effect

When you shoot images with a real camera, there is an effect called depth of field that's present in all photographs. This refers to the amount of subject matter that is perfectly in focus, starting from the foreground and traveling backwards into the image. Depth of field can add tremendous amounts of realism to any scene if used correctly in 3D. 3D renders though are not produced by real cameras and as a result they don't have this effect. Fortunately the programmers of both CINEMA 4D and After Effects have given us the tools to create this effect right inside of After Effects. The depth of field that I'd like to create in this image is going to be based on the platform as the central focus point for the image.
Expand all | Collapse all
  1. 5m 48s
    1. Welcome
      57s
    2. Using the exercise files
      50s
    3. Essential plug-ins
      4m 1s
  2. 51m 44s
    1. Essential render settings
      6m 24s
    2. Setting up an object buffer list
      6m 17s
    3. Creating object buffer tags
      10m 48s
    4. Setting up multi-pass image layers
      5m 37s
    5. Creating an external compositing tag
      1m 47s
    6. Creating render passes using the Render Elements plug-in
      9m 39s
    7. Using Render Elements to optimize render passes
      5m 12s
    8. Batch rendering
      6m 0s
  3. 31m 33s
    1. Importing files and organizing an After Effects project
      6m 58s
    2. Creating a 3D object precomp
      3m 15s
    3. Attaching a video layer to a 3D object
      8m 17s
    4. Compositing 3D text
      2m 47s
    5. Compositing a dynamic 3D background
      4m 23s
    6. Setting markers for major events
      5m 53s
  4. 39m 46s
    1. Adding the Star Glow effect to a layer
      4m 32s
    2. Creating a glow on the stadium background
      5m 56s
    3. Revealing the background glow using a 3D layer mask
      7m 19s
    4. Creating a glow using the Ambient Occlusion pass
      6m 9s
    5. Using the Ambient Occlusion glow to create an energy animation
      4m 25s
    6. Creating a stadium light effect using object buffers
      4m 38s
    7. Adding flash bulbs with the CC Light Rays effect
      6m 47s
  5. 53m 16s
    1. Creating the phone reveal
      5m 10s
    2. Creating the phone reveal glow
      7m 49s
    3. Creating the phone reveal beams
      7m 17s
    4. Colorizing the energy beams
      6m 21s
    5. Creating the energy burst
      10m 19s
    6. Using Trapcode Particular to add sparks to the phone reveal
      10m 53s
    7. Creating the phone screen video
      5m 27s
  6. 15m 37s
    1. Creating the type glows
      9m 36s
    2. Adding the type glint
      6m 1s
  7. 34m 33s
    1. Creating a camera shake effect using precomps
      8m 12s
    2. Adding depth of field with the Lens Blur effect
      8m 14s
    3. Transitioning to full-screen video
      8m 17s
    4. Using the ReelSmart Motion Blur effect
      4m 17s
    5. Putting together the final comp
      5m 33s
  8. 1m 25s
    1. Next Steps
      1m 25s

Watch this entire course now—plus get access to every course in the library. Each course includes high-quality videos taught by expert instructors.

Become a member
please wait ...
CINEMA 4D: Rendering Motion Graphics for After Effects
3h 53m Intermediate Apr 22, 2011

Viewers: in countries Watching now:

CINEMA 4D: Rendering Motion Graphics for After Effects demonstrates how to take a simple logo animation in CINEMA 4D and transform it into a compelling motion graphic with After Effects, incorporating two distinct visual styles. Starting with a prebuilt animation rendered from CINEMA 4D, author Rob Garrott employs industry-standard techniques, utilizing materials, lights, and the library of effects in After Effects, to enhance the project's look and feel. Exercise files accompany the course.

Topics include:
  • Setting up a multi-pass render
  • Batch rendering in CINEMA 4D
  • Importing 3D elements into After Effects
  • Creating and using precomps for compositing control
  • Compositing 3D text in a dynamic 3D environment
  • Creating a glow effect using Trapcode Starglow
  • Using 3D layers to create masking effects
  • Adding a flash bulb effect with CC Light Rays
  • Adding glows and glints to type
  • Creating a 2D camera shake effect using pre-comps
  • Adding depth of field with the Lens Blur effect
Subjects:
3D + Animation Rendering Video Motion Graphics Compositing
Software:
After Effects CINEMA 4D
Author:
Rob Garrott

Adding depth of field with the Lens Blur effect

When you shoot images with a real camera, there is an effect called depth of field that's present in all photographs. This refers to the amount of subject matter that is perfectly in focus, starting from the foreground and traveling backwards into the image. Depth of field can add tremendous amounts of realism to any scene if used correctly in 3D. 3D renders though are not produced by real cameras and as a result they don't have this effect. Fortunately the programmers of both CINEMA 4D and After Effects have given us the tools to create this effect right inside of After Effects. The depth of field that I'd like to create in this image is going to be based on the platform as the central focus point for the image.

So I'd like to have things that are going backwards into the image out of focus as they get further and further away from the platform. We created when we rendered from CINEMA 4D something called the depth pass and we're going to use that depth pass to drive an affect here in After Effects. So let's go into the MMM-001 composition and that is right here. And the MMM-002 composition is the camera shake, and I'm going to rename that right now because that's a little bit confusing. So I'll select this composition, I'm going to hit Return on the keyboard, and I'll change that to MMM-001- Shake, as in camera shake.

Now I can tell those two compositions apart. So inside of the MMM-001 composition, as this is where I want to add the camera shake, so let's raise the timeline up a bit. Inside the MMM-001 composition is where I want to add the depth of field effect, and the Depth of Field is going to be based on the depth pass from CINEMA 4D, but I know from previous experience that sometimes I like to tweak the depth matte, and so I always pre-compose it, and put it inside its own composition. That gives me a lot of freedom and if I wanted to make changes to the depth pass later.

So let's go into the Video folder and into the Stadium Pass folder and inside the Special Passes folder in there is the Stadium Depth. And let's take that and drag it onto the New Comp button. And let's take this Stadium Depth and bring it down and put it into the Pre-COMP's folder. Inside the Stadium Depth, I want to scrub forward in time to the point where the camera settles, and I can see that I've got a pretty good looking image. The way the depth matte works is it's a grayscale image and CINEMA 4D when you render, projects a fog into the scene and the presence of the fog is based on a focal point for the camera.

And things that are sharpened and focus are not going to be enveloped in this fog and things that are out of focus will be enveloped by the fog. And that fog you never really see, but it's present here in the form of the depth matte. And so the way that depth matte works is that After Effects is going to be using the light and dark values in here, to determine what things are in focus. Now things that are perfectly black are going to be in sharp focus and things that are of grayscale values or white are going to be out of focus. And so you can see that our platform and the elements that project out from it are going to end up being in perfect focus and that's going to really have to draw our eye towards the type and blur out the background of the image.

So let's go into the MMM-001 composition now and I'm going to drag in the Stadium Depth composition and we're going to put that, it starts off at the top here, but we're going to drag it to the very bottom of the layers stack, so all the way down, and right below the Stadium Pass Pre. Now what we need to do is the Stadium Pass Pre, if I solo that layer and turn it off and on, that has holes in it. I want to make sure that these holes of ever become visible again and I don't to want to accidentally see the depth matte below that.

So I'm going to add a solid layer to my composition and put it right between those guys. That way it almost acts as a basic grounding for the whole image. So let's start off, I'll un-solo that and I'm going to make a new solid, Command+Y or Ctrl+Y, and let's make it black. We will just leave the name Black Solid and I'll hit OK and I'm going to drag that Black Solid layer all the way down to the very bottom of the layer stack and put it just above the Stadium_depth pass. And the Stadium_depth pass now is right underneath that black solid and there's no chance me ever seeing that Stadium_depth pass, because the Black Solid is covering it up.

What I need to do is to add the depth of field using an adjustment layer. An adjustment layer is a special layer in After Effects that affects all the layers below it. And it's really handy because you can add these adjustment layers and then it controls their intensity by just simply adjusting the opacity of the adjustment layer. So let see what that means. I'm going to make a new adjustment layer so I go Layer > New > Adjustment Layer, and that shows up at the very top of the layer stack, and I want to add the effect to that layer. The effect that we're going to use is the Lens Blur effect and so I'm going to go to the Effect menu and go to Blur & Sharpen, and go to Lens Blur, and when I add Lens Blur to the scene, the whole image blurs out.

But there's a really cool feature in the Lens Blur effect called Depth Map Channel and what I need to do is to tell it which layer to use to generate that depth map. So I go to the Depth Map Layer pulldown and this is a listing of all the layers that are in this composition. Well, way at the very bottom is the Stadium Depth and so when I select that it's now going to use the light and dark values to generate that Blur effect, and so let's see what happens. You can see that everything is blurred out. Now I have a problem though. The things that's the platform is blurred out, but also my phone, and so what I need to do is adjust the position of this adjustment layer and I need to put the phone and the type above that, so we're going to take the adjustment layer and drag it down in the layer order so that the type is above it.

So let's go down and raise that up. So there's my Flashbulbs. I'm going to put these right above the Flashbulbs and below the Phone Pass. And when I do that, you can see now the background is blurred out but the foreground is in nice sharp focus. Now I'm going to adjust the Iris effect. That controls the intensity of the blur and it's at 15 right now. That's the default value, and I'm bringing that down to about 10. So now it's a little bit blurry, but not completely blurred out. I don't want to have a total blur on the background. One of the things that depth of field tends to do is to make images look smaller, and so I want to be careful. The larger the depth of field, the smaller the foreground objects are going to look.

And so we are going to be very careful with that and apply very subtle effect. So now I'll turn the adjustment layer off and on so you can see what it look like before and after. And so if I just turn that off, you can see it's a very subtle effect but it does help to draw the eye towards the focal point of frame and that's really what this is all about. I don't want this Lens Blur to be visible all the way through the animation. I don't want it to come on really until the type hits while the flashbulbs are going off. That's going to help to draw our eye towards the center of the frame.

So let's go forward to the Moment Hit marker and I'm going to move my time slider to right there. And what I want to do is to set keyframes for the opacity of this adjustment layer. So I'm going to select the adjustment layer and hit T key on the keyboard to bring up the Opacity. And I'm going to turn on the stopwatch for Opacity, and that sets a keyframes for 100%, so that's where I want my blur to go to. I want to move this forward in time. I'm going to put it to about frame 106 or so, right above there.

And then the moment and the type hits, I want it to be zero and that's going to turn the Blur effect off. So if I go to the Opacity and change it to zero, that sets a keyframe for that. You can see the blur effect is off. Now what will happen is that the blur effect will come out slowly as we move through these keyframes and by the time we get to this keyframe it will be fully on at 100%. You can see now it's blurring out that stuff in the background but our type is nice and in focus. So once again let me turn off the adjustment layer, so you can see a before and after. When I turn off the adjustment layer, you can see that background is in very sharp focus. When I turn that on again it gets subtly out of focus and that really helps to drive the importance of the type in the phone.

This subtle Lens Blur using the depth pass adds a lot of realism to the scene. it also helps to draw attention to the type. But be careful with it. The more shallow your depth of field is, the smaller your entire image will feel, and so you really want to use it with caution.

There are currently no FAQs about CINEMA 4D: Rendering Motion Graphics for After Effects.

 
Share a link to this course

What are exercise files?

Exercise files are the same files the author uses in the course. Save time by downloading the author's files instead of setting up your own files, and learn by following along with the instructor.

Can I take this course without the exercise files?

Yes! If you decide you would like the exercise files later, you can upgrade to a premium account any time.

Become a member Download sample files See plans and pricing

Please wait... please wait ...
Upgrade to get access to exercise files.

Exercise files video

How to use exercise files.

Learn by watching, listening, and doing, Exercise files are the same files the author uses in the course, so you can download them and follow along Premium memberships include access to all exercise files in the library.
Upgrade now


Exercise files

Exercise files video

How to use exercise files.

For additional information on downloading and using exercise files, watch our instructional video or read the instructions in the FAQ.

This course includes free exercise files, so you can practice while you watch the course. To access all the exercise files in our library, become a Premium Member.

join now Upgrade now

Are you sure you want to mark all the videos in this course as unwatched?

This will not affect your course history, your reports, or your certificates of completion for this course.


Mark all as unwatched Cancel

Congratulations

You have completed CINEMA 4D: Rendering Motion Graphics for After Effects.

Return to your organization's learning portal to continue training, or close this page.


OK
Become a member to add this course to a playlist

Join today and get unlimited access to the entire library of video courses—and create as many playlists as you like.

Get started

Already a member?

Become a member to like this course.

Join today and get unlimited access to the entire library of video courses.

Get started

Already a member?

Exercise files

Learn by watching, listening, and doing! Exercise files are the same files the author uses in the course, so you can download them and follow along. Exercise files are available with all Premium memberships. Learn more

Get started

Already a Premium member?

Exercise files video

How to use exercise files.

Ask a question

Thanks for contacting us.
You’ll hear from our Customer Service team within 24 hours.

Please enter the text shown below:

The classic layout automatically defaults to the latest Flash Player.

To choose a different player, hold the cursor over your name at the top right of any lynda.com page and choose Site preferencesfrom the dropdown menu.

Continue to classic layout Stay on new layout
Exercise files

Access exercise files from a button right under the course name.

Mark videos as unwatched

Remove icons showing you already watched videos if you want to start over.

Control your viewing experience

Make the video wide, narrow, full-screen, or pop the player out of the page into its own window.

Interactive transcripts

Click on text in the transcript to jump to that spot in the video. As the video plays, the relevant spot in the transcript will be highlighted.

Are you sure you want to delete this note?

No

Notes cannot be added for locked videos.

Thanks for signing up.

We’ll send you a confirmation email shortly.


Sign up and receive emails about lynda.com and our online training library:

Here’s our privacy policy with more details about how we handle your information.

Keep up with news, tips, and latest courses with emails from lynda.com.

Sign up and receive emails about lynda.com and our online training library:

Here’s our privacy policy with more details about how we handle your information.

   
submit Lightbox submit clicked
Terms and conditions of use

We've updated our terms and conditions (now called terms of service).Go
Review and accept our updated terms of service.