DominoPlanner

Making Physical Dynamics Programmable in Video Generation

Compute what can be computed. Generate what must be generated.
request →planner →
Meta Superintelligence Labs University of Rochester University of Southern California
University of Maryland, College Park Meta University of Central Florida

One planner, many tools. The inner ring plays what a code tool computes, the outer ring plays the video generated from it.

0.09 → 0.33
causal chain score
LTX-2.5 on DominoChainBench, more than 3×
0.44 → 0.62
PhyGenBench average
LTX-2.5, frozen, no retraining
0.52 → 0.75
VBench-2.0 Physics
LTX-2.5, mechanics, thermotics, material
11
code tools
solvers, simulators, scene programs, keyframes
100K
planner records
labeled by measured paired outcomes
84
benchmark tasks
7 causal structures with counterfactual twins

Physical reasoning becomes a policy over executable controls.

00 film

Watch the film: a co-op game of code and video.

P1, the planner, picks a code tool and computes the physics. P2, the video generator, renders the same events. A level clears only when both are right. Turn the sound on.

01 showcase

Every tool computes, the video model renders.

Each card pairs the output of one code tool with the video that DominoPlanner delivers from it. Solvers fix contact times, simulators compute fluids, scene programs fix geometry, optics and camera paths. The generator keeps the realism.

Chain reactionsEvery hand off happens on time. The inset shows the planner's program.
DominoPlanner
program
marble rolls→dominoes fall→spoon flips→sugar in cup
Kitchen A marble starts a row of dominoes, the last one flips a spoon, the spoon flings a sugar cube into an espresso cup.
DominoPlanner
program
ball in+marble in→lever lifts gate→car rolls→tower falls
Workbench Only when both balls are in the bucket does the lever tip: the bucket end sinks, the far end lifts a gate, and the car rolls into a block tower.
DominoPlanner
program
car drives→books topple→ruler flips→ball in cup
Study desk A clockwork car topples five books, the last book lands on a ruler, the ruler flips and launches a ping pong ball into a cup.
DominoPlanner
program
coconut rolls→line falls→left&right→bell rings&flag falls
Beach A coconut starts a line of dominoes that splits at a Y: the left branch rings a bell, the right branch knocks over a sandcastle flag.

Chains: hand picked from 3 seeds each.

Ten toolsOne case per tool.
Three.js output
DominoPlanner
Scene programsThree.js A wave rolls in and washes a sandcastle flat on the beach.
Blender line art output
DominoPlanner
Scene programsBlender line art An inline skater jumps at night and lands back on the path in a crouch.
Contact solver output
DominoPlanner
Physics solversContact solver A volleyball drops onto a gym floor and bounces lower each time until it settles.
Blender rigid body output
DominoPlanner
Scene programsBlender rigid body A hand tips the first domino and the row falls one after another.
Blender optics output
DominoPlanner
Scene programsBlender optics A glass marble rolls down a checkered board, bending the pattern seen through it.
Genesis output
DominoPlanner
Physics solversGenesis Tea pours from a glass teapot and fills a clear mug.
CadQuery output
DominoPlanner
Scene programsCadQuery Ice cubes on a ring of plates melt into shallow puddles of water.
Orbit renderer output
DominoPlanner
Scene programsOrbit renderer The camera circles a bonsai tree on a stone pedestal in a garden.
SVG output
DominoPlanner
2D programsSVG Red juice pours into an empty glass until it is nearly full.
HTML canvas output
DominoPlanner
2D programsHTML canvas A humpback whale glides past an aquarium window while steam rises beside it.
02 why plan with code

Four properties, one method that has all of them.

Controllable physical dynamics need exact timing, event dependencies, a realistic look and adaptivity in deciding what to compute. Prompt rewriting leaves timing to the generator. Motion conditioning cannot say that one event waits for another. Code rendering carries a synthetic look into the video. DominoPlanner learns what to compute and how to hand it over.

RequestOn an oak toy-shop window ledge, a brass spinning top rolls down a short groove into a red wooden notch, and a blue wooden cube slides into a separate tin notch. The top and cube remain lodged, each holding down one release tongue. When both tongues are down, a striped spring flag flips upward and knocks a purple toy soldier over.

Chain top presses tongue 1+ cube presses tongue 2→ latch opens, flag flips up→ flag knocks the soldier over
(a) Prompt rewriting
Request→LLM→rewritten text→Video model
✗ the top vanishes
flag flips
3.8 s ✗
TimingDependencyRealismAdaptivity

No timing given. The top never lodges, yet the flag moves.

(b) Motion conditioning
Request+paths of top and cube→Video model
input · paths of top and cube ✗ no “wait for both”
flag flips
3.6 s ✗
TimingDependencyRealismAdaptivity

Paths fix where things go, not that the flag waits for both.

(c) Code rendering
Request→LLM→Three.js→Video model
◐ synthetic look
flag flips
2.5 s ✓
TimingDependencyRealismAdaptivity

Exact timing and wait, but the render look carries over.

(d) DominoPlanner
Request→Planner→11 tools→Video model
✓ full chain, real scene
flag flips
2.4 s ✓
TimingDependencyRealismAdaptivity

Same program, real scene, real dynamics.

(b), (c): seed 0, fixed in advance. (d): hand picked from 4 clips, look wording tuned.

