The Engine Is the Camera: Why We Stopped Generating Shots
We make three kinds of film: a construction-sequence film for a customer's building project, music videos where agents perform a song, and narrated explainers. A year ago the obvious tool for all three was a video model: write a prompt, get a clip. We still own those models and we still run them. What we stopped doing is asking them for the shot itself.
The reason is not quality. It is that a generated clip is a dead end. You cannot move its camera, you cannot change step 6 without re-rolling steps 1 through 17, and you cannot ask it to keep the same character in the next shot. A game engine gives you all three, because what it holds is a scene, not pixels. Add agents that act and a director that judges, and the engine becomes the production.
The core problem, measured
Our character pipeline (.claude/skills/character-forge/SKILL.md) opens with what we call
the Core Law: independent text-to-image renders cannot reproduce a specific character. We
locked a character "spine" (IPAdapter face references plus a fixed seed) and called the
render endpoint three times in a row. We got a pink mouse, a different white rabbit and a
two-character bow-thing. None was the target character.
The spine loosely conditions the diffusion; it does not pin identity. That skill lists exactly four sources of consistency, and every one of them works by not generating a new image from scratch: animate one approved still (image-to-video keeps the body's pixels and warps them), inpaint one region of a good frame, edit from numbered references, or train a LoRA so the model learns the character. Every fix is a way to stop generating.
An engine does not have this problem. The character is a rigged body. Shot 40 uses the same mesh as shot 1.
Generated shot vs engine shot
| property | prompt-to-video clip | engine scene + agents + director | where we measured it |
|---|---|---|---|
| character stays on-model | no: three calls on one locked spine, three different characters | the same rigged body in every shot | character-forge skill, Core Law |
| change one step | re-roll the clip | re-render only the frame ranges that changed; unchanged frames are hard-linked | construction-film skill, film_render |
| move the camera after the fact | impossible, the camera is baked into pixels | edit a camera path or rail key and render again | dark-matters engine/tools/mvShot.mjs, Scene Studio scene.doc.json |
| real geography | an impression of a place | OSM footprints extruded around the site, NAIP aerial draped under it | iris-world skill, world_from_sources.py stages |
| determinism | a seed, and a different result on a different stack | lockstep export, t = i / fps, every frame of every pass written or exit 1 | mvShot.mjs header |
| text on screen | the model invents letters | text never goes through a generative model; labels are restored from the engine frame | construction-film skill, Traps |
| cost per shot | about 5 GPU-minutes per 81-frame clip (Wan 2.2 i2v, 4-step LoRA, on the 5090); 30-40 min at 20 steps | authoring time: geometry, rigs, clips, camera; then cheap re-renders | iris-song skill, step 6 |
The last row is the honest one. A generated shot is cheap to make once and expensive to change. An engine shot is expensive to set up and cheap to change. Films are mostly change.
Mechanism 1: a world from real sources
iris-world builds a DarkMatter world pack from a site's real sources. One tool does it
(dark-matters tools/worlds/world_from_sources.py, wrapped by the Media Forge op
world_from_sources), and every stage writes a manifest entry under the contract
darkmatter.world/1:
georeference -> place_focus -> fetch_aerial (USGS NAIP, public domain)
-> fetch_footprints (OSM, ODbL) -> extrude_massing -> drape_aerial
-> write_world (surroundings.glb + film.json) -> camera_rigs (cameras/rigs.json)
-> reference_layers
The output is not a picture of the site. It is a place you can stand a camera in. Each rig in
cameras/rigs.json becomes a shot with window.__sceneStudio.addShot({ t, name, camera })
and exportScene. If we want the crane shot lower, we edit one rig and export again.
The edge, stated plainly in the skill: drawings and photos are reference layers only. Each
carries geometry: {status: "pending"}. Nothing turns a drawing into geometry yet, and we do
not caption a world as built from them. The surroundings are extruded footprints: correct
in plan, plain in elevation.
Mechanism 2: script in, only the changed steps out
The construction film (.claude/skills/construction-film/SKILL.md) is where re-rendering
only what changed stops being a nice idea and becomes the schedule. A script upload is
parsed into steps and diffed against the accepted script:
film_upload_script(file) -> PENDING proposal with changed_steps + per-step actions
(model | narration | revoice | no_vo | lexicon)
film_plan_steps() -> render_steps = only steps whose frames change
film_steer(approve) -> those steps go stale, nothing else does
film_render(steps=stale) -> next proof; unchanged frames hard-linked
film_preview(step) -> one mp4 per step for the customer to approve or comment on
film_comment_step(step, t) -> that step alone re-renders
Narration follows the same rule: one verified take per step, keyed by a sha256 of its text, voice and sign-off. Editing a step re-voices that step alone. When the film moved onto per-step narration, 15 earlier takes were seeded from the old long track with no re-synthesis, and the two steps the script leaves silent stayed silent.
Before a render, the plan step checks the whole script against the scene's phase map and asks instead of guessing: a named element the scene lacks, a fuzzy match under 0.8, or a step order the scene cannot follow each raise a question with two or three scene options, and approval answers 409 until every one is answered. A video model would just draw something.
Renders are split into plain ~48-frame ranges and filed as one queue item per range, weighted per host, each writing a manifest with a sha256 per frame. A frame range is the unit of work, of caching and of proof.
Mechanism 3: agents act, a director cuts
The music-video stage (.claude/skills/iris-song/SKILL.md, rendered by dark-matters
engine/tools/mvShot.mjs) is where "agents" stops being a metaphor:
- Iris writes
scene.json: the song slice, one lyric per bar, actors, per-bar beats, and one enforced interaction (actoramust face actorbat that bar, or the plan is rejected). - One actor agent per body turns beats into calls from the engine's clip library. Turning
is a
facingentry, never a clip. - A camera operator makes one model call per bar: cut, scale, subject, move, angle. Cuts snap to the nearest vocal onset within a quarter beat.
- The engine renders it headless, with the singer's mouth driven by a viseme track.
- Iris judges every shot from three frames against its bar's intent. Weak shots go back to the camera operator with her notes, and only those segments re-render.
That last step is the mechanism we care most about. mvPipe.mjs streams raw RGBA frames
straight into one ffmpeg per segment and forces a keyframe at every segment start:
// dark-matters engine/tools/mvPipe.mjs
return ["-f", "rawvideo", "-pix_fmt", "rgba", "-s", `${w}x${h}`, "-r", String(fps), "-i", "pipe:0",
...ENCODERS[enc](crf), "-g", String(Math.max(1, Math.round(fps * 2))), "-an", "-movflags", "+faststart", dst];
Hard cuts sit on segment edges, so a retaken shot rewrites only its own seg_<from>.mp4 and
the final cut is a stream-copy concat. Swapping a performer is one changed actors[k].body
and a new tag; the performance is reused. Every render also writes the Scene Studio document,
so a person can open it, move a camera rail key, and render exactly that.
Where generation still earns its place
We did not delete the models. We moved them to the edges of the pipeline, where their output is either throwaway or conditioned on the engine:
- A style pass on engine frames. Media Forge's
darkmatterverb (app/mv_studio/darkmatter.py) renders a shot in the engine, then restyles every beauty frame with SDXL img2img under two ControlNets fed by the engine's own passes (openpose onpose/, depth ondepth/), an IPAdapter face lock and one fixed seed for every frame. The engine decides where everything is; the model only decides how it looks. - Concept stills and plates. Explainer films use generated background plates that Iris
scores and installs (
iris-filmskill), with no text or UI in generated imagery. - Characters before they have a rig.
character-forgeanimates one approved still with image-to-video to get 150+ on-model frames from about 20 motions, which seed a LoRA. - B-roll in music videos, keyframed first, then Wan 2.2 image-to-video, about 5 minutes a clip. A re-roll invalidates one shot, never the stage.
The rule across all four: a generated image is never the only source of truth for anything that has to persist across shots.
What the engine costs
The engine wins on consistency and editability. It loses on setup, and we pay that cost every time:
- Authoring. Construction steps are code (
build_site.py,steps_4_17.py,shots.jsonin the next proof), edited by an agent, and geometry no drawing supports is taggedAPPROX. - Assets. Character Creator content is local use only under its licence, and relearning
its automation cost about 24 hours before every trap went into code (
iris-cc5skill). - Bodies misbehave. Desk VRM spring chains fan out as spikes around the hands; merged
hair strands leave a shard on the floor. Each has a config fix now (
iris-songskill). - Renderers lie. Blender exits 0 on a Python traceback, so a step counts as rendered only
when
progress.jsonhas rc 0 and zero missing frames.
That is real work. It is also work you do once per scene, where a generated pipeline makes you pay per shot, per change, forever.
How we checked this post
Every number above is quoted from the file named next to it, and we re-read the code paths the post describes. We ran the segment pipe's own test on the day we wrote this:
$ node --test test/mvPipe.test.mjs # dark-matters engine/
✔ segments parse, sort and refuse overlaps or junk
✔ argv: raw rgba in, a keyframe at every segment start, odd sizes refused
✔ a raw segment encodes to an mp4 with exactly its frames
ℹ tests 3 pass 3 fail 0
The third test feeds synthetic frames through SegmentPipe and counts the encoded frames
with ffprobe, which is the property "only the retaken segment re-renders" rests on.
We left out claims we could not ground: end-to-end render times for a whole film, a cost comparison in dollars, and any statement about a model vendor's roadmap. When we have those numbers measured, they get their own post.
Keep the journal free
Sponsorship pays for the compute, the hardware and the hours behind these entries.
by email
New journal entries, in your inbox.
What the agents built, broke and fixed. One message per entry.