Archives

    October 15th, 2008

    Smooth Camera Movement in After Effects

    Let’s face it. Swooping camera movements in After Effects can be a real pain if you are just using the camera itself. It is nearly impossible to get the point of interest and the camera to move in such a way that creates a smooth and fluid effect. Not to mention it can eat up your time faster than Rosanne eats up a buffet.

    Default Camera Setup

    The above picture is a typical 35mm setup. You get this by right-clicking in the layers pallet and selecting New > Camera… In our theoretical example we will pretend that we are tracking, from behind, a car that is traveling down a windy road. Initially we know that we are going to have lots of s-turns to deal with.

    Car Example

    The camera setup we have right now requires at least two keyframes for every s-turn we make. We will have to keyframe both the camera and the point of interest to make sure that our speeding car is in the field of view. This process can take some time and rarely results in a realistic camera movement.

    The Solution

    Null Objects

    In short, we are going to solve all of our problems using null objects. Then through the process or parenting we will create a rig that lets us do everything we want with much more ease.

    First things first. Create a camera with any settings you like. You can always go back later and change them if you want to. To create a camera you need to right click in the layers palette and choose New > Camera…

    The second thing you need to do is create two null objects. Doing this is similar to creating a camera, right click in the layers palette and choose New > Null Object. You’ll need to name one of these “Camera Movement” and the other “Camera Master.” Before moving on, you also want to check the 3D box to make sure these null objects are moving around in 3D space. The box looks like this:

    3D Activation

    At this point we’re almost done. We just need to parent things in the correct order. First, you need to parent the camera itself to “Camera Movement.” Then parent the “Camera Movement” to “Camera Master.” In a hierarchy it looks like this:

    Camera Master

    ^

    Camera Movement

    ^

    Camera

    Now, here are the rules for movement and rotation:

    • Camera Master – Reserved for last minute adjustments (camera shakes, small adjustments)
    • Camera Movement – Responsible for all major movement of the camera, sans rotation
    • Camera – Reserved just for the rotation of the camera itself.

    With those rule established you should have no problem flying your camera around succesfully inside of After Effects. Gone are the days of trying to sync the position of interest and camera. It takes about 15 extra seconds to setup initially, but the results are definitely worth it. Have fun!

9 Responses to “Smooth Camera Movement in After Effects”

  1. sam at November 24, 2008 at 2:55 pm

    incredibol

  2. Matt at December 15, 2008 at 9:35 am

    It really does help.

  3. kevin at January 6, 2009 at 8:08 am

    awesome!!!

    • Matt at January 6, 2009 at 5:41 pm

      It sure beats flying the cameras around by hand. A much more professional look in my opinion.

  4. Chris Johnson at January 16, 2009 at 9:45 am

    Nice Tip! thanks

  5. sean at August 3, 2009 at 7:43 pm

    i’m trying to use this technique for a simple camera movement yet I’m having trouble. My “camera movement” null has three keyframes: from keyframe 1 to keyframe 2 is a simple slight zoom in z space. The camera follows this no problem. When i add my third keyframe which is a pan to the right, it causes a weird shake to happen in between keyframes 1 and 2. Any help is appreciated.

    • Matt at August 3, 2009 at 7:54 pm

      Hey Sean,

      I’ve got some things happening tonight. But, maybe you could upload to Vimeo or something and I could take a look at it tomorrow.

      If you’ve been messing around with that layer a lot, I might try removing all the keyframes and starting over (shouldn’t be too bad if you’ve only got three) My first guess without seeing it is that there could be some weird easing going on which might cause the shake. But, that’s just a guess at this point. Let me know…

  6. Dimmitri at December 21, 2009 at 7:12 am

    Thank you very much. You really solve my leap between a credible and a messy animation… :)

    May the force be with you!

    • Matt at December 23, 2009 at 9:36 am

      It definitely helps a ton. Thanks for the comment.

Leave a Reply