Easy-to-follow video tutorials help you learn software, creative, and business skills.Become a member

Creating a camera shake effect using precomps

From: CINEMA 4D: Rendering Motion Graphics for After Effects

Video: Creating a camera shake effect using precomps

At the moment the type explodes out of the platform, the camera leaps backwards as if struck by the shockwave of the explosion. The camera move that I created in CINEMA 4D does move backwards at that moment, but it's not with nearly enough intensity. I did this on purpose. If I'd shaken the camera in CINEMA 4D and then decided later that I didn't like that shake, then I had to go all the way back to CINEMA 4D in order to change that shake. This would cost hours of rendering time. To avoid that cost of the render time, we're going to shake the camera in After Effects. It doesn't look quite as good, but it's much more flexible and that's what we're after here.

Creating a camera shake effect using precomps

At the moment the type explodes out of the platform, the camera leaps backwards as if struck by the shockwave of the explosion. The camera move that I created in CINEMA 4D does move backwards at that moment, but it's not with nearly enough intensity. I did this on purpose. If I'd shaken the camera in CINEMA 4D and then decided later that I didn't like that shake, then I had to go all the way back to CINEMA 4D in order to change that shake. This would cost hours of rendering time. To avoid that cost of the render time, we're going to shake the camera in After Effects. It doesn't look quite as good, but it's much more flexible and that's what we're after here.

In order to shake this, I want to have to shake the entire frame. And rather than try and grab all the layers and keyframe everything independently, it's much easier to simply precompose this entire composition into a new comp and then shake that. So what I'm going to do is go into the Project window and in the Working Comp's folder I'm going to take the MMM-001 composition and I'm going to drag that down onto the New Composition button. What that's going to do is to nest this composition into another comp that's exactly the same size and length as the MMM-001 composition.

That doesn't seem like a big deal, but what this allows us to do now is treat this as a clip. And so now I can scale and rotate and position this clip as if it were a single source and I don't have to deal with all those layers. That's the big advantage of precomposing. The point in time that I want the camera shake to start is that the camera shake marker. So let's zoom in on that area. I am going to move to that point in time and then use the equals key on the keyboard to zoom into my Timeline just a little bit more. At this point in time I want to set keyframes for position, scale, and rotation.

And so I'll hit P and then hold down the Shift key and hit S and R and that's going to bring up the Position, Scale, and Rotation parameters for this layer. Now I'll set the stopwatch for all three layers and I just clicked and dragged across all three of those stopwatches. So what I want to do is to first figure out when I'd like the effect to stop. And I know that I want to have the effect stop somewhere around frame 57. The camera shakes, but it doesn't shake for very long, and I want also that effect to diminish over time.

So I'm going to set a marker here in the Timeline, so I know where I'm trying to get to. Let's enlarge the Timeline a little bit or expand outward. And around frame 57 is where I like the camera to stop, so it's right about there. So if I bring my time slider over to frame 57 and make a marker right there, I know that my keyframes need to end right there. So that gives me a point of reference. Now I can go back to the original point and I'll use the Page Down key. The first thing I want to do is enlarge the layer. So I want to Page Down about maybe two or three frames and I'm going to grab the transform handle and hold down the Shift key and make it larger.

Then I'm going to get the Rotation tool by hitting W on the keyboard and rotate my frame. And I think I want to have it rotated a bit more. I don't have enough room here in the viewport so I'm going to make my Timeline just a little bit smaller. And then let's adjust the scale a bit more. So I'll hit V to give my Selection tool back and I'll hold the Shift key down and enlarge it up a bit. And then let's rotate it just a bit more. And the thing I don't want to do is this. I never want to break the illusion of the frame. So when I rotate it, I'm going to rotate it just to the point where it's about to break the frame and leave it there.

I can also position it in space as well, so I'll hit V to get the Selection tool. I'm going to move it over and down a bit. You have to be careful. See, I don't want to violate that frame edge. So I'm going to bring it over this way. There we go. So that's our first shake point. So it's going to hit that mark and jump. And now we can start to rotate it back the other direction. So let's go up forward about the same number of frames. But each time I do this, I'm going to do it just a little bit less, so that the effect gradually diminishes until we get back to the original position, scale, and rotation.