03 side by side

Same request, same seed, three ways.

The single model renders the request directly. The middle column shows what the chosen tool computed and how it is handed over. The right column is the video DominoPlanner delivers. Purple words mark the physics the request asks for.

RequestInside a jewellery display case, a purple glass bead rolls along a sloped shelf toward a copper rocker. The bead tips the rocker, and the rocker pushes a silver locking pin out of a display stand. Without the pin, a black velvet bracelet cylinder topples onto a felt pad.

Single model

✗ A copper ring replaces the rocker. The pin never moves, yet the cylinder tips over untouched.

Three.js program
three.js schedule (s)
bead_roll        0.50 to 1.55
rocker_tip       1.40 to 2.20
pin_slide        1.95 to 2.85
cylinder_topple  2.70 to 4.05
→ edge reference video
→ timeline in caption
DominoPlanner

✓ Bead rolls, rocker tips, pin slides out, cylinder topples onto the pad.

RequestA large black ball drops onto bowling pins arranged on a wooden platform, striking them and sending the pins scattering across the dirt.

Single model

✗ The ball sinks out of sight behind the pins and never comes back. The camera pans, and an unrequested ball rack stands beside them.

Blender rigid body sim
scene.py: ball dropped onto
a 7 pin cluster (rigid body)
→ timed caption:
0.00 to 1.25 s  ball falls
1.50 s          hits central pin
1.75 to 2.75 s  pins tumble out
DominoPlanner

✓ One fixed view. The ball drops into a gap, the pins tip outward and one slides off the platform.

RequestA light white table tennis ball is dropped from forty centimetres onto a varnished wooden desk. It springs back up many times in quick succession, the hops shrinking slowly and speeding up.

Single model

✗ An oversized dimpled ball makes a few slow, floaty hops.

Bounce simulator
{"kind":"drop", "material":"pingpong",
 "h0":0.4, "e":0.9}
→ first impact 0.29 s
→ rebound ×0.81 each hop
→ "twelve visible impacts"
DominoPlanner

✓ A small smooth ball makes many quick shrinking hops, 12 counted, 12 simulated.

RequestA spoonful of black acrylic is stirred into a puddle of yellow acrylic in a plastic tray until no streaks remain.

Single model

✗ Black and yellow streaks are still visible at the end.

Color solver
+→olive #6B6B1E, computed
{"kind":"paint_mix",
 "a":"yellow", "b":"black"}
→ olive #6B6B1E
→ full mix by 3.0 s
→ caption "turning the mixture
   olive by about 3 s"
DominoPlanner

✓ Stirred to a uniform olive with no streaks by the end.

RequestA granite lion sculpture guards a palace entrance as the camera moves through a full rotation, keeping the statue visible from start to finish.

Single model

✗ The image rolls in plane and the lion is only seen from the front.

Blender textured orbit
Blender orbit, 120 frames at 24 fps
subject image on orbit geometry
→ camera path reference video
→ caption: follow the camera
   motion of the reference
DominoPlanner

✓ The camera moves around the lion: front three quarter, side, rear.

Rows are selected examples, chosen to show each tool. Aggregate results are in Section 07.

04 method

Plan, execute, verify, hand off.

The planner predicts what the generator will likely get wrong, composes tools, writes a checkable specification of the expected events and selects the handoff channel. PhyHarness runs that decision without altering it, verifies the result and routes numbers to the caption, structure to a reference video and appearance to a first frame.

Method overview
πθ(x) → (g, r, σ, κ)

The planner

An anticipated failure g, an ordered tool route r, an event specification σ and handoff channels κ among caption, reference video, keyframes and reference image. An empty route sends the planner caption alone.

execute · verify · repair

PhyHarness

A fixed coder writes the programs. Code checks, a technical gate and verification against σ come before any pixel is generated, and each failed check drives a repair. Plans that still fail fall back to direct generation.

I · paired outcomes

PairSFT

Each tool path runs against direct generation on the same requests and seeds. A family takes a path only when it measurably beats direct generation.

Δf(p) = E[Y(vp) − Y(vdir)]
II · lazy rollouts

LazyRL

Every plan is verified by a solver in 0.5 s, against about 475 s for a complete rollout. Only a quarter of the plans pay for a video, and their delayed scores become chosen and rejected plans.

One request, many routes

The same request can go down many tool routes. For each route you see the program the coder wrote, what the tool computed from it, and the video the generator delivers once the tool output is handed over as a reference video or as caption facts.

RequestOn a sunlit marble kitchen counter, a glass marble rolls down a curved wooden track and strikes the first of a row of cream dominoes. The dominoes topple one after another and the last one drops onto the raised end of a wooden spoon balanced like a seesaw. The spoon flips and flings a sugar cube through the air into a white espresso cup.

1 · Code scene.py · 531 lines
→
2 · Blender render
→
3 · Final video
Handoffreference video of the tool output, plus a first frame and the request as caption.
1 · Code scene.py · 534 lines
→
2 · Blender render, cut and slowed by ffmpeg
→
3 · Final video
Handoffcaption facts read off the tool output:

