Faragiri
English

Choose a language 2

Learn 3D in After Effects After Effects

The one number every parallax decision comes out of, what a camera move does at each depth, and why the useful depths are the near ones. Worked on a harbour flythrough.

6Sections
4Min read
4Depth

Recommended Before This

0 / 2

A camera's zoom in pixels is the focal length times the composition width divided by the film size, so a 50mm camera on a 1920 pixel composition with the default 36mm film back sits at a zoom of 2666.7 pixels. Every parallax decision on this page comes out of that one number, because it is the distance from the camera to the plane where layers are their true size.

Marta builds a 2.5D flythrough of a harbour for a maritime museum in Vigo: eleven flat photographs of quays, cranes and boats, arranged in depth, with one camera move across them.

Flat layers at different depths, which is the whole technique

Making a layer three dimensional gives it a Z position and nothing else: it is still a flat rectangle, it just now sits somewhere in front of or behind the plane. That is why the technique is called 2.5D, and it is not a limitation to work around, it is the entire method: eleven photographs cut into eleven flat planes produce a convincing move because parallax, not modelling, is what an audience reads as depth.

Eleven flat photos, zero 3D mesh

How flat layers at different Z depths create 2.5D space

Turning on 3D gives a flat rectangle a Z coordinate and nothing else. Depth comes from spacing those cards along the camera axis so near and far planes separate as the camera moves.

  1. Near foreground cardsAppear larger than authored size and sweep across the frame fastestZ closer than zoom
  2. Zoom-distance planeSits at the camera's focal zoom plane and renders at its exact authored pixel sizeZ equals zoom
  3. Midground cut-outsFlat harbour photographs with no thickness that read as volume through relative motionspread in Z
  4. Far background cardsShrink in perspective and drift slowly behind the cranes and boatsZ deeper than zoom

Scale and parallax follow the same ratio: pushing a flat card further past the zoom distance shrinks it and slows its screen travel together.

Live Web Audio Synth, 3-Band EQ & Compressor Lab

Synthesize live audio, sculpt 3-band EQ & compression, and watch the 60fps FFT spectrum.

A layer at the same Z as the camera's zoom appears at exactly the size it was authored. Push it further and it shrinks; bring it nearer and it grows, and the scale is the same arithmetic as the parallax.

What a hundred pixel camera move does to each layer

Move the camera 100 pixels sideways and a layer at Z equal to zero moves 100 pixels in frame. A layer at 250 moves 91.4, at 500 moves 84.2, at 1000 moves 72.7 and at 2000 moves 57.1, because the apparent movement scales as the zoom over the zoom plus the depth.

One camera move, five depths

How far each layer travels when the camera moves 100 pixels

The fall is steep at the near end and almost flat at the far one, which is why a scene spread over twelve thousand units has less depth than one spread over twelve hundred.

pixels of apparent movement, for a 100 pixel camera move at a zoom of 2666.7

  1. 100Z 0
  2. 91.4Z 250
  3. 84.2Z 500
  4. 72.7Z 1000
  5. 57.1Z 2000

The chart is drawn for a 50mm camera. On a 24mm camera the same depths produce a much steeper fall, which is the whole reason a wide lens reads as more three dimensional in a flythrough as well as in a photograph.

Which means the useful depths are the near ones. Pushing the far quay from 2000 to 4000 changes its movement from 57.1 pixels to about 40, and pushing it to 8000 barely changes it again, so a scene with everything spread between 0 and 1000 has more parallax than one spread over ten thousand.

The camera settings that matter, and the one that does not

A wide camera exaggerates the parallax and a long one flattens it, exactly as a real lens does, because a shorter focal length is a smaller zoom and the ratio above changes faster with depth. A 24mm camera on the same composition has a zoom of 1280, so a layer at 1000 moves only 56 pixels out of the camera's 100 rather than 72.7.

Lens vs depth of field

Which camera settings earn their render time in 2.5D

Focal length drives the strength of the parallax curve, while built-in camera depth of field slows renders down and makes flat photographs look like cards behind glass.