So let's get that rotation there and I'm going to bring it back just a little bit more and then rotate it. That's pretty good and right about there and I'll scale it down just a bit. Let's rotate it up so I don't accidentally violate that frame. There we go. So now we can check that. It goes boom, boom, and then we are going to go back again. And I'm going to repeat this process and rather than hear me mumble, I'm just going to skip ahead in time until the point where I've got these keyframes just where I want them.

Then we'll RAM Preview and take a look at the shake. So I've got my keyframes now and you can see that I have also stretched them out a bit. I noticed as I was doing this process that I had the keyframes a little bit too close together. And so I spaced them out a little bit more so that I didn't have quite so much shake and so many different vibrations within that span of time. So now what we should do is check our shake to make sure that it feels right, and so I'm going to expand my preview range here. And what we'll do is we're going to start a RAM Preview and let it go all the way to the point just after the shake and stop it and then we'll watch it a couple of times.

So you can see from that that this is a pretty convincing shake effect. As our camera scrubs through this area, boom! It really has a lot more impact now when the explosion happens. Some of these frames though still aren't feeling quite as impactful as I'd like them. So I'm going to make a couple of quick adjustments and then we'll tweak the RAM Preview one more time. So I going to zoom in on that area, hitting equals on the keyboard, and I'm going to go to this keyframe. One of the things you will notice is that the keyframes are not exactly on the frame marker, and that's because I time stretched these keyframes when I was working.

And so when I make a new keyframe here, it's going to jump to that position and what I want to do is just to make the scale a little bit bigger and you'll see that as I do that, I end up with an extra keyframe here. And so what I want to do is to position all these other keyframes on this point in time. And so I'm going to delete that scale keyframe and grab these and move them over a bit. If you're working at home and following along, you may not necessarily have to do this step. It's only because I had used the Option+ Drag tool to time stretch the keyframes while I was working.

And sometimes when you do that, they come up not exactly aligned on a frame. So I'm going to make this scale a lot bigger and rotate it quite a bit more so that I have a much bigger initial impact. And then I want to go forward in time and I'm going to just move these keyframes over so I don't have that same issue again. I'll leave that frame alone and I'll go to the next frame, which needs to be a little bit bigger.

And I'm going to hold the Shift key down to scale it up and rotate it into position. There we go. This kind of exaggerated it a little bit and lined those frames up. So now it's going to go boom, big, small, and then big again, and then back down to small, and then gradually taper off. So now we still got quite a bit left on our RAM Preview cache and so I'm going to back out just a bit in the Timeline and then we'll RAM Preview this one more time and take a look at the changes that we just made.

Excellent! I'm really happy with this camera shake. That little tweak that we added just now really kind of kicked the impact up a notch and technique like this really saves a lot of time and energy. If the client came back to me and said, "You know what Rob, we're really not feeling that camera shake. We want to take it out." If I had done that inside of CINEMA 4D, I would really have a big problem. I'd have to go all the way back to CINEMA 4D, re-render my files, rechange out all the cameras. It dramatically affects my animation. By doing the camera shake here in After Effects, if someone comes back and says they don't like or they want to see a change, it's very, very easy to swap it out.

Show transcript

This video is part of

Image for CINEMA 4D: Rendering Motion Graphics for After Effects
 
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

Start learning today

Get unlimited access to all courses for just $25/month.

Become a member
Sometimes @lynda teaches me how to use a program and sometimes Lynda.com changes my life forever. @JosefShutter
@lynda lynda.com is an absolute life saver when it comes to learning todays software. Definitely recommend it! #higherlearning @Michael_Caraway
@lynda The best thing online! Your database of courses is great! To the mark and very helpful. Thanks! @ru22more
Got to create something yesterday I never thought I could do. #thanks @lynda @Ngventurella
I really do love @lynda as a learning platform. Never stop learning and developing, it’s probably our greatest gift as a species! @soundslikedavid
@lynda just subscribed to lynda.com all I can say its brilliant join now trust me @ButchSamurai
@lynda is an awesome resource. The membership is priceless if you take advantage of it. @diabetic_techie
One of the best decision I made this year. Buy a 1yr subscription to @lynda @cybercaptive
guys lynda.com (@lynda) is the best. So far I’ve learned Java, principles of OO programming, and now learning about MS project @lucasmitchell
Signed back up to @lynda dot com. I’ve missed it!! Proper geeking out right now! #timetolearn #geek @JayGodbold
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.


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 "Already a member? Log in

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

Your file was successfully uploaded.

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.