How to Use an AI Depth Map Generator for a Parallax Shot

Use an AI depth map generator to estimate which parts of a still are nearer or farther away. Turn that estimate into separate layers, fill the areas those layers will reveal and test two distances for the same sideways move. A depth map gives you a starting point for placing the layers. The finished shot depends on what the camera exposes along their edges. This exercise uses a station still with one foreground post, a bench farther back and a wall at the rear. Compare the two moves with a fixed reference and look for the first visible edge problem, if one appears.
Choose a still with a clear foreground edge
Start with a still wide enough to allow a little reframing. Look for three readable distances: a close object with a recognizable outer edge, one object farther back, and a background that continues beyond both. A station post in front of a bench works because its outer edge can be traced and the wall gives you a surface to rebuild. Transparent glass, wisps of hair or a reflection across both layers will take more work. Use a simple opaque object for the first shot so you can see whether the setup works.
Decide why the camera is moving. A shallow reveal might let a character appear behind the post or uncover a sign on the back wall. Moving just to make the still feel alive calls for less displacement. If the image must reveal the full side of a bench or a person hidden by the post, plan a new angle or another source image. That amount of scene geometry is missing from the original view. It needs a reconstruction or a different shot design.
You can create or refine the source still in CinemaDrop’s storyboard. Save a full-size master before adding a border or changing aspect ratio. Use the same image for estimation, matte work and the final composite. If you resize for inference, track how you resized. A cropped model input and an uncropped plate will put an edge in different places even when the generated map itself is sensible.
Read the depth map as an ordering of layers
For this workflow, use the Small version of Depth Anything V2. Run the model on the still and save the depth output. The Apple Core ML package is one way to run that model on a compatible Mac. Keep the raw output if the tool exposes it and save a grayscale preview you can look at next to the still. The Small model linked here estimates relative depth. Use it to order the post, bench and wall instead of reading grayscale values as distances in meters.
On a Mac, use the model card’s Core ML example to pass in the still and keep its depth output. With the authors’ Python release, install the documented requirements, put the Small checkpoint in checkpoints and run python run.py --encoder vits --img-path station.png --outdir depth --pred-only --grayscale from the repository. That command saves a grayscale preview of the prediction. Keep the preview registered to the original plate as you refine the matte.
Check which end of the visualization maps to the foreground before you use it as a mask. Export and viewing tools can represent this differently. Pick a point clearly inside the post, one on the bench and one on the far wall. Compare them in the map and put them in near-to-far order with the original image open. If a tool inverts an exported grayscale image, labels from a different viewer may put the layers backward. If the bench and wall merge in the depth output, start with two layers and decide whether separating them manually would improve the shot.
Inspect transitions at the post silhouette. The model can produce a broad change across a sharp edge, partly because the depth estimation and the full-size plate are read at different scales. Thin shapes, reflections and shadows deserve a separate look. A dark region on the floor may be the shadow of the post at the floor’s depth. The shadow and the post might share some color in the plate while belonging to different surfaces in the composite. Use the RGB image to decide what moves with the object.

Make cutouts and rebuild what they hide
Use the depth map to draft a matte for the close post. Then compare its silhouette with the original plate. Start with a hard edge where the post is sharply in focus. Use a narrow transition if the actual optical edge is soft. Watch for a strip of wall attached to the post. In the original image that strip can blend into the wall, then ride along with the post as soon as you move it. The AI rotoscoping guide explains the related task of checking a matte on a moving subject.
Build a clean background under the post by extending the visible wall or floor into the part it covered. Use neighboring structure to continue a grout line, wall joint or lighting gradient. Extend the repair far enough to cover your largest planned test and any soft edge on the foreground layer. If the far side of the bench is hidden, decide whether it belongs on the rebuilt plate or needs its own patch before you move it. Keep a copy of each layer and a note that separates visible source pixels from newly constructed areas.
A clean plate needs room outside the visible edge too. If the far background moves a few pixels left, the right edge of that layer may reveal transparency even if the post’s edge is convincing. Give the composite some overscan, meaning image area beyond the intended crop, or scale the setup slightly so moving layers always fill the delivery frame. Check both outer edges on the largest move. In a planar composite, move the bench with its own crisp foreground edges and keep shadows on the surface that receives them where the image supports the split. A screenshot of the still won’t expose these relationships in motion. Check the actual layers.

