Communitygithub.com

lineless-3d-video

Create general-purpose narrative, historical, business, science-popularization, and character-story animated videos featuring 'lineless 2D characters (Style 2) + lineless two-tone 3D spaces (Three.js + Remotion)'. Includes capsule-headed lineless characters and cavalry skeletons, realistic 3D door/window perspectives and terrain elevation, thin-lens optical depth of field (LensBlur), realistic 3D silhouette shadows, documentary landmarks, word-by-word highlighted captions, and a library of 1,007 CC0 low-poly .glb modular 3D assets. For white-face thick-black-line, CUTAWAY, and LOW SUN 2D styles, use flat-cartoon-code-video.

What is lineless-3d-video?

This skill enables the creation of high-quality animated videos that combine lineless 2D character art (Style 2) with three-dimensional two-tone environments built using Three.js and rendered with Remotion. It is designed for developers and teams using AI coding agents (like Claude Code) to produce narrative-driven content for documentaries, historical reenactments, business presentations, science communication, and character-focused stories. The core visual style is defined by a strict 'no-ink' rule: characters have capsule-shaped heads without outlines and wear two-tone layered costumes, while all 3D assets (including a library of 1,007 CC0 low-poly .glb models for furniture, terrain, buildings, vehicles, and more) are wrapped in a custom two-tone shader. The skill supports advanced cinematographic features such as thin-lens depth of field (LensBlur) for realistic focus effects (e.g., over-the-shoulder shots with blurred foreground shoulders), physical 3D shadows, realistic door/window openings with exterior views, and terrain height differences. It also includes a complete production pipeline for script linting, TTS narration with word-level timing, multi-scene setup, animation of characters and mounts, diegetic sound effects, and still-frame quality checks before final 2K rendering. For longer projects (8–12 minutes), it provides a parallelization workflow using multiple subagents to author and render scenes concurrently. This skill is particularly useful for teams that need to produce broadcast-quality, visually consistent, and engaging animated narratives efficiently, without relying on traditional hand-drawn animation or complex 3D software.

Works with~Claude Code~Codex CLI~Cursor✓Gemini CLI
npx skills add https://github.com/doulaver834-ux/lineless-3d-video/tree/HEAD

Ask in your favorite AI

Open a new chat with this agent skill pre-loaded.

Documentation

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

  1. 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.
  2. Unified lineless 2D characters & 3D space:
    • Characters & mounts (src/style2Rig.js + src/linelessCast.ts): Capsule-shaped heads, soft warm white #fffaf0 eye whites, two-tone layered costumes (presets for statesmen, officers, scholars, artisans, merchants, explorers, soldiers, etc.), hands with thumbs, word-gated mouth shape speechOpen(), mounted on Three.js off-screen canvas billboards with customDepthMaterial enabled to cast realistic 3D silhouette shadows.
    • 3D environment (twoTone two-tone shader): Do not mount the black comic-ink pass InkPass, 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 .glb models are uniformly wrapped in the twoTone() two-tone shader, supplemented by warm dark brown ambient occlusion strips (AO Strip) at corners and soft volumetric light beams.
  3. 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 to 15%–22% of the screen edge, not occluding the subject's hands or props); wide-angle crane-up overlook shots set aperture: 0 (full depth-of-field sharp imaging).

2. Standard Production Pipeline

  1. 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, voice Fenrir, 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, use python3 "$K/director/air.py" to precisely expand the audio and words.json.
  2. 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_modules and 1,007 .glb assets and catalog.json in seconds; new machines add --download-assets to automatically download and catalog them):
      python3 "$K/setup_lineless_3d.py" <project>
      
  3. Build 3D space (.glb asset-first + parametric shells)

    • Consult <project>/public/assets/catalog.json (8 sets totaling 1,007 CC0 .glb models: 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). Use instantiateLinelessGlb(path, { targetHeightM, pos, rotY }) to directly position them, automatically completing ground alignment y = 0 and twoTone two-tone material conversion.
    • Indoor ceilings/roofs should always have castShadow = false to 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 exceed 0.007m (opacity <= 0.24). See references/architecture-and-craft.md and references/assets-and-pipeline.md for details.
  4. 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 with setStyle2Accent(); for two-character hugs always use createHugActor(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 ~ -490 range), and perform() 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, run uv run --with numpy --with scipy python scripts/audio.py to synthesize action-locked physical foley sounds and normalize to -14 LUFS.
  5. Mandatory still-frame quality check (Stills QA) & 2K final render

    • First run node scripts/render.mjs --stills to 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, run node scripts/render.mjs to output the 2560×1440 (2K, CRF 16) final video and clean up .bundle and .render-tmp.

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.

Related Skills