Photorealistic slow-motion close-up on a sunlit white marble kitchen counter with soft grey veining, a pale wall behind, warm window light casting soft shadows. From left to right: a curved varnished wooden track sweeping down toward the front, a clear glass marble resting at its lower end, a long diagonal row of about ten cream dominoes with worn edges running back-right, a short gap, a wooden spoon balanced like a seesaw with its raised end facing the dominoes, a sugar cube on its bowl, and a white espresso cup farthest right. The moment lasts about 1.5 s of real time, shown at half speed. At 0 s the marble has just struck the left face of the first domino and stops beside the track. By 0.1 s the first domino tips rightward, away from the marble; each domino then falls onto the next in a steady wave moving right, about half down by 0.5 s and nearly all by 1.0 s. At about 1.3 s the last domino drops onto the spoon's raised end. Final state: the marble rests at the track's end, the dominoes lie overlapping in a slanted row, the last one on the spoon, and the sugar cube and cup are still in place.

1 · Code scene.js · 637 lines
→
2 · Three.js render
→
3 · Final video
Handoffreference video of the tool output, plus a first frame and the request as caption.
1 · Code scene.py · 533 lines
→
2 · Orbit render of the Blender scene
→
3 · Final video
Handoffcaption facts read off the tool output:

Photorealistic footage on a sunlit white marble kitchen counter with faint gray veining, against a pale backsplash wall. At far left, a curved varnished wooden track ends in a dip; a clear glass marble rests near its upper end. To its right, a straight row of about twelve cream dominoes, evenly spaced, leads right to a wooden spoon lying as a seesaw, its bowl raised and holding a sugar cube, and beyond it a white espresso cup. At 0.0s the marble rolls down the track, reaching the dip at 1.0s and striking the first domino from the left at 1.5s; that domino tips rightward and the chain falls left to right until about 2.75s. At 3.0s the last domino drops onto the spoon's raised end; the spoon flips, flinging the sugar cube in an arc that lands in the cup at 3.75s. Final: marble resting at the track's end, dominoes lying overlapped rightward, spoon tilted, cube inside the cup. Soft natural window light, gentle soft shadows. The camera starts high behind the track's left end looking down the row, then circles slowly counterclockwise to a low front-side view showing the full row and the cup's handle side.

1 · Code model.py · 56 lines
→
2 · CadQuery parts, rendered
→
3 · Final video
Handoffcaption facts read off the tool output:

Photorealistic footage on a sunlit white marble kitchen counter with soft grey veining, warm window light and soft natural shadows, from a fixed high three-quarter view. Layout from back-left to front-right in one straight line: a tall curved wooden track (a quarter-pipe ramp with visible grain and slight wear) with a clear glass marble resting at its top; at the ramp's foot, a row of eight evenly spaced cream dominoes standing upright, about one domino-thickness apart; a short gap; then a wooden spoon lying lengthwise on a small wooden fulcrum like a seesaw, its handle end raised toward the last domino and its bowl, holding one white sugar cube, down near a white ceramic espresso cup at the far right end. From 0.0 to 1.75 s the marble starts from rest and slowly begins rolling down the curve; the dominoes, spoon, sugar cube and cup stay completely still, untouched. Afterwards the marble reaches the bottom and strikes the first domino from the ramp side; the dominoes topple forward one after another toward the spoon; the last lands on the raised handle, the spoon flips and flings the sugar cube in an arc into the espresso cup, where it stays.

1 · Code scene.js · 523 lines
→
2 · SVG and Canvas animation
→
3 · Final video
Handoffcaption facts read off the tool output:

Photorealistic locked-off side view of a sunlit white marble kitchen counter with grey veining, warm beige tiled wall behind, soft diagonal window light and gentle shadows. Left to right: a tall curved varnished wooden track on thin wooden posts, its steep slope curving into a flat run at counter level; eight upright cream dominoes evenly spaced in a row; a wooden spoon balanced like a seesaw on a small wooden fulcrum, its handle end raised toward the dominoes and its bowl end down holding one white sugar cube; a white espresso cup on a saucer at far right. At 0.0s a clear glass marble starts at the track top and rolls down, reaching the flat bottom near 1.25s and tapping the first domino from the left. Dominoes topple rightward one after another from 1.3s to 3.1s. At 3.25s the last domino falls onto the raised handle; the spoon flips, the bowl swings up and flings the sugar cube in a high arc (peak near 3.75s) that drops into the espresso cup at about 4.25s. Final: marble resting at track bottom, dominoes lying flat in a row, spoon tilted bowl-up, sugar cube inside the cup.

RequestOn a workshop bench, a steel ball and a large glass marble roll down two separate wooden ramps and drop into a tin bucket hanging from the left end of a long wooden lever on a center pivot. The right end of the lever rests on a small wooden gate in front of a red toy car parked at the top of a slope. Only when both balls are in the bucket does the bucket end sink and the right end rise, lifting the gate; the car rolls down the slope and crashes into a tower of wooden blocks, which collapses.

1 · Code scene.py · 174 lines
→
2 · Blender render
→
3 · Final video
Handoffreference video of the tool output, plus a first frame and the request as caption.
1 · Code scene.py · 176 lines
→
2 · Line art of the Blender render
→
3 · Final video
Handoffreference video of the tool output, plus a first frame and the request as caption.
1 · Code scene.py · 177 lines
→
2 · Blender render, cut and slowed by ffmpeg
→
3 · Final video
Handoffcaption facts read off the tool output:

