Adding Realistic Lighting and Shadows to a Tracked Scene in After Effects

Add lighting and shadows to a scene using a 3D camera tracker, create a shadow catcher and light, and adjust the properties of the text and shadow layers in classic 3D mode.

Add realistic lighting and shadows to tracked 3D scenes in After Effects by using shadow catchers, point lights, and careful layer alignment. Understand how classic and advanced 3D modes differ when it comes to casting shadows and working with various light types.

Key insights

  • Creating a shadow catcher from ground plane tracking points allows text or other 3D layers to cast realistic shadows that blend with the existing footage.
  • Classic 3D mode supports shadows from point lights, while advanced 3D mode requires either spotlights or environment lights to cast shadows, limiting some lighting options.
  • Proper positioning of the shadow catcher and adjusting light settings, such as rotation, darkness, and diffusion, are essential for matching the direction and softness of shadows within the scene.

This lesson is a preview from our After Effects Certification Course Online (includes software & exam). Enroll in a course for detailed lessons, live instructor support, and project-based training.

This is a lesson preview only. For the full lesson, purchase the course here.

This technique builds on a scene where the 3D Camera Tracker effect has already been applied and solved, and a tracked camera has been created. The composition should be the same dimensions as the source footage, and you should be working in Classic 3D mode. Extrusion and advanced geometry are not required for this workflow, so Classic 3D is the right renderer to start with.

Selecting Points on the Ground Plane

To create a shadow catcher aligned to a surface, start by selecting track points that lie on that surface. Hold Shift and click to select three or more points. As you build your selection, watch the target indicator and make sure it is orienting parallel to the surface you want to use. If the target is tilting away from the floor or table, try a different group of points until you get a clean alignment.

Creating the Shadow Catcher and Light

With your points selected, right-click on the target and choose Create Shadow Catcher and Light. After Effects will do three things at once:

  • Add a point light to the scene
  • Enable shadow casting on the light
  • Create a solid layer called Shadow Catcher, aligned to your selected plane

The shadow catcher is a flat, solid layer that receives shadows from other 3D layers. It is not visible as a solid in the final render; it only shows the shadows that fall on it.

Adjusting the Shadow Catcher Layer

After the shadow catcher is created, check its orientation and scale. Use the rotation gizmo to make sure it sits parallel to the surface in the scene. If it is not large enough, shadows will be clipped at the edges of the layer. Scale it up until it covers the area where shadows are likely to fall.

Adding Text to the Scene

Go back to the 3D Camera Tracker effect and select one or more track points at the location where you want to place text. Right-click and choose Create Text. The text layer will be positioned at that point in 3D space, already aligned to the surface.

You should be able to see a shadow cast by the text layer immediately after it is created. Double-click the text layer to edit the content, then click on the layer to apply font, size, and color changes to the full block of text.

Positioning the Text on the Surface

Use the selection tool to rotate and adjust the text so it lies flat on the surface. Rotating along the Z axis helps bring it down to the ground plane. Avoid raising the Z position of the text, as lifting it above the surface plane will make it appear to float in the air above the scene. Because both the shadow catcher and the text layer were created from points on the same tracked surface, they should align well with minimal adjustment.

Adjusting the Light

The point light created by After Effects has properties you can modify to better match the lighting in the original footage. Open a two-view layout and set one viewport to Top view to see the light's position relative to the scene. You can move the light to change the direction and angle of the shadow.

In the light's effect controls, you can adjust:

  • Intensity: The strength of the light
  • Color: The tint of the light and shadow
  • Shadow Diffusion: Higher values produce softer shadow edges
  • Shadow Darkness: Lower this to match the subtlety of shadows already present in the footage

Position the light to roughly match the direction the light appears to be coming from in the original scene. Keep in mind that if the shadow catcher layer is not on the opposite side of the text from the light, the shadow will fall off the edge of the catcher and disappear.

Classic 3D vs. Advanced 3D: Shadow Compatibility

Shadow catchers and point lights work reliably in Classic 3D mode. If you switch to Advanced 3D, point lights no longer cast shadows. In Advanced 3D, only two light types support shadow casting:

  • Spotlight: Casts shadows and is relatively straightforward to position using its cone and target.
  • Environment Light: Can cast shadows but is controlled through X and Y rotation rather than a movable point, making it harder to dial in precisely.

Classic 3D is the more reliable choice when shadow casting is a priority. The tradeoff is that layers in Classic 3D are flat planes with no extrusion or beveling. Advanced 3D gives you real geometry but limits your shadow options and removes blending modes, effects, and track mattes from 3D layers.

Using Shadows with Extruded Text in Advanced 3D

If you want both extruded 3D text and a shadow, it is possible in Advanced 3D using a spotlight. Switch to Advanced 3D, open the text layer's Geometry Options in the timeline, and add an Extrusion Depth value. Add a bevel style, such as concave, for additional dimension. Then use a spotlight rather than a point light to cast the shadow onto the shadow catcher layer.

This setup is more complex to configure, but it produces a result that combines real 3D geometry with a cast shadow on the tracked surface.

Choosing the Right Mode

Every 3D workflow in After Effects involves tradeoffs. Classic 3D offers reliable shadows, blending modes, and effects on 3D layers, but layers are flat planes with no depth. Advanced 3D supports real geometry, imported models, and parametric primitives, but shadows are more limited and several compositing features are unavailable on 3D layers. Understanding what each mode allows and what it restricts will help you choose the right approach for each shot.

This article is part of a continuing series on motion tracking and compositing techniques in After Effects.

photo of Jerron Smith

Jerron Smith

Jerron has more than 25 years of experience working with graphics and video and expert-level certifications in Adobe After Effects, Premiere Pro, Photoshop, and Illustrator along with an extensive knowledge of other animation programs like Cinema 4D, Adobe Animate, and 3DS Max. He has authored multiple books and video training series on computer graphics software such as: After Effects, Premiere Pro, Photoshop, Illustrator, and Flash (back when it was a thing). He has taught at the college level for over 20 years at schools such as NYCCT (New York City College of Technology), NYIT (The New York Institute of Technology), and FIT (The Fashion Institute of Technology).

More articles by Jerron Smith

How to Learn After Effects

Build practical, career-focused skills in After Effects through hands-on training designed for beginners and professionals alike. Learn fundamental concepts, tools, and workflows that prepare you for real-world projects or industry certification.