Compare a fixed reference and two moves from the same frame
Build the scene as flat layers with 2D transforms, or place the layers on planes at different distances for a small camera move in a compositor or 3D tool. This approach is often called 2.5D parallax. For a sideways camera move, the near post should shift more in the image than the rear wall. Give the bench a displacement in between. Check that this ordering holds from the start to the end. If the setup has an orbit or large change of angle, it may expose the flat layers because the still lacks usable side views.
For a first pass, make three versions using the same crop, duration and starting composition. One stays fixed for reference. One makes a modest move. The last is deliberately larger so you can check whether more of the rebuilt background is exposed. In a horizontal-shift composite, set the motion as relative offsets from the starting frame. The values below are example offsets for an 854 × 480 output, measured from the starting frame in the same horizontal direction. Set and record the offsets at your own delivery size, then choose the smallest move that serves the cut.
| Pass | Post | Bench | Wall | What it isolates |
|---|---|---|---|---|
| Fixed reference | 0 px | 0 px | 0 px | Any mismatch already present in the rebuilt plate |
| Small move | 8 px | 4 px | 1 px | Whether the layers separate cleanly enough for the cut |
| Larger move | 24 px | 12 px | 3 px | Where the post exposes a damaged or incomplete area |
Use the same direction and easing in both moving passes. If one test eases in and the other starts at full speed, the second move may draw attention to the edge for timing reasons as well as distance. When using image planes in a 3D scene, lock the lens and the initial framing for both passes. Move the camera along the same short path. This lets you compare how far it travels while the perspective and staging stay comparable. For more ways of animating a still, see how to animate a picture.
Choose a move with a clean reveal
Play the two moves at the target viewing size. Watch the moving post first, then play again and watch what emerges behind it. A bright halo sliding with the post points to background pixels on the foreground cutout. A dark gap at the reveal suggests the repaired background stops early. A strip of repeated texture appears when the missing wall was filled with a pattern that fails to meet the original. These problems call for different fixes. Repeating a depth-estimation pass won't necessarily change what is missing from the source image.
If you see a flaw, pause at the first frame where it appears and compare it with the fixed reference. Look near both sides of the post on the frame before and after. If the edge looks bad at the start of all three versions, correct the matte before adjusting motion. If the seam appears only after the larger move, either extend the rebuilt wall or reduce travel. Test again at a speed that fits the scene. Record the actual output frame size, displacement and the first frame with an observed edge failure if one occurs. You can then return to the result without relying on what you noticed during playback.

| Pass | Frame | Post | Bench | Wall | Edge check |
|---|---|---|---|---|---|
| Fixed reference | 1600 × 900 still, inspected at 854 × 480 | 0 px | 0 px | 0 px | A gray fleck sits just left of the ragged post base where it meets the floor. |
| Small move | 854 × 480 | 10 px | 5 px | 1 px | The fleck is visible from frame 0 (0.00 s). The bench stays continuous as its backrest emerges to the right of the post. |
| Larger move | 854 × 480 | 40 px | 20 px | 4 px | The same fleck starts at frame 0 (0.00 s) and follows the post. At frame 95 (3.96 s), the post has traveled 36 px farther than the floor. The backrest still meets the post edge. |
Both four-second clips start on the same frame and use the same easing. The small move separates the post from the bench with less visible sliding at the foot. For the larger reveal, refine the floor contact and its reflection.
Match the finished shot to the lighting and sharpness of adjacent footage. If compositing makes the post unnaturally crisp or gives the separated layers different grain, treat that after fixing the edge and background. You can apply a shared grain treatment after compositing to help the assembled image read together. Recheck at delivery size because compression can make a busy border look different. Save the depth map, source still, matte and rebuilt background along with the clip so the editor can request a smaller move without starting over.
Check it at the cut
Bring the candidate moves into CinemaDrop with Add media and try them between the preceding and following shots. Play from a few seconds before the insert. Can you see the object the move is meant to reveal? If both versions reveal it, listen and look for continuity with the adjacent camera directions. If the smaller move does the job and the larger one makes the seam visible, use the smaller pass. If neither move reaches the story point cleanly, use a second angle or make the reveal with a cut. The AI VFX guide puts the layer work in the context of a larger effects shot.
Frequently asked questions
What does depth mean in an image?
Depth describes how far visible surfaces sit from the camera or how they are ordered by distance. In a relative map, the important information is which surface comes before another. In the station example, the post should be nearer than the bench and the wall. A relative map can support that ordering without providing scale for a measured camera move.
How do I edit a depth map?
Save the original output first. Look at the depth map against the source, choose the regions you want to separate, and use the source edge to refine the matte. If a thin object disappears from the estimate, add it to the relevant layer using the photograph as reference. Then inspect the repaired background as the layer moves. Adjusting the map can help define what moves, while painting or filling the clean plate supplies what the moving layer reveals.