Photoreal slow-motion footage at half speed, about 1.5 s of real time, on a worn wooden workshop bench under soft window light with gentle shadows. Left to right: a steep pine ramp and a lower wooden ramp both end above a dented tin bucket hanging from the left end of a long, thin wooden lever on a center post pivot; the lever runs right to its right end, which rests on a small wooden gate in front of a red toy car parked atop a pale wooden platform whose slope descends toward the right, where a tower of wooden blocks waits. The steel ball already sits in the bucket. At the start, the large glass marble rolls off the ramp lip and drops into the bucket, landing by 0.4 s. At 0.5 s the bucket end begins to sink and the lever pivots, its right end rising; by 0.75 s the bucket rests low and the lever is steeply tilted. Around 1.1 s the rising right end lifts the gate clear, and at 1.3 s the red car starts rolling down the slope toward the blocks. Final frame: bucket down holding both balls, lever tilted up to the right, gate raised, car beginning its descent.

1 · Code model.py · 80 lines
→
2 · CadQuery parts, rendered
→
3 · Final video
Handoffcaption facts read off the tool output:

Photorealistic handheld-steady footage of a worn oak workshop bench in warm afternoon window light with soft shadows. At back left hangs a dented tin bucket from the left end of a long varnished wooden lever balanced on a central upright wooden pivot post; the lever runs diagonally toward the front right, where its tip rests on a small wooden gate in front of a red toy car sitting atop a raised wooden block slope. Two separate wooden ramps feed the bucket from behind. Far right at the back stands a tower of stacked natural wooden blocks. At 0.0s a polished steel ball rolls down its ramp and drops into the bucket around 0.5s; the bucket dips slightly but the lever holds. A large clear glass marble rolls down the second ramp and lands in the bucket at about 1.0s. From 1.0s to 1.5s the bucket sinks, the lever's right end rises and lifts the gate. At 1.5s the red car begins rolling down the slope toward the block tower, reaching it near the end and knocking the blocks over so the tower collapses and scatters. End: bucket low, gate raised, car resting among fallen blocks.

1 · Code scene.js · 780 lines
→
2 · SVG and Canvas animation
→
3 · Final video
Handoffcaption facts read off the tool output:

Photorealistic side-view footage of a sunlit wooden workshop bench before a pegboard wall with a hanging screwdriver. Left to right: two worn pine ramps on the far left, an upper steep one and a lower shallow one; a dented tin bucket hanging from the left end of a long oak lever on a central post pivot; the lever's right end resting on a small wooden gate in front of a glossy red toy car atop a wide wooden slope; a tall stacked tower of pale wooden blocks at the slope's foot, right. At 0.0s a large glass marble sits atop the lower ramp while a steel ball rolls down the upper ramp. At 1.0s the marble starts rolling; the steel ball drops into the bucket at 1.25s; the lever stays level. At 2.0s the glass marble drops in; the bucket end sinks and the right end rises over 2.0–2.75s, lifting the gate. The car rolls downhill from 2.75s, reaches the bench at 3.75s, and hits the tower at 4.0s; blocks topple rightward, scattering by 4.5s. Final: bucket low left holding both balls, lever tilted, car stopped near scattered blocks. Soft natural light, gentle shadows.

1 · Code scene.html · 458 lines
→
2 · HTML and CSS animation
→
3 · Final video
Handoffcaption facts read off the tool output:

Photorealistic close-up of a workshop bench against a dark pegboard wall, soft warm side light, gentle shadows. Left to right: a steep worn wooden ramp at top left holding a small polished steel ball; a tin bucket hanging from the left end of a long wooden lever balanced on a central wooden pivot post; above it a short wooden ramp rising to the right with a large clear glass marble at its upper right end; the lever's right end resting on a small wooden gate before a red toy car at the top of a wooden slope descending right; at far right a tall tower of stacked wooden blocks. At 0.0s the steel ball rolls down its ramp rightward, dropping into the bucket at 1.25s. At 0.75s the marble rolls left down its ramp and drops into the bucket at 2.0s. Only then, 2.0–2.75s, the bucket end sinks and the right end rises, lifting the gate. At 3.0s the car rolls down the slope, reaches the bottom at 3.75s and crashes into the tower at 4.0s; blocks tumble and scatter rightward until 4.75s. Final: bucket low with both balls, lever tilted, car stopped among scattered blocks.

RequestOn a wooden study desk, a wind-up toy car drives into the first of five standing hardcover books. The books topple one after another and the last one lands on the raised end of a ruler balanced on a pencil. The ruler snaps down and launches an orange ping pong ball, which arcs through the air and drops into a paper cup.

1 · Code scene.py · 409 lines
→
2 · Blender render
→
3 · Final video
Handoffreference video of the tool output, plus a first frame and the request as caption.
1 · Code scene.py · 411 lines
→
2 · Line art of the Blender render
→
3 · Final video
Handoffreference video of the tool output, plus a first frame and the request as caption.
1 · Code scene.py · 412 lines
→
2 · Blender render, cut and slowed by ffmpeg
→
3 · Final video
Handoffcaption facts read off the tool output:

