Code Video Model: coding agent writes Three.js previs, frozen video model renders the final shot

lmoroney · x · 2026-10-14

A research team released Code Video Model, tackling AI video's inability to follow exact camera moves and real physics. Borrowing from film production: a coding agent writes a Three.js program that lays out the scene, places the camera, and computes motion from equations; rendering it yields a low-poly preview in under a minute ("executable previs").

A frozen video model (MiniMax-H3) then converts the preview plus a reference image into the final clip, with no retraining. Since the video model tended to copy the flat look of the preview, it only attends to the preview during early sampling steps when structure is set. Code is on GitHub under Apache 2.0, and the 22-case CodeVideoBench is on Hugging Face.

Practical takeaway: block out your AI shots with simple shapes and a camera path first, lock the motion before spending a single generation on the look.

Related event: Microsoft Open-Sources Code Video Model: Code-Driven Previs for Controllable Video Generation(5 posts)→

Original post →

More from coding & agent

coding & agent channel →