Build a Nuke Camera Projection From One Frame: The Free DBS_SceneProjection Gizmo, Step by Step
Most AI tools aimed at visual effects want to repaint your plate. That is exactly what a compositor cannot use. A client approved those pixels. The grain is real grain. The moment a model redraws a frame, you are matching its guesses on every frame after it, and the shot starts to swim.
A free Nuke gizmo released on November 23 takes the opposite approach. DBS_SceneProjection, by VFX compositor David Borrull, uses AI to measure your shot, not to change it. From a single frame it works out how far away each surface is, which pixels belong to the floor, the walls and each object, and then builds simple geometry and wires it into a camera projection setup inside Nuke. Your plate goes onto that geometry untouched. If you have a tracked camera, the geometry snaps to the tracker's own points, so cleanup painted on the frame stays put as the camera moves.
That is the position of this piece: AI earns its place in compositing when it does the surveying and leaves the image alone. This gizmo is the clearest example I have seen of that split, and it is worth an afternoon even with its long install list.
The problem it solves
If you have built a projection by hand, you know the routine. Hold a frame, lay down a card for the floor, more cards for walls, boxes for the big objects, line each one up by eye, project the frame through the shot camera, then scrub the timeline and nudge everything that slides. For a cleanup patch or a set extension, that blocking is often the slowest part of the job, and it is mostly measuring.
DBS_SceneProjection automates the measuring. It gives you the rig you would have built, with numbers that tell you which pieces are sliding and by how much.
How it works, in plain terms
The gizmo hands work to three other programs and brings the result back into Nuke.
- Nuke sends one frame to ComfyUI. Two AI models run there. MoGe 2 estimates how far each pixel is from the camera, plus which way each surface faces. SAM 3 draws a mask for every instance of each label you give it, like "floor," "wall," "chair" or "lamp."
- Blender fits shapes. Running in the background, Blender fits a plane to the floor, planes to walls and ceiling, and a simple solid to each object: a box, cylinder, cone, sphere, a turned profile for things like lamps, or a flat card. There is also a "relief" option that keeps an object's own bumpy surface as a mesh.
- Nuke builds the projection. The gizmo wires the geometry, a camera and your held frame into a projection setup, in either Nuke's newer USD 3D system or the classic one.
The clever part is what happens with a tracked camera. The depth estimate has its own sense of scale, and the track has another. If they disagree, geometry slides. Connect your camera and the tracker's point cloud, and the gizmo uses the points the camera sees at the reference frame to fix the scale, then corrects the depth region by region so each surface passes through the tracked points on it. On a real handheld truck shot, the author measured the projection sliding under 1.2 pixels (the median, on a 1280-wide plate) across 188 frames. That is his own measurement, and it is specific enough to check on your own shot.
After each build, an info line reports slide per object in pixels and flags anything over 2 pixels at HD. You find out which piece is wrong without scrubbing.
Put this into practice
You need four things: ComfyUI, Blender 4.2 or later (tested on 5.0), Nuke, and the DBS_SceneProjection repo. If you do not own Nuke, Foundry's Nuke Non-commercial is free for personal and learning use. The author tested on Nuke 17.1 Non-commercial. That edition caps output at 1920 x 1080 and blocks third-party plug-ins, so check whether it fits what you plan to do, and test there first before you bring the gizmo into a licensed seat.
Set up ComfyUI. Put the MoGe 2 model file (moge_2_vitl_normal_fp16.safetensors) in models/geometry_estimation. Copy the repo's comfy_nodes/nuke_geo_projection folder into ComfyUI's custom_nodes. For object masks, install ComfyUI-RMBG, which provides SAM 3. The author tested with version 3.1.0, and if a later version breaks the masks, the gizmo says so; roll back to 3.1.0. The first build downloads the SAM 3 file, about 3.4 GB. Restart ComfyUI.
Set up Nuke. Add the plugin path and the install call to ~/.nuke/menu.py as the README shows. The node appears under DBS in the Nodes toolbar.
Build your first setup.
- Select the plate and create DBS_SceneProjection. Set the reference frame: the one that sees the most of what you need to paint.
- Connect your shot camera. Cameras tracked in 3DEqualizer, PFTrack, SynthEyes or Blender work too; load the file into a Nuke Camera and connect that. Connect the undistorted plate, and distort the render back afterwards.
- Connect the tracker's point cloud if you have it. The README recommends this, because it fixes the scale directly.
- Pick a label preset (interior, exterior, urban) and add your own lines.
lamp:object:revolveforces a turned shape.rock:object:reliefkeeps a rock's real surface.tree:backdrop:reliefhandles a tree line better than a flat card. - Build. Once SAM 3 is loaded, the author says a plate takes about 15 seconds in all. Read the info line. Fix flagged objects by changing their shape or label, then build again.
If the camera turns to reveal a side the reference frame never saw, add extra frames. Each one fills what the frames before it missed, and each is blocked by the geometry so it only lands where its camera actually looked. In the author's synthetic test, coverage at a later frame went from 92.5% to 99.7%.
A good first shot is a locked-off or slow push with clear floor and walls: an interior, a plaza, a street corner. Paint out one sign, project it, and watch it hold.
Four details that save you an afternoon
The README is long, and most of it is the author answering questions you will have on your second shot. These are the ones I would read first.
Prefer Alembic over FBX for outside cameras. FBX conventions differ between programs. The README's example: a Blender FBX camera arrives in Nuke in centimeters and turned 90 degrees. With FBX, check that the camera lines up with the plate before you build. A camera and point cloud written by Blender as Alembic read back exactly.
No point cloud? It can make a small one. Without tracker points, the gizmo matches features between the reference frame and another frame of the plate, then uses your tracked camera to place them in 3D. It needs real camera movement between those two frames and at least 30 matched points; otherwise it only solves the scale. The README is honest that locators from the tracking team, or NukeX's PointCloudGenerator, are still better, because they come from the whole sequence rather than two frames.
No tracked camera at all? Give it the lens. For a single still or a locked-off shot, set the focal length and film back width if you know them. The depth model's own guess at the lens is about 10 to 20 percent off, per the README. Setting a camera height, like 1.6 meters, puts the scene in real-world units.
Anamorphic and other non-square pixels are handled. Plates like DVCPRO HD or anamorphic are stretched to square pixels before they go to ComfyUI, and the camera math uses the display aspect. You do not need to pre-squeeze anything.
Where it breaks
The geometry comes from one frame. Extra frames add paint, not shape. Anything the reference frame got wrong stays wrong.
Backgrounds slide. Trees, hills and anything treated as a far card always slide some, and the README says so. Use the relief option or the optional Gaussian splat there.
Labels matter more than you would think. Without labels the gizmo guesses from shape alone, and on a real interior the author's test took a dining table for the floor. Spend the minute on the label list.
Furniture fits loosely. A chair or table fitted as a box fills the space between its legs. The silhouette check flags those as loose fits. Relief does better.
The splat step is research-only. The optional Gaussian splat uses Apple's SHARP model, whose weights are for research and non-commercial use. It also needs Nuke 17.1 and the USD system.
Check every model license before client work. The gizmo is MIT, but it runs MoGe 2 from Microsoft, SAM 3 under Meta's SAM License, and optionally Pixal3D, each with its own terms. The README lists them. Read them before you bill for a shot.
It is version 0.9.0 with a long dependency chain. ComfyUI, a node pack pinned to a tested version, Blender and Nuke all have to agree. One of them will update and break something at some point. Budget an hour for setup, not ten minutes.
The measuring tool, not the painter
There is a version of AI in visual effects that keeps promising to fix the shot for you, and every compositor who has tried it knows how that goes. DBS_SceneProjection is the other version. It does the measuring that used to eat the first hour of a cleanup, gives you numbers you can check, and then gets out of the way so the plate stays the plate.
If you have a tracked shot sitting in a folder, build one projection with it this week. The slide numbers will tell you in one build whether it belongs in your toolkit.
- Sources: DBS_SceneProjection on GitHub · ComfyUI-RMBG · MoGe · SAM 3 license · Apple SHARP · Nuke Non-commercial