Photorealistic slow-motion footage at half speed, covering about 1.5 s of real time, of a warm oak study desk with visible grain and wear, lit by soft window daylight with soft shadows. From left to right stand a small tin wind-up toy car, five hardcover books upright in a tight row with worn cloth spines, a wooden ruler balanced on a yellow pencil just right of the last book with its raised end under that book and an orange ping pong ball on its low end, and a white paper cup a short distance farther right. At 0.0 s the car has just bumped the first book from the left, and it tips rightward. Each book falls right onto the next in turn, and the last, still-standing book starts to tip only when it is struck, around 1.0 s. By 1.4 s the fifth book slams down on the raised end of the ruler. The ruler snaps over, and at 1.5 s the ball launches up and to the right. It arcs high and peaks near 2.0 s, then drops cleanly into the cup at about 2.6 s. At the end the books lie in an overlapping slanted row, the ruler rests tilted, the car sits still at the left, and the ball sits inside the cup.

1 · Code scene.py · 411 lines
→
2 · Orbit render of the Blender scene
→
3 · Final video
Handoffcaption facts read off the tool output:

Photorealistic footage on a worn oak study desk lit by soft window daylight with gentle shadows. Left to right in a straight line: a small red tin wind-up toy car, five tall hardcover books standing upright on edge, evenly spaced a palm-width apart, a wooden ruler balanced across a yellow pencil with its near end raised, an orange ping pong ball resting on the lowered end, and a white paper cup a short distance further right. At 0.0s the car rolls right; at about 1.25s it bumps the first book's left face. The books tip rightward one after another, each striking the next, until about 2.25s; at 2.4s the fifth book lands on the ruler's raised end. The ruler snaps down and flings the ball upward at 2.5s; it arcs high to the right and drops into the cup at about 3.1s, rattling inside. Final: the books lie overlapped in a slanted row, the ruler tilted under the last book, the car at the first book, the ball in the upright cup. The camera starts at a low front-left angle, slowly circles right around the desk front, rising, ending high at the right end looking back along the toppled row toward the cup.

1 · Code scene.js · 441 lines
→
2 · SVG and Canvas animation
→
3 · Final video
Handoffcaption facts read off the tool output:

Photorealistic side-view footage, static camera, of a worn oak study desk against a beige wall, soft warm window light, gentle shadows. Left to right: a small red tin wind-up toy car, then five standing hardcover books spaced evenly a few centimetres apart (dark red, blue, green, brown, purple, cream page edges), then a wooden yellow ruler balanced on a yellow pencil fulcrum, left end raised high and right end down, an orange ping pong ball resting on the low right end, then a white paper cup at far right. At 0.0s the car rolls right; at 0.8s it hits the red book, which tips rightward; each book falls into the next about every 0.4s (blue 1.3s, green 1.7s, brown 2.1s, purple 2.6s). At 3.0s the purple book lands on the raised left end of the ruler; the ruler snaps down, left end dropping and right end flipping up, launching the ball at 3.2s. The ball arcs high up and right, peaking near 3.6s, and drops into the cup at 4.3s. Final: car stopped left of the books, all five books lying overlapped flat rightward, ruler tilted left end down, ball inside the cup.

1 · Code scene.html · 427 lines
→
2 · HTML and CSS animation
→
3 · Final video
Handoffcaption facts read off the tool output:

Photorealistic footage, fixed side-on camera, of a worn oak study desk under warm window light with soft shadows. Left to right: a small red tin wind-up toy car, five standing hardcover books evenly spaced (navy, burgundy, green, purple, mustard cloth covers with scuffed corners), a wooden ruler balanced on a yellow pencil with its left end raised and an orange ping pong ball resting on its low right end, then a white paper cup with a blue stripe. At 0.0s the car rolls right, reaching the navy book at 1.0s; it tips rightward. Each book topples rightward into the next about every 0.3s: burgundy at 1.4s, green 1.9s, purple 2.1s, mustard 2.4s. The books lie overlapping in a slanted row by 3.0s, the mustard book landing on the ruler's raised left end. The ruler snaps down at 3.1s, flinging the ball up and right in a high arc peaking near 3.5s, descending past the cup's rim at 4.25s and dropping inside at 4.5s. Final: car stopped left of the books, books lying stacked flat, ruler tilted with right end raised, ball resting in the cup.

RequestOn wet sand at a beach at sunset, a coconut rolls down a small dune into the first domino of a line of painted wooden dominoes. At a Y junction the line splits into two branches: the left branch runs to a small brass bell hanging low from a short driftwood stand, its rim just above the sand, and the last domino falls against the bell itself so it swings; the right branch runs to a paper flag on a thin stick standing in the sand beside a sandcastle, and its last domino knocks the stick over.

1 · Code scene.py · 322 lines
→
2 · Blender render
→
3 · Final video
Handoffreference video of the tool output, plus a first frame and the request as caption.
1 · Code scene.py · 325 lines
→
2 · Blender render, cut and slowed by ffmpeg
→
3 · Final video
Handoffcaption facts read off the tool output:

Photorealistic slow-motion beach footage at sunset, shown at half speed (about 1.5 s of real time). Low-angle view across glistening wet sand: a small sand dune at left, its foot at frame center-left. A brown hairy coconut, just rolled off the dune, rests against the first of a straight line of about fifteen tall painted wooden dominoes, chipped and weathered, running left to right, evenly spaced, with long warm golden-hour shadows. Near the right end the line splits at a Y: the left branch leads to a small brass bell hanging low from a short driftwood stand, its rim just above the sand; the right branch leads to a paper flag on a thin stick beside a sandcastle. At 0.1 s the coconut nudges the first domino, which tips rightward, away from it; the coconut stops beside the dune. Each domino stays still until struck, then topples right onto the next, a steady wave sweeping toward the junction in about 1.4 s, the fallen pieces lying in an overlapping shingled row. At the end, the wave reaches the Y as the bell and flag still stand untouched. Fixed camera, natural soft light, real textures.

