Claude built a 3D teardown film of the Mazda rotary engine in code, down to the light on the metal. This guide gives you what we used to make it: the setup, the three input files, the handoffs in order and the corrected build prompt.
What we made
A film of about four and a half minutes that takes the engine apart, names every part and shows it working. Every part is built in code, with no video or image model. Claude Fable 5.2 built it with three.js, and HyperFrames turned that code into video.
The handoffs, in order
- Claude writes the fact sheet and the parts list.
- GPT checks them. Fix and re-check until it passes. Ours failed twice.
- Claude writes the shot list from the checked facts, one idea per shot.
- Step 1: the style frame. Two models each make one, and you pick blind.
- Step 2: the full build with the corrected prompt below.
- Render with HyperFrames. Check for black frames, freezes and loudness.
- GPT review: send a frame every 2 s, the script and the fact sheet. It returns a verdict and a list of errors.
- One repair pass by the builder, then one GPT re-check.
- Voice: one call per sentence. Pick takes by ear.
- Subtitles, then a last GPT check that they cover nothing.
In our run, two Claude models each made a style frame, and I picked one without knowing which model made it. It was Fable 5.2, so Fable built the film. GPT watched version one, a frame every two seconds, and failed it with 4 errors. Version two fixed those, and GPT passed it. The subtitles failed GPT twice before they passed.
The rule we keep
Check the script before the render. Our film grew to four and a half minutes, then the subtitles failed GPT twice. Next time, we check the script before we render anything.
Related: the faceless video factory covers our full video line. motion-explainer turns a script into a build brief for HTML explainer videos. Dark text in three.js fixes a lighting problem you can hit in a 3D build, and 11 tips for Claude usage helps a long build like this one last.
What you need first
- Claude Code, signed in, with access to Claude Fable 5.2. Other Claude models work too. We used Fable.
- Node.js 22 or newer.
- The HyperFrames skill. Install it with the line below. The CLI runs as
npx hyperframes@0.9.41, the version we rendered with.
npx skills add heygen-com/hyperframes --skill hyperframes- A GPT chat for the reviews. Any current GPT model that takes images works.
- Optional: a Cartesia account for a cloned voice. Any text to speech works.
The input files and where they come from
FACTS-ROTARY.mdis the fact sheet. Claude built it from Mazda's technical papers and other public pages, then GPT checked it.PARTS-LIST.mdholds the part names to label.SHOTS.mdis the shot list, one idea per shot.- Two style reference images of your own choosing, for the look.
- One music track you have the rights to.
The three-row samples below show the format only. Before you run the build prompt, complete and check FACTS-ROTARY.md, PARTS-LIST.md and SHOTS.md for all ten chapters. Save them in the project root, put your two reference images in look/, and give the builder your licensed music file.
FACTS-ROTARY.md: the template and 3 real rows
Each row has one claim, its value, its source and a short quote. The status is PASS, CHECK or DROP. Use only PASS rows on screen. A DROP row is a myth, and its status cell says what is true. Ours has 157 rows, and GPT failed the first two versions.
| ID | Claim in plain words | Value + unit | Source title | URL | Quote (≤15 words) | Status |
|---|---|---|---|---|---|---|
| F4.3 | The rotor turns the same way as the shaft. NASA's equations give rotor speed as plus one third of shaft speed. | same direction | NASA/TM-2010-216353, "Application to a Rotary Engine", page 5 | same as F4.1 | θ2 = θ1/3 and ω1 = const, and ω2 = ω1/3 | PASS (same sign means same direction) |
| F4.4 | Myth: "the rotor spins the opposite way to the shaft". | n/a | as F4.3 | as F4.3 | ω2 = ω1/3 | DROP. Rotor and shaft turn the same way. The rotor is slower by 3:1. |
| F8.14 | Cosmo Sport launched: the world's first car with a 2-rotor engine. Sold overseas as the 110S. | 30 May 1967 | MTR 21, "Construction and History", section 4.1; Mazda, Great Cars: Cosmo Sport | https://www.mazda.com/content/dam/mazda/corporate/mazda-com/ja/pdf/innovation/monozukuri/technology/tech-review/2003/2003_no001.pdf and https://www.mazda.com/en/about/history/greatcar/cosmo-sport/ | 1) 1967年5月30日,マツダは世界初の2ロータエンジン搭載車 2) sold overseas as the 110S | PASS |F4.3 and F4.4 point to row F4.1 for their URL. That row is in the full sheet.
PARTS-LIST.md: the template and 3 real rows
The name in column 2 is the on-screen label, word for word. Each part links to its fact ID. A material appears only where a source states it.
| # | Part name (exact label) | What it does, one plain sentence | Material if a source states it | Fact ID |
|---|---|---|---|---|
| 2 | Rotor Housing (x2) | This ring has the two-lobed epitrochoid bore that each rotor turns in. | Aluminium alloy body (booklet only, CHECK) | F2.1, F2.2, F2.5 |
| 15 | Rotor (x2) | This three-flanked rotor takes the gas pressure and pushes on the eccentric shaft lobe. | Cast. Alloy not stated. | F3.1, F3.2, F3.3, F3.9 |
| 25 | Eccentric Shaft | This output shaft turns three times for each rotor turn. | Not stated | F4.1, F4.2, F4.3 |SHOTS.md: its rules and 3 real rows
Our shot list has 34 shots. These are its rules, word for word:
1. Keep every shot and its idea, in this order. You may add shots. Never drop or merge one.
2. You choose the camera, light, timing, transitions and the words inside each chapter's length.
3. "Per fact pack" means: show it only as a PASS row in FACTS-ROTARY.md says. If there is no PASS row, show the part without the claim, and write that in DECISIONS.md.
4. Labels use the exact names in PARTS-LIST.md. A label's leader line touches its part.
5. Look: `look/black-studio.png` for the parts, `look/xray-lab.png` for the glass and x-ray shots. Match the feel, not the pictures. The numbers in those pictures are not checked.
6. Optional accents in the same engineering feel, your choice: a thermal false-colour pass (black, purple, orange, white) for heat in S23, S26 and S31; a flat kinematic line diagram with coloured arrows beside the 3D in S18; an engraved patent-plate line style ("FIG. 1" labels) for the drawings in S32.
7. Keep the background calm and still in every shot. Motion belongs to the parts, the gas, the oil, the spark and the counters.And three rows: S05, every part named. S07, the epitrochoid. S18, the 3 to 1 counter.
## c1 · The whole engine · 25 to 30 s
| Shot | s | Idea | What the viewer sees |
|---|---|---|---|
| S05 | 8 | Every part, named | The full exploded view held on a slow orbit. A callout line and a name on every part in PARTS-LIST.md. This is the hero frame. |
## c2 · The housings · 25 to 30 s
| Shot | s | Idea | What the viewer sees |
|---|---|---|---|
| S07 | 6 | The odd shape | The rotor housing alone, face on. A point on a rolling circle draws the epitrochoid line by line, then the line snaps onto the housing's inner wall. Label "epitrochoid". |
## c4 · The eccentric shaft · 25 to 30 s
| Shot | s | Idea | What the viewer sees |
|---|---|---|---|
| S18 | 12 | Three to one | The shaft turns and the rotor walks around the stationary gear. A marker sits on one rotor tip and one on a shaft lobe. A live counter: shaft turns and rotor turns, 3 to 1, direction per fact pack. |The corrected prompt
This is our build prompt with the lines we no longer use taken out: the side-by-side test with another film, the "four strokes at once" chapter title, whole-paragraph voice calls, the fast pace target and the fixed chapter lengths. Our chosen voice did not fit them. Our own folder names are replaced with general ones. Copy it word for word.
make me a 3d teardown film of the mazda rotary engine, about four and a half minutes, with timing fitted to the approved narration, 1920x1080 at 30 fps. use the hyperframes skill for the video. build every part in 3d yourself, in code.
i want to see every part taken apart, named and explained, with a real engineering feel, like a pro technical animation, not a cartoon. match the feel of my two style images in look/, not the pictures. real metal, each part in the material the fact sheet gives it, cut faces with hatching, dimension lines, clean labels in a technical typeface, slow and precise assembly moves, camera orbits and cutaways. change the visual every 15 to 20 seconds. keep the background calm and still. put motion only where it explains something, like a part moving, gas flowing or a counter running.
follow SHOTS.md. it gives every idea its own shot. keep every shot in its order, add more if you want, never drop one.
chapters, in this order. start each on its own shot and name the part in its first spoken line. keep these chapters in order. approve the script before rendering, make the voice one sentence at a time, then fit each chapter to the chosen takes at their natural pace.
c0 open: your hook, then the engine comes apart
c1 the whole engine: the two-rotor layout, then the exploded view with a callout line and a name on every part
c2 the housings: the rotor housing and its shape, the side housings, the intake and exhaust ports, the spark plugs
c3 the rotor: the three faces, the combustion recess, the ring gear, the seals
c4 the eccentric shaft: the lobes, the stationary gear and the 3:1 ratio, with a live counter
c5 the four strokes: intake, compression, combustion and exhaust in the three chambers, in cutaway. the strokes are not equal in length, so don't give them equal time
c6 cooling, oil and spark
c7 why it is smooth, small and revs high, and what wears out
c8 history
c9 it goes back together and runs
rules:
- facts: use only PASS rows from FACTS-ROTARY.md, and label every part in PARTS-LIST.md with its exact name.
- the 3d is yours. no downloaded 3d models or cad files, no image or video generation models. reference photos are fine for accuracy, but they never appear in a frame.
- no mazda logo anywhere.
- narration in english, one voice call per sentence, same settings every call, at a natural pace. stitch the lines with short natural gaps.
- music: one track i have the rights to, 18 to 22 db under the voice. the full mix sits near -14 lufs.
- don't ask me questions. make the call and write it in DECISIONS.md.
- don't publish, upload or post anything.
do it in two steps.
step 1, the style frame: one still of the whole engine exploded along the shaft with a name on every part, and a 5 s clip of the rotor turning. then stop and wait for me.
step 2, when i say go: build the full film. check a frame every few seconds, check every label and number against the fact files, and tell me what you couldn't check.