CAD to Cinema: A Self-Healing Multi-Engine Film Pipeline
Turning a 3D CAD blockout into a three-minute architectural film usually forces an ugly trade-off. Pure 3D path-tracing nails the engineering geometry but takes days to look photographed. Pure generative video looks lush for three seconds and then invents a second building, bends the road network, or spawns an excavator on top of a roof.
We stopped asking one model to do both jobs. Instead, we built a self-healing multi-engine production pipeline inside Media Forge and Iris — where a deterministic 3D world engine owns the geometry, multiple video models compete on real shots before a dollar is committed, and an adversarial full-video critic catches and repairs transient glitches automatically.
On our 17-phase, three-minute 1080p24 architectural construction benchmark, that pipeline cut full-film generation cost roughly in half — from ~$50 down to ~$27 in 22 to 35 minutes, with surgical three-step revisions landing in ~10 minutes for ~$4.
Benchmark first, route second: the Multi-Engine Happy Mix
Before rendering a full sequence, we ran five distinct approaches head-to-head on the exact same establishing shot of a multi-building civil engineering site:
- Raw CAD into an interactive world model (
Genie 4): fast and steerable, but low-poly placeholder geometry poisons the world prior. Every primitive sphere tree came back as a glossy plastic lollipop; flat grey blocks stayed flat grey blocks. - Unanchored video-to-video restyling: crisp texture, wrong site. Without pixel-level structural anchoring, the model drifted away from the CAD footprint within two seconds.
- Photoreal-seeded 6-second world glides (
Genie 4seeded from a 2K anchor still): works brilliantly for calm interior walkthroughs and short lateral glides (5.5–6.0s, lateralkey_a/key_donly). Push forward (key_w) past eight seconds over a dense exterior, however, and world models start tiling duplicate landmarks. - Same-camera-locked 2K First-Last-Frame (
FLF) transitions: the workhorse for construction phasing. When the start and end keyframes share an identical locked camera, lighting, foliage, and parked-car plate — with ONLY the active construction zone edited between them — the video model has nowhere to drift. Mid-clip camera jump cuts, lighting snaps, and teleporting background vehicles become mathematically impossible. - The opening "transform before your eyes" wave: seeding Frame 1 with the raw 3D CAD blockout and the final frame with its exact 2K photoreal counterpart lets the model sweep a luminous materialization wave left-to-right across the entire site in a single unbroken shot.
Each step in a 17-phase plan now routes automatically to the engine that fits its motion physics instead of forcing one model across the whole timeline.
Upgrading the 3D world engine itself at $0
Better video routing only gets you halfway if the upstream 3D geometry feeds bad priors into every keyframe. Rather than paying an image model to hallucinate over crude assets forever, we upgraded the deterministic 3D world compiler itself at zero marginal API cost:
- Clustered alpha-card foliage: replacing 16,000+ low-poly sphere trees with layered cross-card canopies eliminated the "lollipop tree" artifact at the source while cutting vegetation triangle count by 35%.
- Native
7.6 cm/pxpublic aerial ortho + derived PBR relief: instead of flat procedural ground textures, the compiler bakes high-resolution public ortho tiles with derived tangent-space normal and ORM maps straight onto the terrain mesh. - Hybrid LiDAR CHM roof heights: surrounding urban blocks within 400 meters pull real canopy-height-model elevations instead of uniform extrusions, grounding every wide aerial angle in real massing before a single generative call runs.
Why four QA screenshots miss 98.3% of your film
Our first autonomous critic checked four evenly spaced frames per 10-second clip (t=25%, 50%, 75%, 95%). That caught gross end-state failures immediately — a demolished building snapping back, a duplicated landmark, garbled facade lettering — and saved us from shipping broken cuts.
It still missed 236 out of 240 frames per clip.
When we upgraded Media Forge to explode every clip through its native extract_frames + visual_diff discontinuity detector and feed continuous 3.0 fps MP4 streams to a full-video temporal critic across all 17 clips (total audit cost: $0.29), it surfaced 65 transient anomalies (19 CRITICAL, 32 MODERATE, 14 MINOR) that four static stills had walked right past:
- Hard mid-clip camera cuts where mismatched start/end keyframes forced an abrupt angle jump at
t=4.76s. - Construction equipment hallucinated onto a foreground roof for two seconds (
t=0–3s) before vanishing. - Vehicles popping into existence mid-lane at
t=4.50sand background structures morphing under long forward camera moves.
Every finding turned straight into a permanent rule in production_rules.json — now nine codified laws inherited automatically by every future film:
- Zero
setptsvideo stretch (R7): stretching a 10-second clip withsetpts=1.18*PTSto fit a slightly longer voiceover silently injected16.81%near-duplicate stutter frames. Locking every clip to exact1.000xnative24.0 fpsand fitting longer narration exclusively via pitch-preserved audioatempo <= 1.15xdropped duplicate frames to0.0%across the entire master. - Strict SDR
bt709/tvdelivery (R5): mixedsmpte170mmatrix andiec61966-2-1transfer tags silently blow out daylight highlights in browser and chat players. Our$0pre-flight guard rejects any mixed-tag MP4 before upload and enforcesyuv420p(tv, bt709)with highlight roll-off (p99.5 <= 245). - Top-12% HUD safe zone (
R6): phase badges and progress bars live in the top-left and top-right corners — never the lower 12%, where web video scrubbers collide with captions. - Same-camera-locked keyframe derivation (
R8): start and end plates are derived from one locked anchor image, never two independent camera renders. - Full-video promotion gate (
R9): no repaired clip overwrites its backup unless the full-video temporal critic proves itsCRITICALglitch count strictly dropped. If a retry stalls or regresses, the backup stays intact and Iris raises a nativeawdecideDecision Card with a 4-frame evidence strip and three one-click calls (keep,switch_engine,reshoot_with_note).
Running the same self-healing loop locally at $0 on one RTX 5090
Paying $0.29 for a cloud full-video audit is already cheap, but a studio pipeline should never depend on an external API key just to inspect its own renders.
We wired the exact same three-stage QA and repair-routing pipeline to run 100% locally at $0 over Media Forge's native ops and our MicroScheduler:
- Stage 0 (
$0deterministic guards):validate_sdr_bt709,check_duplicate_frame_stutter,processing.video.extract_frames,video.frame_reviewcontact sheets, andvisual_diffgrid MAD/SSIM discontinuity spikes with automatic 1:1 zoomed crops around every localized bounding-box anomaly. - Stage 1 (
$0local multimodal vision critic): OpenAI-compatible multimodal inspection over the exploded contact sheet + zoomed anomaly crops — built forGemma 4 12Band running live today onTernary-Bonsai-2.5-27B(PQ2_0+mmproj-Q8_0) andBonsai-4Bon a single local RTX 5090. - Stage 2 (
$0local structured fix-router):Bonsai 2.5ingests Stage 0 telemetry, Stage 1 timestamped glitches, andproduction_rules.jsonto emit the cheapest canonical Media Forge repair op (happy_mix_audit_cut$0remux,qa_cliplocalized region paste,edit_segment[start, end]splice,happy_mix_run_step_autonomoussame-camera FLF re-roll, orawdecideescalation) — with a deterministic fallback if a local model ever emits malformed JSON.
Measured end-to-end on a real 10-second 1080p24 clip on a single RTX 5090, the full three-stage local loop completes in 38–68 seconds per clip (down to ~13.3s of LLM inference on the 4B tier and 49.1s across both multimodal stages on 27B once structured JSON mode disables unbounded reasoning monologues) — at exactly $0.00 marginal cost.
The numbers
| Metric | Single-engine manual run | Self-healing Happy Mix pipeline |
|---|---|---|
| 17-phase 1080p24 film (~3 min) | ~$50, manual retries | ~$27, ~22–35 min end-to-end |
| Surgical 3-step revision | full re-cut or manual splice | ~$4, ~10 min, cached neighbors untouched |
| 3D foliage triangle budget | 16,000+ low-poly spheres | -35% triangles with alpha-card canopies ($0) |
| Frame-rate cadence stutter | 16.81% near-dupes (setpts stretch) | 0.0% near-dupes (1.000x native + atempo) |
| Full-video 17-clip glitch audit | 4 static PNGs (missed 65 glitches) | $0.29 cloud / $0.00 local (38–68s/clip) |
| Regression protection | manual eyeballs | Strict promotion gate + automatic backup + awdecide |
Why this compounds
The point of building nine production laws, a budget circuit breaker, and a full-video promotion gate into the director loop is not to fix one film. It is that film number two starts with every scar from film number one already compiled into code.
No agent will ever stretch video frames with setpts again. No agent will send two mismatched camera angles into a first-last-frame model again. No broken highlight tag will ever reach a client player again. Iris directs, Media Forge verifies every frame, and the whole loop heals itself before a human ever has to scrub a timeline.
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.