2.5D camera setup choices

  1. YesShorter focal length (24mm, zoom 1280)Drops Z 1000 travel to 56 pixels out of 100 instead of 72.7, sharpening depth cuesYes
  2. YesManual blur effect per layerFast to render and lets you dial softness per card by eye rather than by optical mathYes
  3. NoCamera depth of field switchHeavy to compute and blurs each flat photograph uniformly across its whole surfaceNo

Choosing a wider lens gives genuine parallax separation; faking optical blur per layer avoids uniform card softness.

Depth of field is the setting that costs the most and buys the least here. It is slow, it is applied to flat cards so the blur is uniform across each one, and a photograph of a quay that is soft as one plane looks like a photograph behind glass. The blur that works is applied per layer as an effect, by hand, at a value chosen rather than computed.

Continuously rasterise, and the thing that breaks

A vector layer or a nested composition scaled past 100 per cent goes soft unless it is set to rasterise continuously, which recomputes it at the size it is being shown at. On a flythrough where the near crane is scaled to 340 per cent, that switch is the difference between a sharp photograph and a blurred one.

Scaling past 100 per cent

What continuously rasterise fixes and what it quietly breaks

Turning on continuously rasterise keeps a 340 per cent crane sharp, but it flips render order so transform scale runs before layer effects.

  • Standard render orderEffects first, transform second
    • Blur radius stays true at 100 per cent scale
    • Vectors and precomps turn soft when pushed past 100
    • Effect math stays independent of camera zoom
  • Continuously rasterisedTransform first, effects second
    • Edges stay sharp even when scaled to 340 per cent
    • Scale multiplies before blur effects evaluate
    • A blur tuned at 100 becomes wrong at 340

Transform vs effects render order

Recomputing resolution at 340 per cent prevents blurry vectors, as long as you retune any blur applied to that same layer.

What it costs is the render order: a continuously rasterised layer applies its transform before its effects rather than after, so a blur on that layer is now being applied at the scaled size, and the number that was correct at 100 per cent is wrong at 340.

Two things worth using in 2026

Draft 3D with extended viewer previews the scene at speed while the camera is being animated, so a move can be judged in real time rather than rendered in sections. It replaced scrubbing a timeline that plays at two frames a second, and it is included. It disables some effects while it is on, which is the trade and is usually worth it while blocking.

Two workflow upgrades in 2026

Real-time 3D blocking built on three separated camera nulls

Draft 3D with the extended viewer lets you judge timing live, while three parented nulls keep path, aim, and shake from overwriting one another.

Directable 2026 camera animation
  • Draft 3D extended viewerReplaces two-frames-per-second scrubbing by trading heavy effects for real-time blocking
  • Position and orientation nullsTwo parented nulls let you revise where the camera flies without breaking where it points
  • Dedicated shake nullThird child null isolates subtle handheld motion so path edits never wipe out shake keyframes

Built-in After Effects tools with zero extra plugins

Animating the camera object directly couples path, look target, and shake into one tangled curve. Three nulls keep every adjustment clean.

A camera rig of three nulls, for position, orientation and shake, is free and it is what makes a move directable. It replaced animating the camera itself, where a change of mind about the path destroys the shake and a change of mind about the shake destroys the path. Three nulls, parented in a chain, and each concern is a separate set of keyframes.

The mistake, made on the far quay

Marta placed the eleven layers between Z of 0 and Z of 12000, to make the harbour feel deep. In the move, the seven furthest layers travel between 40 and 20 pixels while the near crane travels 100, so six of the eleven photographs are effectively locked together and the harbour reads as two planes with a photograph behind them. Redistributing the same eleven layers between 0 and 1200 gave every one of them a distinct movement and looked deeper, on a scene that is arithmetically shallower. Depth in a 2.5D scene is a spread of parallax rates, not a spread of numbers.

The far quay mistake

How spreading layers to Z 12000 collapsed seven planes into one

Large Z numbers look deep on paper, yet past a few thousand units the parallax curve flattens out and locks background layers together.

Depth in 2.5D comes from spreading layers across distinct parallax speeds, not from typing larger numbers into Z.

The composition settings the camera's zoom is computed from are compositions, layers and the interface, and the keyframes and curves driving the move are animating a property, and the graph editor. A camera rig built from nulls and controls is the same idea as driving animation with code instead of keyframes. And a camera in a scene that really has geometry in it is turning the scene into an image.

Alongside this

Above this