The World, Engineered
AI video

Same Prompt, 8 Tries, 8 Misses: How We Designed the Folding Paris Street Instead (Blocking Code and Prompts Included)

The folding Paris street, final

As promised in the video, here is how we made the 63-second scene: our own recreation of the folding Paris street from "Inception". It includes the 3D blocking code, the character sheets and the prompts for all 16 shots, and you can download everything at the bottom.

▶ Video: YouTube link

In short

  • We fed the model one sentence, eight times. All eight flew up into the sky to look down on some unfamiliar city. The walking couple appeared 0 times, the folding city 0 times.
  • So we gave it three blueprints as well: 3D blocking (space and camera), character sheets (faces and costumes) and a shot script (acting and lines).
  • That is how we made 16 shots, at a little over two takes per shot, tests included.

1. One sentence, eight tries

First we tried without any blueprint. Same video model (MiniMax H3), no pictures, no blocking, just this one sentence, eight times with different seeds.

A man and a woman walk down a Paris street, and the city behind them folds into the sky.

The last frame of each of the eight takes from the same sentence The last frame of each of the eight takes. Every one is a city seen from the sky.

What we counted Out of eight
Flew up and looked down on a city 8 (three started at street level, then took off)
A man and a woman walking 0
The city folding 0
Only the frame edges bent, like a fisheye lens 3

Faces behave the same way. We entered "Paris street, man in his thirties, wearing a coat" three times and got three different men. The background was not Paris either.

Same sentence three times, three different men

Why does this happen? There is no 3D space inside a video generation model. It starts from a frame full of noise and keeps asking, "for a video that fits this sentence, what color is this spot most likely?", sketching every frame at once, a little at a time. A sentence does not set the camera height. It does not say where the two people stand, which way the city folds or by how many degrees, or what the faces look like. Everything left open, the model fills in by probability. That is why you end up re-rolling dozens of times.

2. Three blueprints

We decided to pin down the open parts one by one.

What to pin down Blueprint What goes into the model
Space, camera, positions, timing 3D blocking A short video of a grey box city and moving mannequins
Face, hair, costume Character sheet One face drawn from four angles + a face close-up
Acting, lines, sound Shot script Text (the prompt) split by the second

MiniMax H3 takes several pictures and one video along with the text. In the text you refer to them by name, like <Picture 1> or <Video 1>.

3. 3D blocking: space and camera as numbers

Blocking (left) and final (right), the shot where the city folds Left: blocking. Right: final. The same moment of the same shot.

Blocking is what a film crew does before shooting: setting the actors' positions and the camera's path. We did it in three.js (a 3D library for the web browser).

  • One set: one Paris-style street, the city blocks around it, and one folding section. Pale grey box buildings with a thin balcony slab on every floor and a mansard roof and chimneys on every roof. No windows, textures or lettering, on purpose.
  • Two people: capsule-shaped mannequins. The woman is dark red, the man is charcoal grey, and a small nose bump on the head shows where each one is looking. These colors later become the name tags in the text that tell the model who is who.
  • Numbers for every shot: camera position, direction and field of view, both people's positions and walking speed, and the fold angle, all over time.

Blocking and final: front two-shot Blocking and final: the city hanging overhead Blocking and final: the street from straight above

Here is the key shot (11.76 seconds, the whole city folding up and over their heads) side by side.

(Where video is not supported, use the GIF.)

How the city folds

From the end of the street (the hinge), we cut the city into eight 20 m strips and turn each strip a little around its front edge, so that together they fold from 0° to 180°. We computed the limit of infinitely thin strips: an arc that turns by the same amount every metre. That way the buildings bend along the street instead of tearing. At 180°, the far city hangs upside down about 102 m (= 2 × 160 m ÷ π) above the street and continues over the two people's heads.

// Move a point (x, y, z) beyond the hinge Z0 to its folded place. s = distance from the hinge, ARC = bending length (8 x 20 m), th = fold angle
const k = th / ARC, Rr = 1 / k;                       // radius of the bending part
if (s < ARC) {                                         // bending part: follow the arc
  const p = s * k;
  y2 = Rr * (1 - Math.cos(p)) + y * Math.cos(p);
  z2 = Z0 - (Rr - y) * Math.sin(p);
} else {                                               // past the bend: straight at the last angle
  const r = s - ARC;
  y2 = Rr * (1 - Math.cos(th)) + r * Math.sin(th) + y * Math.cos(th);
  z2 = Z0 - Rr * Math.sin(th) - r * Math.cos(th) + y * Math.sin(th);
}

A shot is just a few lines of numbers over time (0 to 1). The key shot looks like this.

K05: {   // from behind -> the whole far city folds up and over their heads -> looking straight up
  th:  mono([[0, 45], [0.35, 118], [0.62, 177], [0.72, 180], [1, 180]]),   // fold angle (degrees)
  pitch: mono([[0, 2], [0.35, 12], [0.65, 66], [0.93, 90], [1, 90]]),     // camera tilt up (degrees)
  fov: 46,                                                                // field of view
  // woman (red) on the right, man (grey) on the left, both walking at 1.25 m/s
}

Run it yourself

In the downloaded kit, run this in the blocking folder, then open http://localhost:8000 in your browser. All you need is Python.

cd blocking
python -m http.server 8000
  • Pick a shot (K00 to K14) with the buttons at the top, and scrub time with the slider at the bottom.
  • "Record this shot" saves the shot from start to end as an MP4. That file is the blocking video you give the video model (<Video 1>).
  • To match your model's input size, add something like ?w=1920&h=1080 to the address (latest Chrome or Edge).

The published code is a single-file rewrite so anyone can run it. It has the scene's nine key shots. For the other shots, add one camera line to the same set.

4. Character sheets: faces and costumes as pictures

