Skip to main content
April 1, 2026Jerron Smith/12 min read

Introducing 3D Layers, Lights, & Cameras

Master After Effects 3D Animation Fundamentals

Core 3D Skills You'll Master

3D Layer Positioning

Learn to move and position layers in three-dimensional space using z-axis coordinates for depth control.

Camera Controls

Create dynamic camera movements and control viewport perspectives for professional animations.

Lighting Systems

Add realistic lighting effects and shadow casting to enhance your 3D scenes dramatically.

Topics Covered in This After Effects Tutorial:

Moving Layers in 3D Space, Working with Cameras, Working with Lights

Exercise Preview

preview 1b

Animation Preview Features

The final animation demonstrates camera movement through an underwater environment with depth of field effects and text that wipes on as objects move past it.

Exercise Overview

In this comprehensive exercise, you'll master After Effects' powerful 3D workspace to create cinematic depth and movement. You'll learn to position layers in three-dimensional space, configure professional lighting setups, and animate dynamic camera movements that bring static artwork to life. This foundational skillset is essential for motion graphics professionals working on everything from title sequences to architectural visualizations.

Previewing the Final Video

  1. Let's examine the finished result to understand our creative objectives. If you're currently in After Effects, keep it open but switch to your Desktop.

  2. On the Desktop, navigate to Class Files > After Effects Class > Working with 3D > Preview Movie and double–click underwater world.mp4.

  3. Study these key technical and creative elements:

    • The animation simulates a camera flying through a layered underwater environment, creating genuine parallax motion.
    • Notice how layers dynamically shift in and out of focus as the camera moves—this demonstrates depth of field principles.
    • The message at the end appears to wipe on as the whale moves past it, showing advanced masking and timing techniques.
  4. Review the video multiple times to analyze the timing and spatial relationships, then close it when you're ready to begin.

Now that you've seen the final result, let's build this 3D scene step by step, starting with workspace optimization.

Setting up the Workspace

  1. In After Effects, go to Window > Workspace > Standard.

  2. Choose Window > Workspace > Reset "Standard" to Saved Layout.

  3. Ensure your After Effects window is maximized for optimal 3D workflow visualization:

    Mac: At the top left of the window, click the green button (the third button).
    Windows: At the top right of the window, click the Maximize button (the middle button).

Workspace Setup Process

1

Reset Standard Workspace

Go to Window > Workspace > Standard, then reset to saved layout for consistent interface

2

Maximize Window

Click green button (Mac) or maximize button (Windows) to fill entire screen

3

Verify Panel Layout

Ensure all necessary panels are visible and properly arranged for 3D workflow

Creating a Dummy Comp & Importing

When importing Illustrator and Photoshop files as compositions, After Effects inherits dimensions from the source file but requires composition settings from your current project context. These settings—including duration, frame rate, and color space—are pulled from the last active composition. Creating a dummy composition ensures we establish the correct parameters before import, preventing downstream technical issues.

  1. In After Effects, if you have a project currently open:

    • Choose File > Save to preserve your work.
    • Choose File > Close Project to start fresh.
  2. Choose Composition > New Composition, press Cmd–N (Mac) or CTRL–N (Windows), or click the New Composition button in the Composition panel.

  3. Configure these settings carefully before clicking OK:

    • From the Preset menu choose HDTV 1080 29.97 (this ensures broadcast-standard specifications)
    • Verify Resolution is set to Full for maximum quality during development.
    • For Duration type 30,00 and press Tab to set it to 0;00;30;00 (30 seconds provides ample time for complex animations).
    • Confirm the background color is black: click the Background Color box, set the hex code to #000000 and click OK.
    • Click OK to create the template composition.
  4. In the Project panel, select Comp 1 and press Delete (Mac) or Backspace (Windows) to remove the dummy composition—its job is complete.

  5. Choose File > Import > File or press Cmd–I (Mac) or CTRL–I (Windows).

  6. Navigate to Desktop > After Effects Class > Working with 3D > Media > images.

  7. Select Underwater World.ai and configure the import settings:

    • Change the Import As menu to Composition—Retain Layer Sizes to preserve individual layer dimensions.

    • Ensure both Create Composition and Illustrator/PDF/EPS Sequence remain unchecked.

    • Click Open (Mac) or Import (Windows).

  8. In the Project panel, double–click the Underwater World composition to open it for editing.

  9. Access composition settings by choosing Composition > Composition Settings or pressing Cmd–K (Mac) or CTRL–K (Windows).

  10. Change both Width and Height to 1080 pixels.

    NOTE: When working with 3D layers in After Effects, starting with oversized source layers is crucial. This prevents quality degradation when scaling up layers that move closer to the camera during animation.

  11. Click OK to apply the new composition dimensions.

  12. The composition crop has centered the artwork within the smaller frame. Now we'll scale the artwork proportionally to fit the new dimensions.

    Press Cmd–A (Mac) or CTRL–A (Windows) to select all layers simultaneously.

  13. Choose File > Scripts > Scale Selected Layers and configure:

    • Check Scale about Center to maintain composition balance.
    • Set the scale value to 0.5 (50% reduction)
    • Click Scale to apply the transformation.
    • Close the panel when complete.

    NOTE: This script maintains spatial relationships between layers by scaling from a single center point, unlike individual layer scaling which uses each layer's anchor point.

  14. Save your project by choosing File > Save As > Save As:

    • Name the file Your Name—Working with 3D.aep
    • Save it to Desktop > Class Files > After Effects Class > Working with 3D
    • Click Save.

