(Page 2 of 2 pages for this article  <  1 2)

Monday, January 09, 2006

Camera Control, Part 1: Auto-Orient & Orbit

Some basic 3D camera control tricks in Adobe After Effects.

Auto-Orient Along Path

The middle option in the Auto-Orientation dialog - Orient Along Path - is also very interesting (and useful!). When you set up an animation for the camera, this is the easiest way to make sure the camera is always pointing along its path, making space flythroughs much easier. (In case you didn’t already know, normal layers can be set to auto-orient along their 2D or 3D paths as well.)

The one feature Orient Along Path does not take into account is “banking” where an object in flight - such as an airplane - rotates along its Z axis to lean into its turns. You will have to animate this yourself. Keyframe the camera’s Z Rotation so that the maximum bank angle is reached at or just a little before the middle of a turn. Return Z Rotation to 0 degrees when the camera is traveling straight. Set the interpolation for these keyframes to Easy Ease, or at least Auto Bezier, to smooth out the motion.

Orbit Rig

You may think from the description of the two-node camera that it would be perfect for orbiting around an object. However, it is difficult to make sure the camera is always the same distance from its Point of Interest, or to perform smooth push-ins or pull-outs while orbiting. Why? Because you have to tweak the Bezier curves for the camera’s Position path to form a perfect circle or spiral, which is much easier said than done. If you use the Orbit Camera tool in After Effects’ Comp window to position the camera, you may be fooled into thinking you are moving in a perfect arc, but the Position keyframe that will be created will have no memory of that arc - the camera will interpolate essentially directly between Position keyframes, causing the camera to pass closer to the object during the middle of the move.

When you use the Orbit Camera tool to create keyframes, the camera interpolates more or less straight between points, passing closer to the object between keyframes (left). You can edit the path’s Bezier handles to create a better arc, but this can be tricky (right).

Null Objects and Parenting provide a simple solution to this problem. Find the coordinates in 3D space of the “hero” you want centered in your orbit. Create a Layer > New > Null Object (a layer that does not render), enable its 3D Layer switch, and give its Position the same coordinates as your hero. Create a new camera, and nudge it until it points in a straight line at your object. Set the camera’s Point of Interest to the same Position value as the hero and null.

Next, turn your attention to the Parent column in the Timeline window (if it is not visible, type Shift+F4 to reveal it). Click on the Parent popup for the camera, and set it to the null. The camera is now a child of the null. To orbit the camera, animate the Rotation parameters for the null: This will swing the camera around on the end of a stick, keeping it the same distance from the null object. To vary this distance, change the Z position value for the camera, while leaving the X and Y values alone. Animate the null’s Rotation and camera’ Z position together to create spirals.

A camera rig build using parenting and null objects makes it easy to animate perfect orbits, spirals, and corkscrews.

It is also easy to use this rig to make the camera appear to ascend or descend while maintaining a perfect orbit or spiral. The simplest way is to animate the null object’s Y Position value. For best results, create two null objects when you set up an orbit rig. Parent the camera to the first null, and then parent the first null to the second null. Animate the Y Position of the first null to raise and lower the camera, and the Rotation of the second null to perform the orbit.

As fun as this is, it’s just the beginning of what you can do with cameras and null objects in After Effects. In the next column, we’ll turn our attention to creating and animating a more advanced rig.

Click here to download a small .zip archive of our AE 6.5 (and later) project demonstrating an orbit camera rig.

3DMotion GraphicsPost ProductionVisual Effects

(Page 2 of 2 pages for this article  <  1 2)



mocha AE to CC Power Pin

Chris Meyer | 05/31- 10:08 AM

Autodesk Acquires Realviz

Mark Christiansen | 05/07- 02:46 PM


Name:

Email:

Location:

URL:

Smileys

Remember my personal information

Notify me of follow-up comments?

Submit the word you see below:




Advertisements
















Copyright 2008 ProVideo Coalition LLC