Communitygithub.com

lineless-3d-video

制作通用叙事、历史、商业、科普与人物故事的「无描边二维角色(Style 2)+ 无描边双色调三维空间(Three.js + Remotion)」动画视频。支持圆胶囊头无描边人物与骑兵骨骼、真实三维门窗透视与地形高差、薄透镜光学景深(LensBlur)、真实三维剪影投影、纪录片地标与逐词高亮字幕,以及 1,007 个 CC0 低多边形 .glb 模块化三维资产库。白脸粗黑线、CUTAWAY 和 LOW SUN 二维风格请用 flat-cartoon-code-video。

lineless-3d-video 是什么?

lineless-3d-video is a Gemini CLI agent skill that 制作通用叙事、历史、商业、科普与人物故事的「无描边二维角色(Style 2)+ 无描边双色调三维空间(Three.js + Remotion)」动画视频。支持圆胶囊头无描边人物与骑兵骨骼、真实三维门窗透视与地形高差、薄透镜光学景深(LensBlur)、真实三维剪影投影、纪录片地标与逐词高亮字幕,以及 1,007 个 CC0 低多边形 .glb 模块化三维资产库。白脸粗黑线、CUTAWAY 和 LOW SUN 二维风格请用 flat-cartoon-code-video。.

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

在你喜欢的 AI 中提问

打开一个已预加载此 Agent Skill 的新对话。

文档

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.

相关技能