Copy link to clipboard
Copied
Hello people,
I'm working on a project where I'd like to incorporate 3D models via Element 3D. In this particular case it's an old tower in the desert. Here's what I did according to what I've learnt in the tutorials I've watched:
1 - I did the 3D tracking and created a solid and a camera. I played with the solid to match the alignment of the ground. I imported the tower model in Element and set the Auxilary Animation on Channel 1.
2 - Back in After Effects I Opened Element's Effect Controls on Group 1 and created a Group Null.
3 - I then copied the 3D tracked solid's position value to that group null, after which you can see the tower significally changes its sizes maybe due to being further away in Z space.
4 - I changed the position and scale values in the Group 1 > Auxilary Channels > Channel 1 to make the tower look natural for the spot I'm trying to place it.
In the end when I hit play, You can see the tower sliding off the point where it's supposed to be, while the group null stays exactly where it should be over the solid. So my question is why is this happening? Isn't the object supposed to follow the group null and if the null stays in one spot, shouldn't the tower stay there as well, rather than drifting off?
I'm uploading a screen recording video to show the process I'm describing above so you can see the problem. Any help will be greatly appreciated!
1 Correct answer
Setting an origin and ground plane is critical when using AE's Camera Tracker. When the tracking is complete, the first keyframe sets the reference layer (solid preferred instead of a null) at 0, 0, 0. The workflow to get things lined up with AE's world center is as follows:
- Run the Track Camera tool using the Motion Tracking workspace using Detailed Analysis first
- Set an origin and ground plane, then add a Solid and a Camera using the same target (using a solid allows you to see if the trackin
Copy link to clipboard
Copied
Transforms are relative to the group's origin. You probably make a mess by not having everything zeroed out at the world originband then the discrepancies add up.
Mylenium
Copy link to clipboard
Copied
Hi Mylenium and thank you for your reply to the thread.
I tried to do something about this, but with no different result. I made the Element layer fit to comp so it can be centered, then I created the group null. Then I pasted the 3d tracking solid's position values to the null, and scaled/changed the Tower's position from the auxilary options, but again I see it drifting off. It seems I didn't quite understand what you mean, could you please give me more specific advice what I should do?
Copy link to clipboard
Copied
Setting an origin and ground plane is critical when using AE's Camera Tracker. When the tracking is complete, the first keyframe sets the reference layer (solid preferred instead of a null) at 0, 0, 0. The workflow to get things lined up with AE's world center is as follows:
- Run the Track Camera tool using the Motion Tracking workspace using Detailed Analysis first
- Set an origin and ground plane, then add a Solid and a Camera using the same target (using a solid allows you to see if the tracking is accurate), name the layer Ground, set the layer as a Guide Layer
- Add a new 3D null to the composition, name the layer Origin Null, and position the null at 0, 0, 0
- Use the Camera Tracker again to position a target and create a solid where you want the center of the Element object to be, name it Element Origin and make it a guide layer
- Parent the 3D Tracker Camera and all 3D Tracker layers to the Origin null
- Open the position property of the Center null layer and reset the null's position to Comp Center
- Add your 3D Element object
- Spin down the World Transform properties in the Element 3D layer and copy the Position X, Y, Z, and Rotation Y values from the Element Origin layer to the Element/World Transform properties (or use an expression)
- Make final adjustments to the position of your Element Object using the Effects Control Panel
That should do it. You can also use other Camera Tracker/Track solids as Track Mattes for a copy of the footage to easily fix any other problems with the layers.
A free script called Normalize Track will simplify the process. The link to the free script will also point you to a tutorial.
Copy link to clipboard
Copied
Hi Rick,
Thank you for trying to help too. I installed the script,but still I had no luck doing the workflow they're showing from their tutorial. I'm trying to follow your steps above, but i couldn't get it done like that either. I think I did everything accordingly step by step.
Could I use the ground solid for the position values of the Element 3D world transform values, instead of creating a second solid fro mthe 3D track that basically sits at the same place as the ground solid? Either way though, you said in step 8 to copy the position and rotation values from that second solid to the Element layer's world transform values, but in my case all values were just 0 so I skipped this step. I finally opened the Auxilary options and tinkered with the scale and position until I adjust the tower after I import it in Element. You can see from the new screen recording I'm giving that the tower still doesn't stay in one place. What could I still be doing wrong?
Copy link to clipboard
Copied
I will post a simplified workflow tutorial if I finish my current project this afternoon. It is about time I posted another AE Quick Tip...
Copy link to clipboard
Copied
That would be awesome. I'll be looking forward to it. By the way, I also wanted to add a slight shadow to the object to its left side, as I see the people walking on the rode also have slight shadows there. So I went into Element's layer, added a plane below the Tower group, and activated Matte Shadow. Then I went back into AE and activated Ambient Occlusion from Element's Effect Controls, so I had a basic drop shadow. But then when I added a spot light with the Cast Shadows option activated, I don't see any additional. I made sure I copied the Origin Null's position and orientation to the light layer's properties so it can be at the same place, then I tried to move it up so it can be above the tower just to see if there would be a shadow, but nothing happened. Would there be another setting that I need to change or the position of the light is not correct?
Copy link to clipboard
Copied
I have not had time to create the tutorial, but I have some animation presets to help you align your Element 3D model to a "target" layer that you have placed using AE's Camera Tracker. If the "target" solid is precisely where you want the World origin of your Element 3D models.
This is the expression for World Position XY;
c = [thisComp.width/2, thisComp.height/2];
p = thisComp.layer("target").transform.position;
[p[0] - c[0], p[1] - c[1]];
This is the expression for World Position Z;
z = thisComp.layer("target").position[2];
I will let you know when the tutorial is up.
Copy link to clipboard
Copied
Thank you, I'll take a note with those expressions and will be keeping my eyes open for the tutorial as as well to better understand things. I think I managed to stick the Element model exactly where it should be staying when I play the video. I did nothing different than what you already described in your initial comment. I just added the Element layer all over again on a new solid and it suddenly worked correctly. By the way, would you also give me a tip on the question about the light and shadow? It'd be very grateful for that too.
Copy link to clipboard
Copied
Update: Regarding the light, it was a silly mistake - seems I forgot to check Enable on the shadows in the Render section of Element's layer.

