1. Project Setting
Open After Effects.
Go to Composition > New Composition to make a new composition.
Set the Width and Height values to 1280 and 720
respectively. Set the Frame Rate to 25 and Duration to 12
seconds. Click on OK.
I've provided the live action footage, which can be found in the attachment of the tutorial.
Go to File > Import > File to import the image sequence. Alternatively, press Ctrl-I keys.
first image of the image sequence selected, turn on JPEG Sequence
option. Click on Open.
With the image sequence selected, drag and drop it inside the composition.
You'll see the footage in the comp view.
2. Camera Tracking in After Effects
With the image sequence layer selected, go to Animation > Track
The 3D camera tracker system starts analysing the footage. It analyses the
footage in two steps, hence it might take some time to complete.
After a couple of seconds, the analyse process ends. Now you can see
several track points in the scene.
These track points would help to generate the dummy 3D plane/null and the
camera. You need to select at least four points to generate the helping dummy
or layer. Select several track points on the ground as shown in the
With the indicated points selected, secondary-click the mouse and
select Create Solid and Camera.
You get a solid layer and 3D camera in the timeline. This solid layer is
the placeholder and sticks with the footage and follows the camera.
3. Exporting Camera Data to 3ds Max
Go to http://aenhancers.com/viewtopic.php?t=991 and you will find that they've released a free script AE3D for After Effects. Download the script from there.
Alternatively, the script has been supplied with the tutorial also. Just copy the script and paste it in the Script folder of After Effects.
You need to restart After Effects. Open the same composition
again. With the null object and 3d camera layers selected, go to File
> Script > AE3D_Export.jsx.
In the AE3D window, select the 3ds Max option, set the file name to camera
tracker.ms and then click on Export. This saves the 3ds max script
file on the desktop.
4. Creating Scene in 3ds Max
Open 3ds Max.
Go to MAXScript > Run Script.
It opens the Open File window. Here select the camera tracker.ms
script which was exported from After Effects. Click on Open.
You get a 3d camera and one dummy in the scene.
Jump in the perspective view and press C key for the camera view.
Right now the camera is looking downwards which is incorrect. You need to correct the coordinate of camera.
With the camera and dummy selected, group them together.
After grouping, jump in the left view port. Select the Rotate tool
and rotate it to the right side. Your goal should be to put the dummy on the
Adjust the dummy a little bit more to make it straight.
Jump in the camera view. Press Alt-B keys to open the Viewport
Configuration window. Turn on Use Files and Animate Background
options. Click on Files.
This opens Select Background Image window. Here select the first image, turn
on Sequence option and click on Open.
Turn on the Show Safe Frame option in the camera view.
Alternatively, you can press Shift-F keys.
Now you can create any 3d asset in the scene. I have created a Chamfer
Box and placed it around the dummy in the scene.
At this stage, if you render the complete scene and play the video, you'll notice some sliding problem with the 3d object.
To overcome this problem, you
should put the dummy at half of the black grid line as shown in the following
Create a plane and put it beneath the 3d box. Apply Matte Shadow on
to the plane.
Apply the concrete texture on to the box.
Create several lights in the scene. You need to check the direction of the
real light source of the scene and mimic the same lighting structure in the 3d
Render the frame and you will see the 3d concrete pillar is perfectly merged with the scene. You can now render the whole sequence and when you play the video you will see the 3d concrete pillar is perfectly matching with the live scene.
I hope you found this tutorial interesting and useful. In the next part of the series, I'll show you how to merge animated 3d sequence into a live action scene using 3d camera tracking system.
Envato Tuts+ tutorials are translated into other languages by our community members—you can be involved too!Translate this post