General lineless 3D Narrative Animation (Style 2 2D characters + Three.js two-tone 3D space)
If LOCAL.md exists, first read its local T7 path, shared node_modules, cached 1,007 CC0 .glb asset catalog, and approved 2K sample benchmarks. Below K=<this skill directory>/scripts.
Approved visual benchmark (2026-11-24): examples/benchmark_1876_3d/ (19.80 seconds, 2560×1440 @ 30fps, includes four spatial acts: Parliamentary hall over-the-shoulder push-in, study gavel drop, log command post with realistic 3D open doorway perspective to outdoor camp, highland sandstone cliff crane-up pan over winding valley). All new final video quality, edge sharpness, and 2D–3D integration must not fall below this benchmark.
Read references/quality-bar.md before starting work: The user demands "detailed, high quality, not a demo." Short films must have at least 3 independent 3D scenes, each scene file ≥ 650 lines, change space or camera angle every 4–6 seconds, each scene includes one hero prop that animates with the plot, and delegate to multiple Subagents for parallel polishing per Section 3. No white-box empty rooms, actors in a straight line, or reused cut audio/scene code from rejected versions.
1. Style & Visual Consistency Iron Rules
- General documentary visual package (
src/Graphics.tsx):- Use a restrained modern narrative documentary package: upper-left location/date bar (Dateline), single status badge (Badge) at key narrative turning points, bottom subtitle bar that automatically splits by semantic boundaries and highlights words one by one.
- No more than 1 main information sign + bottom subtitle per screen per shot; all explanatory information should be converted into physical props (letters, manuals, ledgers, maps, flags) held by the characters.
- Unified lineless 2D characters & 3D space:
- Characters & mounts (
src/style2Rig.js+src/linelessCast.ts): Capsule-shaped heads, soft warm white#fffaf0eye whites, two-tone layered costumes (presets for statesmen, officers, scholars, artisans, merchants, explorers, soldiers, etc.), hands with thumbs, word-gated mouth shapespeechOpen(), mounted on Three.js off-screen canvas billboards withcustomDepthMaterialenabled to cast realistic 3D silhouette shadows. - 3D environment (
twoTonetwo-tone shader): Do not mount the black comic-ink passInkPass, do not draw black grid outlines in procedural textures, and do not mix in high-polygon realistic scanned PBR models. All 3D buildings, terrain, and external.glbmodels are uniformly wrapped in thetwoTone()two-tone shader, supplemented by warm dark brown ambient occlusion strips (AO Strip) at corners and soft volumetric light beams.
- Characters & mounts (
- Dynamic sharpness iron rule:
- Disable screen-space motion shutter convolution blur (
CameraShutter), keeping lineless color block edges 100% sharp during push/pull and crane movements. - Use only real depth-buffer-based thin-lens optical depth of field
LensBlur: Over-the-shoulder (OTS) foreground shots enable shallow depth of field to blur the foreground shoulder (occlusion controlled to15%–22%of the screen edge, not occluding the subject's hands or props); wide-angle crane-up overlook shots setaperture: 0(full depth-of-field sharp imaging).
- Disable screen-space motion shutter convolution blur (
2. Standard Production Pipeline
-
Storyboard script adaptation & voiceover (TTS)
- Before voicing, check the copy according to the script storyboard guide (remove consecutive numerical reports, convert abstract deductions over 6 seconds into concrete short scenes or cross-section breakdowns, leave
[air 0.8]breathing pauses at key transitions):python3 "$K/director/script_lint.py" <project>/production/script.md --strict --export <project>/production/texts_clean - Default voiceover configuration is in references/tts.md (
gemini-3.8-flash-tts, voiceFenrir,compact-shortform-v3, preserve original speech rate):python3 "$K/narrate.py" <project> --texts <project>/production/texts_clean python3 "$K/words.py" <project> <project>/assets/audio/narration.wav - If the script marks
[air N]breathing pauses, usepython3 "$K/director/air.py"to precisely expand the audio andwords.json.
- Before voicing, check the copy according to the script storyboard guide (remove consecutive numerical reports, convert abstract deductions over 6 seconds into concrete short scenes or cross-section breakdowns, leave
-
One-click initialize 3D project & mount CC0 .glb asset library
- Run the initialization script (when T7 cache exists on the local machine, it automatically symlinks
node_modulesand 1,007.glbassets andcatalog.jsonin seconds; new machines add--download-assetsto automatically download and catalog them):python3 "$K/setup_lineless_3d.py" <project>
- Run the initialization script (when T7 cache exists on the local machine, it automatically symlinks
-
Build 3D space (
.glbasset-first + parametric shells)- Consult
<project>/public/assets/catalog.json(8 sets totaling 1,007 CC0.glbmodels: 140 indoor furniture, 329 natural tree/rock/terrain, 167 historic town buildings, 103 trains/railways, 80 camp tools, 76 castle fortresses, 72 sailing ships/ports, 40 modern neighborhood items). UseinstantiateLinelessGlb(path, { targetHeightM, pos, rotY })to directly position them, automatically completing ground alignmenty = 0andtwoTonetwo-tone material conversion. - Indoor ceilings/roofs should always have
castShadow = falseto allow directional sunlight to enter the room; door and window openings should leave realistic 3D openings with outdoor/indoor 3D vistas; indoor dust particle radius does not exceed0.007m(opacity <= 0.24). See references/architecture-and-craft.md and references/assets-and-pipeline.md for details.
- Consult
-
Character performance, camera constraints & foley master
- For contemporary themes (companies, tech parks, boardrooms) use the
exec_founder/modern_*/board_*clothing kits, set badge theme color withsetStyle2Accent(); for two-character hugs always usecreateHugActor(kitA, kitB), see references/architecture-and-craft.md Section 5. - Character hand coordinates, horseback hand offsets (rider holding a prop needs
hand[1]in the-440 ~ -490range), andperform()acting verbs are in references/architecture-and-craft.md. - Side-mounted ride camera constraint: horizontal camera stays within
±25°of the travel normal, using vertical crane-up/down and forward/backward dolly to show spatial depth. - For mechanical principles or building structures, intersperse 4–8 second four-tone (Four-tone) isometric cross-section breakdown shots.
- Edit
production/action-cues.json, runuv run --with numpy --with scipy python scripts/audio.pyto synthesize action-locked physical foley sounds and normalize to-14 LUFS.
- For contemporary themes (companies, tech parks, boardrooms) use the
-
Mandatory still-frame quality check (Stills QA) & 2K final render
- First run
node scripts/render.mjs --stillsto output keyframe overview, check against the 10-item quality table for over-the-shoulder occlusion, table height, waist action space, and feet ground-contact shadows; after passing, runnode scripts/render.mjsto output the2560×1440(2K,CRF 16) final video and clean up.bundleand.render-tmp.
- First run
3. Multi-Subagent Parallelization Specification (Applies to Short & Long Films)
Short films (30–90 seconds): After the main thread locks the script, voiceover, words.json, shot list, and world-coordinate contracts for each scene, assign 1 Scene Architect Subagent per scene (exclusive to one src/setXxx3d.ts), and another Subagent for character skeleton and costumes (exclusive to style2Rig.js + linelessCast.ts); task template and requirements are in references/quality-bar.md Section 5.
Long films (8–12 minutes): When producing an 8–12 minute film, first single-thread lock the entire film's voiceover and words.json, split into 8–10 chapters (60–75 seconds each), then use batches of 4–6 Subagents in parallel to write new scenes and each chapter's camera code, run a unified still-frame spot-check correcting occlusions, then render incrementally by chapter and losslessly concatenate with ffmpeg -c copy.