Create a 3D Pixel-Art Explainer Video
Use this skill whenever the user asks to explain how something works, turn an article/whitepaper/image/transcript into a short visual explainer video, or add a new scene to explainer-engine.
1. Distill the Topic into the 8-Beat Storyboard
Every high-retention zero-voiceover explainer follows the same causal rhythm (typically 28 seconds @ 30fps, or 16 seconds for compact topics):
- Hook (
0.0–3.0s): Open in media res on the full system in motion at real speed/scale. Question banner:"HOW DOES <X> WORK?"+ punchy 4–5 word benchmark takeaway. - Frame Shift / Problem (
3.0–5.5s): Justify going inside — slow down time (64x SLOW), peel back armor (X-RAY), or show the bottleneck (WHY DO CHAINS CHOKE?). - Beats 1–4 (
5.5–20.5s, numberedbadgeNumber: 1..4): Walk sequentially down the causal chain (input → transformation → control → output).- Include at least one Edge Case / Failure Mode beat (e.g., "WHAT IF A LOOP FAILS?" → "VERIFY, ABSTAIN, OR PAUSE" or "WHAT IF 2 BLOCKS TIE?"). Edge cases create the strongest "aha!" moments.
- Each beat has: a short question banner, isolated 3D motion, 1–2 callout labels max, and a ≤ 5-word takeaway pill that drops in after
0.75–0.85s.
- Synthesis (
20.5–24.5s,"ALL TOGETHER"): Pull back to show every subsystem operating together at full speed. - Finale & Seamless Loop (
24.5–28.0s): Match the exactcamera.pos,camera.target, andcamera.fovof Beat 0 so the video loops invisibly back to0:00.
Cognitive & HUD Rules
- Live Telemetry Metric (
meta.telemetryLabel): Choose 1 concrete number that changes meaningfully across the story (e.g.,MOTOR RPM,COST / TASK,NETWORK TPS,TOKENS / SEC). - Thematic Progress Bar (
meta.progressIcon): Pick from'screw' | 'gear' | 'packet' | 'bolt' | 'block'. - Zero clutter: Never put more than 2 callouts on screen at once. Keep callout labels to 1–3 words.
2. Scaffold & Author the 3D Scene
- Run the scaffolder:
npm run new-scene -- <scene-id> "How Does <Topic> Work?" - Read
references/scene-spec.mdfor the exactExplainerSceneAPI,ProceduralParts.tshelpers, and vertical9:16camera framing formulas. - Build clear, unmistakable 3D silhouettes using
makeToonMaterial,createGearMesh,createRingGearMesh,createSpringMesh,createGhostShell, andEnergyStream.- Call
ctx.markNoOutline(obj)on ghost wireframes and glowingEnergyStreamgroups so they don't generate dark Sobel outlines. - Register an anchor with
ctx.registerAnchor('id', obj)for every callout target.
- Call
3. Typecheck, Build, and Render
- Verify TypeScript and Vite bundle:
npm run check - Render the MP4 video:
(Passnpm run render -- --scene=<scene-id> --out=out/<scene-id>.mp4--audio=path/to/track.mp3to override the built-in procedural beat-synced synth.)
4. Visual QA & Polish Loop (Mandatory)
Never ship a rendered video without visually inspecting it. Read out/<scene-id>.mp4 (or extract key frames with ffmpeg) and verify all 5 checks:
- Top Banner Clearance: Does the hero 3D subject sit cleanly below the hazard-stripe question banner and takeaway pill (top ~25% of frame)?
- Callout Margins: Do all callout boxes stay completely inside the
720×1280frame with zero clipping and zero overlap against the banner or each other? - Full Silhouette Visibility: In wide shots (
hook,ALL TOGETHER,loop), is the entire mechanism framed cleanly with navy void breathing room on left and right? - Motion & Causal Clarity: Does each beat's 3D animation visibly demonstrate its takeaway without needing voiceover?
- Seamless Loop: Does the final second match the opening camera & visual state?
If any check fails, adjust the beat's camera or callouts[].offset, re-render, and inspect once more before reporting completion.