1 · Code scene.py · 324 lines
→
2 · Orbit render of the Blender scene
→
3 · Final video
Handoffcaption facts read off the tool output:

Photorealistic beach footage at sunset on wet, glistening sand with warm low golden light and long soft shadows. On the left, a small smooth sand dune; a brown fibrous coconut rests on its crest. To its right a straight line of about twenty painted wooden dominoes (chipped red, blue, yellow paint) runs right, then at a Y junction splits: one branch angles toward a small brass bell hanging low from a short weathered driftwood stand, rim just above the sand; the other branch angles toward a paper flag on a thin stick beside a small sandcastle. At 0.0s the coconut rolls down the dune, reaching the first domino at 1.5s, toppling it away from the dune. The wave travels right along the line, reaching the junction near 3.0s, then splits down both branches. At about 3.9s the last left domino falls against the bell, which swings and rings; at about 4.0s the last right domino knocks the flag stick over onto the sand. Final: all dominoes lie flat in a Y, coconut resting at the line start, bell gently swinging, flag lying by the sandcastle. Camera starts low front-right, slowly circles left and rises, ending high behind the junction looking back toward the dune.

1 · Code model.py · 135 lines
→
2 · CadQuery parts, rendered
→
3 · Final video
Handoffcaption facts read off the tool output:

Photorealistic golden-hour footage on wet, glossy beach sand at sunset, filmed from a high three-quarter angle with a static camera. At upper left, a hairy brown coconut rests on the rim of a shallow sandy hollow at the foot of a small dune. A straight line of about ten closely spaced painted wooden dominoes, chipped and sun-faded, runs diagonally down-right from the coconut to a Y junction. From the junction, one branch of about eight dominoes runs right to a small tarnished brass bell hanging low from a short driftwood stand, its rim just above the sand. The other branch of about six dominoes runs down toward a sandcastle, where a paper flag on a thin stick stands beside it. At 0.5 s the coconut rolls down-right off the dune into the first domino, and the line topples away from it in a wave, reaching the junction at about 1.1 s. The wave then splits. At about 1.6 s the last domino of the bell branch falls against the bell, which swings away. At about 1.7 s the last domino of the flag branch knocks the stick over, away from the line. Warm orange light, long soft shadows, damp sand texture.

1 · Code scene.js · 683 lines
→
2 · SVG and Canvas animation
→
3 · Final video
Handoffcaption facts read off the tool output:

Photorealistic beach at sunset, static side camera, low golden sun over calm sea, wet reflective sand, long soft shadows. Left: a small sand dune with a brown hairy coconut at its crest. A straight line of about ten painted wooden dominoes (red, teal, yellow, blue, purple, chipped paint, grain visible) runs right from the dune's foot to a Y junction near center. The upper-left branch angles back up-right to a small brass bell hanging low from a short driftwood stand, rim just above sand; the lower-right branch angles down-right to a paper flag on a thin stick beside a sandcastle. 0.0–1.25s: coconut rolls down the dune and stops after striking the first domino from the left. 1.5–3.0s: dominoes topple rightward in sequence, lying overlapped. 3.0s: wave splits at the junction. 3.25–4.0s: upper branch falls; at 4.0s its last domino leans against the bell, which swings. 3.5–4.6s: lower branch falls; at about 4.5s its last domino hits the stick, which tips right and lies flat by 4.75s. Final: coconut resting at line start, all dominoes fallen, bell swaying, flag down beside the intact sandcastle.

1 · Code scene.html · 792 lines
→
2 · HTML and CSS animation
→
3 · Final video
Handoffcaption facts read off the tool output:

Photorealistic beach at sunset, low orange sun on a purple sea, gentle foamy waves, glistening wet sand with soft long shadows. Left: a small sand dune with a hairy brown coconut on its crest. Right of the dune, a straight line of painted wooden dominoes (red, blue, yellow, green, orange, purple, chipped paint, wood grain) runs rightward to a Y junction. The left (upper, rear) branch climbs diagonally to a small brass bell hanging low from a short driftwood stand, rim just above the sand. The right (lower, front) branch angles down to a paper flag on a thin stick beside a sandcastle. At 0.0s the coconut starts rolling down the dune, reaching the flat at 1.0s. At 1.25s it hits the first domino, which tips rightward; the chain topples rightward, reaching the junction at about 3.0s. Both branches then fall simultaneously: at 4.25s the last left domino falls against the bell, which swings back and rings; at 4.75s the last right domino knocks the flag stick over toward the sandcastle. Final: coconut resting at the dune base, all dominoes lying flat, bell gently swinging, flag lying on the sand.

Six of thirteen routes per request, one seed each, picked by eye. Programs are shown as written, without the harness setup lines. The beach CadQuery program was revised by hand to add the motion its render was missing.

Eleven code tools in three groups

