(Page 1 of 1 pages for this article )

Sunday, July 27, 2003

Filed under: Motion GraphicsVisual Effects

Between Dimensions: 3D Into AE

Chris and Trish Meyer | 07/27

Transfer camera data from a 3D application into After Effects to better integrate graphical elements.

The logo was rendered in a 3D program; the walls were created in After Effects. Both use the same camera data, so their perspective shifts match as the camera moves.

Many 3D artists use After Effects as a finishing tool: tweaking colors, improving the composite, and blending other layers such as greenscreen footage into the final scene, with the goal of creating a realistic image. By contrast, our primary focus is creating abstract motion graphics, so for us the tables are turned: We use 3D programs (most often Maxon Cinema 4D plus Zaxwerks Invigorator and ProAnimator) almost as utilities, to create elements to integrate into our purely graphical worlds.

In the old days, this process was somewhat separated, limiting what we could do: For example, a dramatic camera move in 3D would often look silly composited over a stationary 2D scene unless you did a lot of work to approximate the shifts in perspective. However, ever since After Effects gained its own concept of 3D space back in version 5, it has become much easier to tie these two worlds together, keeping the same shifts in perspective for both 3D and After Effects elements. For example, we might create, texture, and animate a logo in 3D, and then composite other 2D elements around it in After Effects.

Many roads to the same place

The key to integrating 3D elements with other layers created in After Effects is to recreate the original 3D camera animation – this way, all layers can have the same perspective distortion as the camera moves. As it turns out, there are almost as many ways to bring camera data from a 3D application into After Effects as there are 3D applications.

For example, if you save a Maya project to the .ma format (Maya ASCII), you can import it as a project in After Effects, resulting in a composition being created with a matching animated camera. You can also export a camera move from Electric Image to this format. If you save to the .rpf (Rich Pixel Format) from 3d studio max, you can run a Keyframe Assistant on the resulting sequence in After Effects to create an animated camera.

Maxon’s Cinema 4D has the most comprehensive solution, allowing you to export a Cinema project to a special .aec (After Effects Composition) file, which can then be imported into either Standard or Pro versions of After Effects with a free plug-in provided by Maxon. In addition to an animated camera, you will also get lights as well as individual layers for different surface properties of the Cinema render. In other programs such as Softimage XSI, you may need third-party scripts or utilities to export a text file which can then pasted in as camera keyframes inside After Effects.

In most cases, “world units” in your 3D program match pixels in After Effects; you may need to scale layers up or down to match. Make sure you write down your original 3D camera’s Angle of View and check that the resulting After Effects camera matches. Also make sure that you don’t slide the range of frames you rendered in relation to the frames of camera data you exported, or your moves won’t line up.

Combining worlds

What may not be intuitive is that in After Effects, your 3D render is the one layer you must leave in 2D space: It already has perspective changes from the original camera animation “baked” into it; there is no need to render additional perspective changes for it inside After Effects. When you add layers in After Effects that are supposed to have perspectives that match your 3D render, enable the 3D Layer switch for these new elements so that they will respond to the camera move you imported.

 

In the project illustrated at the top of this page and to the left (it’s a 7.4 meg movie, so will take a few moments to load after accessing this page), we created interesting multilayered imagery in their own nested comps, masked the result, and positioned them in 3D space in After Effects to create the effect of abstract sculpture or walls in an art gallery. It was much faster to tweak these walls in After Effects than in the 3D program that the logo was rendered in. The Bevel Edges effect gives them the appearance of thickness, even though the walls themselves are 2D objects. If you want to go one step further and make the Bevel Edges effect appear to follow an animated 3D light, you can add the following expression to this effect’s Light Angle parameter:

angle_offset = 90 + rotation;
target_layer = this_comp.layer(“My_Light”);
rel_pos = sub (position, targer_layer.position);
(Math.atan2(rel_pos[1], rel_pos[0]) * 180/Math.PI) – angle_offset

We enabled the ability for these new layers to cast and receive shadows; as the camera moves around them, their shadows appear to shift. The already-rendered logo was then placed on top. To make the logo – now a 2D layer – appear to cast shadows onto the 3D layers added in After Effects, we applied the Radial Shadow effect to the logo, and manually animated its light position to make its shadow move as well.

Splitting the creation of the objects across two programs proved to be more flexible for this job, rather than restrictive. Once a first pass of the logo had been rendered and camera data recreated, one of us could work on the After Effects project while the other continued to massage the logo in 3D. As long as the camera move itself did not change, the new logo render would drop straight into the After Effects project with no problem. If the camera move did change a little (such as adjusting the ease in and out for the move), it was still a fairly simple matter to pass the new camera data along with the new logo render.

Postscript: More information on 3D integration

If this column has whetted your appetite on the subject of integrating 3D programs with After Effects, we wrote quite extensive chapters on the subject in Creating Motion Graphics Volume 2 where we covered the workflow for several applications including Maxon Cinema 4D, Autodesk Maya and 3ds max, Lightwave, Softimage XSI, and Electric Image. As of the Creating Motion Graphics 4th edition we cut the book down to one volume; this book does not cover the breadth of 3D programs as before (it was too hard to keep up with all the different updates!) but does go into much more depth on integration between Cinema and AE.

