FREE RESOURCE · FROM THE "ROBOT" REEL
Make 3D character dialogue reels with Claude Code
By Hammad Yousuf ·
The reel you just watched (me and Claude as low-poly 3D characters on a night rooftop) is not a video model. It is a Three.js scene that Claude Code wrote, rendered frame by frame with HyperFrames.
How these 3D dialogue reels work
- These 3D dialogue reels are code: Claude Code writes a Three.js scene, characters, lip sync and shots; HyperFrames renders it to MP4.
- Two voices + one loudness value per frame = convincing lip sync on blocky characters.
- Shot / reverse-shot cuts on every speaker change make a 45-second dialogue feel like a film.
What you need
- Claude Code on a paid Claude plan (Pro, Max or Ultra; the free plan does not include it)
- Node.js 22+ and FFmpeg (HyperFrames needs both to render)
- Any text-to-speech for the two voices (macOS
sayworks for a draft) - Optional: the starter project behind this reel (links below) to start from the finished scene
Set up Claude Code and HyperFrames
The native installer from Anthropic's setup docs. On Windows PowerShell use irm https://claude.ai/install.ps1 | iex. Then run claude in your project folder and log in.
curl -fsSL https://claude.ai/install.sh | bashFrom the HyperFrames README: scaffold a project, put the scene page in it, then render it to MP4.
npx hyperframes init my-video
cd my-video
npx hyperframes renderThe 5 prompts
Paste them into Claude Code, in order.
1. The world
Build a single self-contained HTML page with Three.js (r149 from a CDN) that renders a 1080x1920 portrait 3D scene, driven only by a time value t in seconds (no requestAnimationFrame clock), so it can be rendered frame by frame with HyperFrames. Low-poly, flat-shaded, made only from boxes, cylinders and spheres. Scene: a night rooftop. Dark navy floor with raised square tiles, a big dark window-frame cross with a thin blue glow edge, a skyline of black skyscrapers with warm lit windows (canvas texture), soft warm bokeh circles in front of and behind the buildings, three bright round lights at the top. Lights: warm key from front-left with soft shadows, strong blue rim light from behind, dim indigo ambient. ACES tone mapping, sRGB output.2. The two characters
Add two characters standing 2.2 m apart on the rooftop. (a) A man: big blocky head, swept-up dark hair, short dark beard and moustache, white eyes with dark pupils, thick eyebrows, a light-blue hoodie with drawstrings and a front pocket, dark trousers, light trainers; arms with shoulder and elbow pivots. (b) Claude: an orange TV-head robot, a black screen face with two white square eyes and a white rectangular mouth, side knobs, an antenna with a glowing white bulb, a short black body and two orange box legs. Both blink every few seconds and breathe slightly.3. Talking and lip sync
Load timeline.js: window.TL = {lines:[{who,s,e}], mouth:{H:[...],C:[...]}} where mouth is one loudness value (0-1) per frame at 30 fps for each speaker. Open the man's mouth (dark slot, teeth, lower lip) and stretch the robot's white mouth bar by that value. While a character talks: small head nods, a palm-up hand gesture for the man, a tiny hop and head tilt for the robot.4. The shots
Add a shot list in TL.shots ({kind, s, e}). Kinds: wide two-shot, robot medium, robot low angle, robot slow push-in, robot close, man close-up, man three-quarter close, man full body. Every shot drifts slightly (a slow push or orbit) and hard-cuts on each speaker change, like a shot / reverse-shot dialogue. Close-ups face the lens; in the two-shots the characters face each other.5. Voices, timings and render
Write a Python script that takes one audio file per line, trims silence, places each line at its start time, writes voice.wav, computes the per-frame mouth envelope for each speaker and writes timeline.js. Then render the page with `npx hyperframes render` to MP4 and add the captions and the voice in Remotion (or any editor).Honest notes
- Expect a working session, not one command: the first pass gives you the scene, then you tune faces, framing and timing.
- Lip sync is loudness-driven (mouth opens with the voice), not phoneme-accurate. On blocky characters it reads well.
- Rendering the 46-second 1080x1920 picture (1,380 frames) took about 4 minutes on a Mac with HyperFrames.
Tools
- Claude Codecode.claude.com/docs/en/setup ↗
- Three.js (MIT)github.com/mrdoob/three.js ↗
- HyperFrames (Apache-2.0)github.com/heygen-com/hyperframes ↗
- Remotionwww.remotion.dev ↗
- Starter project: the exact scene, characters and shots behind the reel (GitHub)github.com/withhammad/withhammad-video-pipeline/tree/main/studio/hyperframes/pocket3d ↗
- Starter project: captions and comment-keyword ending in Remotion (GitHub)github.com/withhammad/withhammad-video-pipeline/tree/main/studio/remotion/src/pocket3d ↗
Sources checked
The facts on this page were checked against the sources below on 26 November 2026. Plans and requirements change, so treat each official page as the final word.
- Claude Code needs a Pro, Max, Ultra, Team, Enterprise or Console account; the free claude.ai plan does not include it. Native install: curl -fsSL https://claude.ai/install.sh | bash. Source ↗
- HyperFrames is free and open source (Apache 2.0), needs Node.js 22+ and FFmpeg, renders with npx hyperframes render and lists Three.js among its seekable animation options. Source ↗
- Three.js is MIT-licensed. Source ↗
- This reel was built exactly this way: the HyperFrames render log from 7 Nov 2026 shows 1,380 frames rendered in about 3 minutes 50 seconds.
About the video: the reel that sent you here is presented by an AI avatar of Hammad Yousuf: a low-poly 3D likeness built in code, speaking with an AI clone of his voice. Claude's lines use a stock AI voice.