Chibi realism: cartoon character, real world
A chibi character (round head about a third of his height, small clothed body, four-finger hands) rendered like a premium collectible: wet eyes with iris and moving lids, strand-clump hair, skin with pores and subsurface glow, real knit and denim textures. He acts (walks, sits, types, waves, shrugs, nods, gestures) with a face that moves (brows, lids, gaze, mouth shapes with lips/teeth/tongue). The world around him is photoreal: Poly Haven HDRI skies, photo-scanned models and PBR textures, real lighting, depth of field, motion blur. Everything is code, so the agent builds, previews and renders the whole film itself.
The look that works: the character is stylised, everything else is real. Real light falling on a stylised character is what sells it; a stylised world (flat colours, boxy procedural props) makes the whole thing look cheap.
Pick an engine first
Blender (scripts/) | Web, three.js (web/) | |
|---|---|---|
| Needs | Blender 4.2+, Python, ffmpeg | any modern browser; Python only for the optional local server |
| Runs on | a desktop or laptop | also phones, tablets, Chromebooks, cloud agents with headless Chrome |
| Frame time (laptop iGPU, 720p) | 15-35 s | about 0.7 s (photo worlds) to 4.5 s (dense 3D sets), final quality |
| Light | ray-traced GI, the very best | HDRI image light, measured sun, soft shadows, AO, real DOF and motion blur |
| Worlds | built 3D sets | photo worlds (any Poly Haven HDRI: park, stadium, street, rooms) + built 3D sets |
Use Blender when it is installed and the user wants the absolute best quality and can wait hours. Use the
web engine when Blender is missing (phones, cloud, "no Blender"), when time matters, or for real-place scenes
(photo worlds). Same character, same pose and face API, same Z-up coordinates, so films port between them.
For the web engine read references/web.md now: it has its own workflow, staging rules and automation API.
Requirements (Blender engine)
- Blender 4.2+ (tested on 5.3) -
scripts/paths.pyfinds it, or setBLENDER - Python 3.10+ with Pillow; ffmpeg on PATH
- An ElevenLabs API key for narration and Foley (
ELEVENLABS_API_KEYin the environment or the project's.env; never commit it). Without a key, skip tts/sfx and supply your ownvoice/voice.mp3+sfx/*.mp3. - Internet for Poly Haven downloads (free, CC0, no account)
Check an install in seconds (no rendering): blender -b --factory-startup -P <skill>/scripts/selftest.py -- room
(or hill_station, street, forest) from a project folder whose assets are downloaded; it prints SELFTEST OK.
Layout
The skill folder holds the library; each video is its own project folder (run every command from there).
The web engine lives in <skill>/web/ (studio, engine, serve.py, templates, examples): see references/web.md.
<skill>/scripts/ paths kit rig character room outdoor scene_setup timing (imported inside Blender)
fetch tts sfx stills render_film assemble (command-line tools)
<skill>/templates/film_outdoor.py starter film for outdoor scenes
<skill>/examples/claude-code-short/ a complete indoor film: film.py, shots.py, cues.py, screen_ui.py, SCRIPT.md
my-video/ SCRIPT.md .env film.py cues.py voice/ sfx/ assets/ out/
Run tools as python <skill>/scripts/<tool>.py ... from the project folder.
Workflow
Work in this order and show the user something at every gate. Renders are slow (20-60 s per frame on a laptop), so a mistake found in a still costs seconds and the same mistake found after a full render costs hours.
- Script: write
SCRIPT.mdwith a## Scriptsection (the narration, ~2.6 words per second) and a shot list. Lead with a hook, keep the topic's real angle (don't explain things the audience already knows), and give the character something physical to do in every line. Get the user's approval. - Assets:
python fetch.py preset characterplus the set:room,hill_station,streetorforest. Need something else?python fetch.py search models bench, thenpython fetch.py model <id>. - Narration:
python tts.py [voice_id] [speed]->voice/voice.mp3+voice/words.json(word timings). The words drive everything:timing.W("word")is the film time of a word, so actions, cuts, screen events and sounds land exactly on what is being said. Set the frame rate withCHIBI_FPS(24 default; 20 is fine for X). - Film: write
film.pyin the project: set, character(s), performance, cameras. Start fromtemplates/film_outdoor.pyorexamples/claude-code-short/film.py. Readreferences/character.mdbefore posing anyone andreferences/sets.mdbefore building a world. - Look check:
python stills.py 1,60,120renders low-res stills of chosen frames + a contact sheet. Look at them yourself: framing (faces cut off? camera inside an arm? props blocking the screen?), poses, expressions, exposure. Fix, re-check. Then render a 3-5 s moving test clip of the most important moment and send it to the user for approval before the full render: motion problems (jitter, popping, sliding) only show in motion. - Sound:
python sfx.py(built-in Foley library) orpython sfx.py name "close Foley, clean ..." 1.5, then writecues.py(seereferences/sound.md). Every visible action gets its sound. - Render:
python render_film.py --pct 67 --name my_short [--autostart]. Resumable and laptop-safe; it assembles the finalout/my_short.mp4(narration + Foley + subtitles, -14 LUFS) when all frames exist. Report progress from the frame count inout/frames; show finished frames when asked. - Deliver: probe the mp4 (duration, size, loudness), look at a contact sheet of the whole video against the subtitles, then hand it over and say plainly what you could not check (e.g. you can't listen to audio).
Things that matter (learned the hard way)
- One Blender at a time. A second render (even one still) while the main render runs can crash both on a
small GPU. During a long render, inspect finished frames with PIL/ffmpeg only. To fix some shots mid-render,
patch
film.pyand delete those frames: the resumable runner redoes missing frames before assembling. - Show, then commit. Stills -> short moving clip -> user approval -> full render. Never start a multi-hour render on an unseen change.
- Frame for the action, not the rest pose. Leaning, waving and sitting move the head by 10-20 cm; aim close-ups at where the face will be. Over-the-shoulder cameras: keep the head out of the screen's sightline.
- Cuts: hold the last camera key of a shot (CONSTANT interpolation) and set
render.motion_blur_position = "START", or motion blur smears across the cut. - Odd frame sizes (67 % of 1080 = 723) break H.264;
assemble.pyscales to even sizes. - Screens inside the scene (laptop, phone, TV): animate them as an image sequence (
examples/.../screen_ui.py), keep the UI simple and light-themed so it reads at a glance, and frame the device with its surroundings visible. - Ask before downloading big asset packs, spending API credits (TTS/SFX) or publishing anything.
References
references/character.md- building characters, joint/pose conventions, the face API, a pose library, actingreferences/sets.md- indoor room, outdoor hill station / street / forest, HDRIs, terrain, scatter, houses, lightingreferences/camera-and-render.md- cameras, cuts, depth of field, render settings and timings, resumable rendersreferences/sound.md- narration, Foley prompts, cue timing, mixing levels, subtitlesreferences/web.md- the three.js engine: film modules, photo worlds and staging rules, stills, MP4 export, automation