Character sheet of the woman Character sheet of the man

Each person gets two pictures.

  1. Sheet: one picture with the same face and costume from four angles (face close-up, front, three-quarter, side). It keeps hair and clothes steady even in shots from behind or from the side.
  2. Face close-up: just the face, large. Pictures are scaled down on the way into the model, so a face that fills the frame keeps more skin, eye and brow detail.
Her face His face
Face close-up of the woman Face close-up of the man

Then the first lines of the text nail down the face reference.

<Subject 1> is the young woman shown in <Picture 1> and <Picture 2>: long wavy auburn hair, a dark red jacket over
a cream blouse, a grey patterned scarf and dark trousers. Her face stays identical to <Picture 2> in every frame.

※ Both characters are AI-generated, not real people.

5. Shot script: acting and lines by the second

The text has six parts.

  1. subject_definitions: who is who, and which picture is the face reference
  2. summary: how many seconds, and what the shot is
  3. retention_analysis: what to keep from the pictures and the video, and what to drop
  4. detailed_description: the look of the image, what the characters feel, the scene, and acting and lines by the second
  5. overall_soundscape: what you hear
  6. non_diegetic_music: background music ("No music", since the score is added in the edit)

The most important line says how to use the blocking video.

<Video 1>: motion_only - only the camera framing, camera movement, positions of the people, body motion and timing are used;
its flat mannequins, plain grey materials and simple background must not appear in the target video.

It means: drop the look of the grey boxes and mannequins, and keep only the camera and the motion. Without this line, the grey boxes stay on screen.

Shots with lines split the facial acting by the second. Here is the acting part of the first shot (A00). The characters speak Korean in the film; her line means "So... what happens if I start messing with the physics here?"

[0.0-0.8s] <Subject 1> walks with her eyes on the buildings to her left; her brows draw together slightly as she makes up her mind; she takes a breath.
[0.8-3.2s] Her eyes flick to him on the word for the rules; half curious, half testing him, with a light young female voice she says:
           <d>[Korean] 근데요, 여기서 물리 법칙을 건드리기 시작하면… 어떻게 돼요?</d>
[3.2-4.6s] <Subject 2> keeps walking and glances at her sideways; one corner of his mouth lifts in a faint knowing smile; his lips stay closed.
[4.6-5.9s] She looks ahead again, waiting for an answer that does not come; her brows stay lifted; they keep walking.

Write down when she breathes, when she looks away and when she speaks, and the lips and expressions match the line. The voices are not TTS either: we kept the sound the model generated together with the lip movement.

What we learned along the way

  • When two people share a shot, tie them to the mannequin colors. In the folding shot the model once drew two women. One line fixed it: "the red mannequin (right) is <Subject 1>, the grey mannequin (left) is <Subject 2>, exactly two people on screen".
  • In a one-person shot, don't mention anyone off screen. Write "she glances at the man beside her" and the model paints a stranger at the edge of the frame. Give the gaze to the sky or an object instead.
  • Decide where the street ends. In every shot the end of the street came out empty, or turned into forest or sky. We wrote "a grey domed building closing off the end of the street" into every shot so they all end the same way.
  • Tell the model the hanging city has ground too. It once painted the gaps between buildings as sky, so the city looked torn. Writing out roofs, chimneys, streets, parked cars and small people walking fixed it.
  • Use 'deep focus' so buildings don't blur. Ask for shallow focus and the buildings behind smear. We wrote "sharp from the nearest wall to the farthest roof".

All 16 prompts, and a table of what went into each shot, are in the kit's prompts folder.

6. Results

  • Final: 63 seconds, 16 shots. 35 takes in total, tests and reshoots included: a little over two per shot.
  • All four Korean lines (two hers, two his) came out lip-synced.
  • About four hours on one of our PCs. Even estimating generously, the electricity cost under a dollar.
  • We composed and arranged the orchestral score ourselves, and not a single frame of the original film was used.

▶ Full scene: YouTube link 07:16

7. Just swap the engine? MiniMax H3 vs Seedance 2.5

We kept the blueprints and swapped only the engine: the same blocking, the same sheets and the same text went into Seedance 2.5. To be honest, Seedance is expensive, so we tested it on its cheapest setting: draft.

Left MiniMax H3, right Seedance 2.5 (draft) Left MiniMax H3, right Seedance 2.5 (draft). From the top: hanging buildings, looking up the street, the street from above.

  • What both followed: framing, shot length and the four lines. Both engines followed the blueprint.
  • What differed: the folding city. On the Seedance side the hanging buildings turned into blocky lumps, a streetlight floated in the sky, and the overhead shot was pinned close to the ground.
  • Price: the 268 credits this comparison took (tests included) come to roughly 9 to 19 dollars depending on the plan. MiniMax H3, run on our own PC through many revisions of the same scene, cost under a dollar in electricity.

When every shot needs several re-rolls, that gap is hard to live with. After comparing them side by side, we kept the MiniMax H3 version.

8. Download

Download folding-paris-kit-en.zip

Folder What's inside
blocking/ kblock.js (set, fold, mannequins, cameras for 9 shots), index.html (viewer + MP4 recording)
prompts/ Prompts for all 16 shots (A00.txt to A15.txt), a table of inputs and lengths per shot, lessons learned
sheets/ Character sheets and face close-ups of both characters
text_only/ The two text-only prompts from section 1

The blocking code is MIT licensed. Change it and share it freely.

Wrapping up

Turning AI video from a slot machine into directing came down to leaving less undecided. Space and camera were set by the blocking, faces by the sheets, and acting by a script timed to the second.

Try it yourself, and if you get stuck, leave a comment on the video. If this helped, a like and a subscribe really helps. We'll keep publishing the code for our next experiments too.