The content contained in our books, videos, blogs, and articles for other sites are all copyright Crish Design, except where otherwise attributed.

 

(Page 1 of 1 pages for this article )

               



You must be registered to comment. This is an effort to reduce spam. Please REGISTER HERE.

Name:

Email:

Location:

URL:

Smileys

Remember my personal information

Notify me of follow-up comments?

Submit the word you see below:




After Effects Apprentice Free Video: Rendering a 4:3 Center Cut Movie from a 16:9 Composition
After Effects Apprentice Free Video: Using Parenting to Animate Layers as a Unit
After Effects Apprentice Free Video: Working with Nested 3D Compositions
After Effects Apprentice Free Video: Copying Paths from Illustrator to After Effects
After Effects CS6 Tutorial: Exporting 3D Camera Tracker Data to Cinema 4D
After Effects CS6 Tutorial: Targeting Properties in the new Ray-Traced 3D Engine
After Effects CS6 (P)Review
After Effects Apprentice Free Video: Exploring Shape Effects
After Effects Apprentice Free Video: Drawing Parametric Shapes
After Effects Apprentice Free Video: The Puppet Starch Tool
After Effects Apprentice Free Video: Eraser Tool Modes
After Effects Apprentice Free Video: Tracking with mochaAE
After Effects Apprentice Free Video: Performing a Motion Track
After Effects Apprentice Free Video: Creating 3D Objects using Adobe Repoussé
After Effects Apprentice Free Video: Understanding Axis Modes
Using After Effects as an Advanced Titler for Premiere Pro
After Effects Apprentice Free Video: Creating an Orbit Camera Rig
CMG Hidden Gems: Chapter 45 – What’s Your Preference?
CMG Hidden Gems: Chapter 44 – Prerendering and Proxies
CMG Hidden Gems: Chapter 43 – Advanced Rendering
CMG Hidden Gems: Chapter 42 – Render Queue
CMG Hidden Gems: Chapter 41 – Video Issues
CMG Hidden Gems: Chapter 40B – 3D Channel Effects
CMG Hidden Gems: Chapter 40 – Integrating with 3D Applications
CMG Hidden Gems: Chapter 39 – Integration 101
After Effects Apprentice Free Video: Multiple Playback Speeds
CMG Hidden Gems: Chapter 38 – Import and Interpret
CMG Hidden Gems: Chapter 37B and 37C – Expressions and Scripting Bonus Chapters
CMG Hidden Gems: Chapter 37 – Expressions
CMG Hidden Gems: Chapter 36B – Audio Effects







S/N Ratios Demystified

Kendal Miller | 09/24

Understanding signal to noise and how it impacts your image quality in a camera system.

    In light of a recent discussion I had with a photographer about the grain inherent in high ISO speeds, I thought I would take minute and write about Signal to Noise Ratios and how they affect image processing in both video and photography. I will try my best to explain this subject as I understand it. I am no electrical engineer however, and this subject can quickly delve into the physics of electronics deeper than I fully…

NewTek Announces Free LightWave 3D Trial Edition Available for Download

Scott Gentry | 05/15

New LightWave Trial Edition features 24 hours of free online training

NewTek, Inc., manufacturer of industry-leading 3D animation and video products, today announced award-winning LightWave® 9.3.1 is now available as a free 30-day trial for Mac OS X and both 32-bit and 64-bit Windows immediately from here: http://www.newtek.com/lightwave/lwtrial

The software is fully functional with no restrictions…

NewTek Now Shipping TriCaster Portable Live Production Systems

Scott Gentry | 05/14

NewTek, Inc., manufacturer of industry-leading video and 3D animation products, today announced the next generation of its award-winning TriCaster™ line of portable live production and virtual set systems is shipping. Included in new TriCaster STUDIO™, TriCaster PRO, and TriCaster models are MPEG-2 format recording during live shows, which allows the file to be used on any editing system, a wide range of performance improvements and…

DAZ 3D Announces Mimic Pro Facial Animation Software for Carrara

Scott Gentry | 05/14

Carrara Users Now Have Direct Access to Mimic’s Advanced Environment

Click for a wink. Click again for a smile. Facial animation has never been simpler as DAZ 3D, a leading developer of professional quality 3D models and software, today announced the immediate availability of Mimic Pro for Carrara, a plug-in enabling seamless lip-synching, sound analysis and speech animation simulations directly within Carrara 6.2. Mimic Pro for Carrara provides an advanced environment for quickly creating facial animation…

To be considered for listing, contact pr (at) provideocoalition (dot) com


Copyright © 2012, HD Expo, LLC a division of Diversified Business Communications. DBA Createasphere

All rights reserved. HD EXPO, High Def EXPO, Createasphere, E-Tech, Entertainment Technology Exposition, 3D Production Workshop, VariCamp, P2 Camp, ColorCamp 101, and Lighting, Filters & Gels for HD are all trademarks of HD Expo, LLC.

Terms of Use  |  Privacy Policy

Check PageRank