ToolComputesChannel
Physics simulators and solvers
MuJoCo contactContact times, rebound ratiosCaption, reference
GenesisFluids, granular media, soft bodiesReference
Thermal solverPhase change onset and progressCaption, keyframes
Color solverSubtractive mixing, flame colorsCaption, keyframes
Scene programs
BlenderRigid bodies, optics, camera pathsReference
CadQueryExact dimensionsThrough Blender
Three.jsReal time scenesReference
SVG and Canvas2D layout and countsKeyframes
HTML and CSS2D interfaces and textKeyframes
Orbit rendererMulti view geometryReference
Keyframe model
Keyframe modelFirst and last statesKeyframes
05 DominoPlanner-100K

Planner supervision from measured outcomes.

Requests come from the VideoPhy-2 train split and synthesized requests, filtered against every benchmark. They cover 11 physics families. A path is labeled only when paired videos show it beats direct generation, never from phrasing alone.

92Ksupervised planner records
11KRL prompts with verifiable quantities
11physics families
34routes executed in pairs
Dataset statistics

Single turn routes, planner tool decisions, tool calls per multi turn trajectory and physical families, over the 91,994 supervised records.

06 DominoChainBench

Does every link of the chain survive in the video?

84 tasks over seven causal structures: single collision, serial chain, fork, merge, cross material, pause and resume, and counterfactual twins whose chains must stop. Every causal link is scored through measurement questions that two judges answer.

Causal topology Causal conditions
Single CollisionEasy
marblechalktips over
QDoes the marble touch the chalk as it tips?
Ayes, touching
◐ 1/2 checks pass
Serial ChainHard
ballrockerplugwaterfloatarm
QWhat makes the float rise?
Athe water
◐ 4/5 checks pass
ForkMedium
marblescoopsandleft potright pot
QHow many sand streams start?
Atwo
✓ 4/4 checks pass
MergeHard
brown rowcream rowcrossbarricecup
QRows needed before the crossbar turns?
Aone is enough (OR)
◌ 0/4 checks pass (4 unscoreable)
Cross MaterialEasy
waterLIQUIDcup tipsSOLIDpin outsmokeGAS
QWhat makes the cup tip over?
Athe green water
◐ 2/3 checks pass
Pause and ResumeEasy
sliderpin upwaitsarmpin downresumes
QDoes the slider move while it waits?
Ano
◐ 1/2 checks pass
Counterfactual
Counterfactual twinsEasy
normal task · the rail is lowered
puckrail loweredboth tiles fall
QDoes the red tile tip over?
Ayes
◐ 2/4 checks pass
counterfactual twin · the rail is raised
puckrail raisedtiles must stay
QDoes the red tile tip over?
Ano, the chain must stop
✓ 5/5 checks pass, stopped as required

Same tasks, three ways

Single collision · EasyOn an art-studio worktable, a glass marble rolls across a smooth stone slab toward an upright stick of blue chalk. The chalk base is unfastened. The marble strikes the chalk and the chalk tips over.

Direct generation
Rendered program
Program reference → video
QDoes the marble touch the chalk as it tips? Ayes, touching

Event chainThe glass marble rolls across the smooth stone slab toward the blue chalk → The glass marble strikes the blue chalk → The blue chalk tips over

Serial chain · HardOn an aquarium exhibit table, a rubber ball rolls down a curved track and presses one end of a small rocker. The rocker turns and pushes a cork plug out of the bottom opening of a raised clear reservoir. Blue water flows from the reservoir into a narrow transparent tank containing a foam float beneath a signal arm. The foam float is untethered, so the incoming water raises it and it pushes the signal arm upward.

Direct generation
Rendered program
Program reference → video
QWhat makes the float rise? Athe water

Event chainThe rubber ball rolls down the curved track → The small rocker turns when the rubber ball presses it → The cork plug is pushed out of the reservoir opening → The blue water flows from the reservoir into the narrow tank → The foam float rises in the incoming water → The signal arm rotates upward when the foam float pushes it

Fork · MediumIn a tabletop gardening shed, a white marble faces a hinged scoop filled with dry tan sand. Below the scoop, a Y-shaped divider leads to a left flowerpot and a right flowerpot. The white marble rolls along a narrow shelf and strikes the hinged scoop. The scoop tips and pours the dry tan sand onto the divider. The sand splits into two streams, with one stream flowing into the left flowerpot and the other stream flowing into the right flowerpot.

Direct generation
Rendered program
Program reference → video
QHow many sand streams start? Atwo

Event chainThe white marble rolls along the narrow shelf → The hinged scoop tips → The dry tan sand pours from the scoop onto the Y-shaped divider → The left sand stream flows into the left flowerpot → The right sand stream flows into the right flowerpot

Merge · HardOn a bakery display table, a row of brown dominoes and a row of cream dominoes point toward opposite ends of a central crossbar. Both rows fall, touch the crossbar ends and remain fallen. A strike at either end turns the crossbar and opens a rice hopper. White rice pours into a hanging cup and remains in the cup until its weight rotates a release beam. The beam releases an orange wooden ball, which rolls to the end of a sloped track.

Direct generation
Rendered program
Program reference → video
QRows needed before the crossbar turns? Aone is enough

Event chainThe brown dominoes fall against one end of the crossbar → The cream dominoes fall against the other end of the crossbar → The central crossbar turns after a strike at either end → The rice hopper opens → The white rice pours into the hanging cup → The release beam rotates under the filled cup → The orange wooden ball rolls down the sloped track