With our composition properly configured and artwork imported, we're ready to begin the 3D transformation process.

Dummy Composition Purpose

Creating a dummy composition before importing ensures proper duration, framerate, and other settings are applied to imported Illustrator and Photoshop files.

Composition Settings

Resolution
1,080
Duration (seconds)
30
Frame Rate
29.97

Moving Layers in 3D Space

All layers in After Effects begin as 2D elements, but any visual layer can be converted to 3D to unlock spatial positioning, camera interaction, and lighting effects. This transformation is fundamental to creating convincing depth and perspective in motion graphics work. The z-axis becomes your primary tool for establishing foreground, midground, and background relationships.

  1. In the Timeline, locate the switches panel. If you don't see the switches timeline switches, click the Toggle Switches / Modes button at the bottom of the Timeline.
  2. With the Timeline active, press Cmd–A (Mac) or CTRL–A (Windows) to select all layers.
  3. Click the 3D Layer switch 3D layer column for any selected layer to enable 3D mode for all selected layers simultaneously.
  4. Press Cmd–Shift–A (Mac) or CTRL–Shift–A (Windows) to deselect all layers.

  5. Select the Puffer Fish layer to keep it visible during our depth arrangement.

  6. Select the layers we'll temporarily hide: hold Cmd (Mac) or CTRL (Windows), then click Shark, Whale, and text layers:

    • Hide these layers by clicking the eye icon eye icon for any selected layer.

    • Enable the Shy switch shy switch off by clicking it for any selected layer.

    • Verify all selected layers show the active shy state shy switch on.

  7. Activate the shy layer hiding by clicking the Shy button shy button at the top of the Timeline:

    shy button location2

  8. At the bottom right of the Composition panel, click the Select view layout menu select view layout and choose 2 Views.

    NOTE: Multiple viewport layouts are essential for 3D work. The default views show both the Active Camera perspective and a Top orthographic view, giving you precise control over layer positioning while maintaining visual context.

  9. In the Tools panel, confirm you're using the Selection tool selection tool.
  10. Click in the Top view (left side of the Composition panel) to activate it.
  11. Press , (comma) repeatedly to zoom out until you see extensive space around the black composition boundary.

    3D Layer Conversion

    Any visual layer can be converted to 3D by clicking the 3D Layer switch, enabling z-axis positioning and camera/light interaction.

    Layer Z-Position Values

    Ring 1
    -500
    Ring 2
    0
    Ring 3
    500
    Ring 4
    1,000
    Ring 5
    1,500
    Ring 6
    2,000

Essential Viewport Navigation Shortcuts

Command Shortcut
Zoom Out , (comma)
Zoom In . (period)
100% / (slash)
Fit Opt–/ (Mac) or ALT–/ (Windows)
  • Click in the Timeline to activate it for keyboard shortcuts.
  • Press Cmd–A (Mac) or Ctrl–A (Windows) to select all visible (non-shy) layers.

    NOTE: Timeline selection respects shy layer visibility, while Composition panel selection includes all layers regardless of shy status.

  • Click any layer's label color and change it to Green for better visual organization.
  • Press P to reveal the Position property for all selected layers.

  • Press Cmd–Shift–A (Mac) or CTRL–Shift–A (Windows) to deselect all layers.

  • For the Ring 1 layer, locate the third position value (z-position) and change it to -500.

  • Continue configuring z-position values to create evenly spaced depth layers:

    Layer Name Z–Position
    Ring 2 0
    Ring 3 500
    Ring 4 1000
    Ring 5 1500
    Ring 6 2000
    bg 2500
  • Change the bg layer's label color to Blue to distinguish the background element.
  • In the Top view, observe how layers now form a progressive depth arrangement from the composition front (bottom edge of the black box) extending backward in 500-unit increments.

    This systematic spacing creates the foundation for smooth camera movement and convincing parallax effects when we animate through the scene.

  • Save your progress with File > Save or Cmd–S (Mac) / CTRL–S (Windows).

  • The spatial arrangement is now complete. Next, we'll add a camera to control how viewers experience this 3D environment.

    Adding a Camera

    1. Select the top layer in the Timeline to position the new camera layer appropriately.

    2. Choose Layer > New > Camera and configure these professional camera settings:

      • Type: One–Node Camera (simpler to animate than two-node cameras)
      • Preset: 50mm (provides natural perspective similar to human vision)
      • Enable Depth of Field: Unchecked (we'll add this effect later if needed)
      • Lock to Zoom: Checked (maintains focal length during animation)
      • Click OK to create the camera.
    3. Examine the camera position in the Top view—it's positioned too close to our foreground elements for the desired animation.
    4. With the Camera 1 layer selected, adjust the starting position:

      • Press P to reveal the Position property.
      • Set the third value (z-position) to -1800 to move the camera further back.
      • Press P again to hide the Position property.

      NOTE: Adding a camera layer automatically makes it the Active Camera, replacing After Effects' default camera view with your custom perspective.

    Now we have a properly positioned camera, but our layers appear incorrectly sized due to 3D perspective. Let's address this scaling challenge.

    Camera Settings Configuration

    FeatureSettingValue
    Camera TypeOne-Node CameraSelected
    Lens Preset50mmStandard focal length
    Depth of FieldUncheckedDisabled for now
    Z-Position-1800Moved back from art
    Recommended: One-Node cameras are simpler to control and perfect for this introductory exercise

    Scaling 3D Layers

    When layers are repositioned in 3D space, perspective automatically affects their apparent size—closer objects appear larger while distant objects appear smaller. This is realistic but requires compensatory scaling to achieve the visual proportions we need. Professional 3D workflows always account for this relationship between position and perceived scale.

    1. Press Cmd–A (Mac) or CTRL–A (Windows) to select all visible layers.
    2. Press S to reveal Scale properties for all layers (this also hides the Position properties for cleaner viewing).
    3. Press Cmd–Shift–A (Mac) or CTRL–Shift–A (Windows) to deselect all layers.
    4. Select the bg layer and observe its current size:

      • In the Active Camera view, locate the blue selection handles to see how small this distant layer appears.
      • Change any Scale value to 205% (all three values are linked by default).
      • Notice the background now extends slightly beyond the composition boundaries, ensuring complete coverage during camera animation.
    5. Apply compensatory scaling to the remaining layers, working from back to front. These values are calculated to maintain visual hierarchy while accounting for perspective distortion:

      Layer Name Scale
      Ring 1 44%
      Ring 2 60%
      Ring 3 91%
      Ring 4 130%
      Ring 5 154%
      Ring 6 175%
    6. Press Cmd–A (Mac) or Ctrl–A (Windows) to select all layers.
    7. Press S to hide Scale properties and clean up the Timeline view.
    8. Press Cmd–Shift–A (Mac) or CTRL–Shift–A (Windows) to deselect all layers.
    9. Save your work with File > Save or Cmd–S (Mac) / CTRL–S (Windows).

    With proper scaling established, our 3D scene is ready for lighting, which will add realism and visual interest to the composition.

    Perspective Effects

    In 3D space, layers closer to the camera appear larger while distant layers appear smaller due to perspective. Scaling compensates for this effect.

    Layer Scale Adjustments

    Ring 1
    44
    Ring 2
    60
    Ring 3
    91
    Ring 4
    130
    Ring 5
    154
    Ring 6
    175
    Background
    205

    Adding a Light

    Professional 3D environments require thoughtful lighting design to achieve depth, mood, and visual hierarchy. Lights in After Effects affect only 3D-enabled layers and can cast shadows, create falloff patterns, and establish atmosphere. The interplay between lights, cameras, and 3D layers transforms flat artwork into convincing dimensional spaces.

    1. Select the topmost layer in the Timeline to position the light layer appropriately in the layer stack.

    2. Choose Layer > New > Light and configure these professional lighting settings:

      • Light Type: Point (omnidirectional light source, ideal for general illumination)
      • Color: White (#FFFFFF) (neutral color maintains artwork integrity)
      • Intensity: 100% (full brightness for strong shadow definition)
      • Falloff: None (consistent illumination across all distances)
      • Cast Shadows: Checked On (essential for 3D depth perception)
      • Shadow Darkness: 50% (balanced shadow contrast)
      • Shadow Diffusion: 50% (soft, realistic shadow edges)
      • Click OK to create the light.
    3. Position the light strategically with the Point Light 1 layer selected:

      • Press P to reveal Position controls.
      • Enter these coordinates: 740, 542, -1800
        (This places the light adjacent to the camera for consistent illumination angle.)
      • Press P again to hide Position properties.
    4. Check the Active Camera view—you won't see shadows yet because shadow casting requires two-part activation.

      Shadows require both light-side enablement (which we've configured) and layer-side permission for each object that should cast shadows.

    5. Select the primary shadow-casting elements:

      • Click the Ring 1 layer.
      • Hold Shift and click Ring 6 to select all ring layers simultaneously.
    6. Press AA (double-tap the A key) to reveal Material Options for all selected layers.

    7. Enable shadow casting by clicking the word Off next to Cast Shadows on any selected layer (this changes it to On for all selected layers).

      Shadows now appear in the Active Camera view, adding dramatic depth and visual interest to your 3D scene!

    8. Clean up the interface by pressing Cmd ~ (Mac) or CTRL ~ (Windows) to hide all visible properties.

    9. Press Cmd–Shift–A (Mac) or CTRL–Shift–A (Windows) to deselect all layers.

    The lighting setup is complete and casting beautiful shadows. Now we'll create dynamic movement by animating both the camera and light through the 3D scene.

    Light Setup Process

    1

    Create Point Light

    Add white point light with 100% intensity and shadow casting enabled

    2

    Position Light

    Set position to 740, 542, -1800 to place it next to the camera

    3

    Enable Layer Shadows

    Turn on Cast Shadows for Ring layers in Material Options to see shadow effects

    Animating Cameras & Lights

    1. Position the playhead at the beginning of the timeline (frame 0).

    2. In the Point Light 1 layer's Parent & Link column, select 2. Camera 1 from the dropdown menu.

      Parenting the light to the camera ensures they move as a unified system, maintaining consistent illumination angles while creating dynamic shadow movement as we fly through the scene.

    3. Select the Camera 1 layer and prepare for animation:

      • Press P to reveal Position controls.
    4. Click the Position stopwatch stopwatch to enable keyframe animation and set the first keyframe.

    5. Move the playhead to 10;00 (10 seconds) to set the animation endpoint.

    6. Animate the camera into the scene by hovering over the camera's third position value (z-position) and dragging to the right.

      NOTE: Hold Shift while dragging for faster value changes, or hold Option (Mac) / ALT (Windows) for more precise control.

    Camera Animation Timeline

    0:00

    Start Position

    Camera begins at z-position -1800 with light parented to it

    10:00

    End Position

    Camera moves to z-position 1020, flying into the blue background

    Applied

    Easing Applied

    Easy Ease keyframe assistant creates smooth acceleration and deceleration

    Parent-Child Relationship

    Making the camera the parent of the light ensures the light moves with the camera, creating dynamic shadow movement throughout the scene.

    Key Takeaways

    1Convert any visual layer to 3D by enabling the 3D Layer switch to access z-axis positioning and camera/light interaction capabilities
    2Use dummy compositions before importing to ensure proper duration, framerate, and other settings are applied to Illustrator and Photoshop files
    3Position layers along the z-axis in incremental values (like 500-unit intervals) to create organized depth in three-dimensional scenes
    4One-Node cameras with 50mm preset provide standard focal length perfect for introductory 3D work and easier control than two-node cameras
    5Scale 3D layers to compensate for perspective effects where closer objects appear larger and distant objects appear smaller
    6Point lights with shadow casting enabled require layers to have Cast Shadows turned on in Material Options to display shadow effects
    7Parent lights to cameras so they move together, creating dynamic shadow movement as the camera animates through the scene
    8Multiple viewport layouts (Active Camera and Top view) are essential for visualizing and positioning 3D elements accurately in three-dimensional space

    RELATED ARTICLES