Cross material · EasyOn a greenhouse workbench, green water flows from a narrow spout into a small tipping cup. The filled cup pivots downward and pulls the pin from a transparent smoke canister. Orange smoke fills the canister chamber.

Direct generation
Rendered program
Program reference → video
QWhat makes the cup tip over? Athe green water

Event chainThe green water flows from the narrow spout into the tipping cup → The tipping cup pivots downward → The canister pin is pulled from the transparent smoke canister → The orange smoke fills the canister chamber

Pause and resume · EasyA brass slider moves down a shallow rail and stops against a raised steel pin. At the same time, a weighted release arm swings toward the pin. The arm pulls the pin down, and the brass slider resumes moving to the end of the rail.

Direct generation
Rendered program
Program reference → video
QDoes the slider move while it waits? Ano

Event chainThe brass slider moves down the shallow rail → The weighted release arm swings toward the steel pin → The brass slider reaches and stops against the raised steel pin → The steel pin is pulled down by the weighted release arm → The brass slider resumes moving past the lowered pin to the end of the rail

07 results

Frozen generators, better physics.

DominoPlanner plugs into LTX-2.5, Wan2.1-VACE-1.3B and Wan2.1-VACE-14B without retraining. On DominoChainBench it more than triples the causal chain score of LTX-2.5 and reaches a realism of 4.13, against 2.02 for rendered programs.

DominoChainBench · causal chain score, chain depth, strict pass, realism
MethodCCS ↑Depth ↑Strict ↑Realism ↑
Wan2.1-T2V-14B0.0617.61/843.55
CogVideoX-5B0.019.20/843.86
HunyuanVideo0.006.50/844.09
PhyT2V0.1125.23/844.31
PhyGDPO0.0923.81/844.02
CausalMotion0.1123.90/843.46
Code Video Model0.2646.33/843.03
NEWTON0.1224.73/843.60
PhyEvolve0.1533.12/844.58
LTX-2.50.0922.71.5/844.22
+ DominoPlanner0.33+.2446.88.5/844.13
Wan2.1-VACE-1.3B0.0212.00/843.30
+ DominoPlanner0.30+.2845.210/844.05
Wan2.1-VACE-14B0.0619.81/843.29
+ DominoPlanner0.31+.2545.38/843.92
PhyGenBench · mechanics, optics, thermal, material
MethodMech.Opt.Ther.Mat.Avg. ↑
Wan2.1-T2V-14B0.430.680.460.420.51
CogVideoX-5B0.390.550.400.420.45
Gen-30.450.570.490.510.51
LTX-Video-2B0.510.580.480.450.51
PhyT2V0.450.550.430.530.50
VideoDPO0.480.600.470.580.54
DiffPhy0.530.590.580.460.54
PhyGDPO0.550.600.580.470.55
NEWTON0.500.650.520.540.56
VideoCoCo0.560.610.510.530.56
LTX-2.50.410.530.400.390.44
+ DominoPlanner0.550.690.640.590.62+.18
Wan2.1-VACE-1.3B0.490.610.440.370.49
+ DominoPlanner0.460.640.520.500.54+.05
Wan2.1-VACE-14B0.460.650.380.380.48
+ DominoPlanner0.510.690.540.530.58+.10
VBench-2.0 Physics · mechanics, thermotics, material
MethodMech.Ther.Mat.Avg. ↑
HunyuanVideo0.760.570.640.66
CogVideoX-1.50.810.670.830.77
Wan2.1-T2V-14B0.540.510.350.47
LTX-2.50.580.470.500.52
+ DominoPlanner0.760.720.760.75+.23
Wan2.1-VACE-1.3B0.520.510.330.45
+ DominoPlanner0.590.640.660.63+.18
Wan2.1-VACE-14B0.550.460.370.46
+ DominoPlanner0.750.640.620.67+.21
VideoPhy-2 · joint pass rate, hard subset
MethodJoint ↑Hard ↑
NEWTON (judge verified, 5 replans)29.6612.22
LTX-2.525.764.44
+ DominoPlanner29.498.89+4.45
Wan2.1-VACE-1.3B22.715.00
+ DominoPlanner26.276.11+1.11
Wan2.1-VACE-14B23.903.89
+ DominoPlanner27.637.22+3.33
09 citation

Cite DominoPlanner

Jinfa Huang, Yusheng Xie, Yipeng Gao, Junzhe Sun, Tianyi Xiong, Chenxi Liu, Tan Wang, Quanzeng You, Mubarak Shah, Ali Thabet, and Jiebo Luo. DominoPlanner: Making Physical Dynamics Programmable in Video Generation. 2026. arXiv:2612.02403.

@misc{huang2026dominoplanner, title = {DominoPlanner: Making Physical Dynamics Programmable in Video Generation}, author = {Jinfa Huang and Yusheng Xie and Yipeng Gao and Junzhe Sun and Tianyi Xiong and Chenxi Liu and Tan Wang and Quanzeng You and Mubarak Shah and Ali Thabet and Jiebo Luo}, year = {2026}, eprint = {2612.02403}, archivePrefix = {arXiv}, primaryClass = {cs.CV}, url = {https://arxiv.org/abs/2612.02403} }