Communitygithub.com

my-blender-video

通用「视觉动画」生成器(Blender 4.5 LTS + Cycles 真实路径追踪)。覆盖科普/教学动画、数据可视化动画、品牌 MG 动效宣传片、仿真/流程演示、城市与建筑推镜;支持口播、无口播(音乐节拍驱动)、无缝循环三种模式。渲染管线:专家写数值规格 JSON → bpy 确定性构建器生成真实 .blend → Blender 无头 Cycles 分块渲染(断点续渲)→ ffmpeg h264+aac。内置 12 部门 34 位 Blender 原生专家(制片人/总导演/视效项目经理/故事总监/领域专家/编剧/艺术总监/角色场景设计/分镜/素材总监/3D资产搜寻/贴图HDRI搜寻/Blender建模总专家/资产管线/置景总监/灯光指导/材质着色/特效仿真/动画总监/信息设计/摄影指导/转场设计/绑定动画/Blender技术动画TD/Blender管线专家/几何节点专家/模拟缓存专家/渲染预算专家/渲染交付工程师/合成调色/音频总监/剪辑/字幕/总检验)。与 Three.js 版的根本区别:闸门读真实场景图而非源码字符串,反射/景深/运动模糊/GI 由 Cycles 物理产生,构图在渲染前用针孔投影预检。触发:喊「my-blender-video」或说「用 Blender 做个视觉动画/3D动画/科普动画/建筑推镜/产品动画」。

my-blender-video 是什么?

my-blender-video is a Claude Code agent skill that 通用「视觉动画」生成器(Blender 4.5 LTS + Cycles 真实路径追踪)。覆盖科普/教学动画、数据可视化动画、品牌 MG 动效宣传片、仿真/流程演示、城市与建筑推镜;支持口播、无口播(音乐节拍驱动)、无缝循环三种模式。渲染管线:专家写数值规格 JSON → bpy 确定性构建器生成真实 .blend → Blender 无头 Cycles 分块渲染(断点续渲)→ ffmpeg h264+aac。内置 12 部门 34 位 Blender 原生专家(制片人/总导演/视效项目经理/故事总监/领域专家/编剧/艺术总监/角色场景设计/分镜/素材总监/3D资产搜寻/贴图HDRI搜寻/Blender建模总专家/资产管线/置景总监/灯光指导/材质着色/特效仿真/动画总监/信息设计/摄影指导/转场设计/绑定动画/Blender技术动画TD/Blender管线专家/几何节点专家/模拟缓存专家/渲染预算专家/渲染交付工程师/合成调色/音频总监/剪辑/字幕/总检验)。与 Three.js 版的根本区别:闸门读真实场景图而非源码字符串,反射/景深/运动模糊/GI 由 Cycles 物理产生,构图在渲染前用针孔投影预检。触发:喊「my-blender-video」或说「用 Blender 做个视觉动画/3D动画/科普动画/建筑推镜/产品动画」。.

兼容平台~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/heardof/blender-video/tree/HEAD

在你喜欢的 AI 中提问

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

文档

my-blender-video · Blender Visual Animation Production Team

Turn any topic into a real path-traced + professional audio + strictly synchronized visual animation.

Rendering pipeline: Expert writes numerical specs → bpy deterministic builder generates .blend → Blender headless Cycles tiled render → ffmpeg.

34-person expert team / 12 departments, all native Blender roles.

0. Why Ditch Three.js (Fundamental Solution, Not a Reskin)

The previous WebGL pipeline had four structural flaws. Switching to Blender eliminates them physically:

Old ProblemRoot CauseBlender's Fundamental Solution
Buildings "look unfinished", characters "invisible"No environment reflection, no facade structure, uncontrolled light ratioCycles real GI + World HDRI/Procedural sky + Principled BSDF; curtain walls generated with real floor heights and bay widths
Reflections impossible, water is just a stripGeometric mirror hack flips winding order, blocked by groundCycles reflections are physically real. Water only needs IOR 1.333 + low roughness, no mirror geometry needed
Gates can only regex parse source code, "written ≠ implemented"Engine state inaccessibleinspect_scene.py exports scene-graph.json from the real .blend. Gates ask the engine itself
Hours of rendering wasted due to bad compositionNo pre-render previewprojection_check.py pinhole projection calculates pixel heights of characters/water/main subjects and foreground occlusion before rendering

Two engineering disciplines are coded in, not reliant on human discipline:

  • No string replacement to modify scenes. To change visuals, edit values in src/spec/*.json and rebuild.
  • Change one parameter type per round. After changing, render one frame for comparison. Never change ten variables and guess which one worked.

1. Three Modes

ModeTimeline DrivenUse Case
Voiceover (default)edge-tts sentence-by-sentence dubbing → ffprobe measurement → plan.jsonEducational/teaching/narrative
Beat-DrivenAudio director produces beat-map.json → plan.json (lines become beat rows)Motion graphics/branding/data visualization/architectural flythrough
LoopFirst and last frame state identical + periodic motion integer cyclesGenerative art/seamless loop backgrounds

2. Team (Single Source of Truth config/production-team.json, 34 people / 12 departments)

Generated by scripts/make_team.py. To modify content, edit the generator and rerun, not the JSON by hand.

DepartmentExpert (id)Core Responsibilities
Productionproducer ProducerRequirements list + coordination; confirm render tier at Step 0, avoid discovering incomplete renders after start
director DirectorCreative veto; veto must name responsible expert and actionable direction
visual-pm Visual Production ManagerSole translation channel between design↔engineering: handover sheets / discrepancy log / arbitration
Creativestory-supervisor Story SupervisorThree-act skeleton, emotional arc, audience and learning design
domain-expert Domain ExpertFacts and figures must be sourced; scene 1 unit = 1 meter, numbers must be consistent
screenwriter ScreenwriterWrite voiceover after visuals are finalized, align each sentence with the focal point
Artart-director Art DirectorStyle bible; quantify "premium" as AgX/color temperature/light ratio/dark floor limit
character-designer Character & Scene DesignerCharacter specs and four-layer elements per scene
storyboard-artist Storyboard ArtistFrame-by-frame shots, no "city night scene" in four words
asset-supervisor Asset SupervisorSource and copyright, 100% citation rate
Assetsasset-scout 3D Asset ScoutDownload and test .blend/.glb/.fbx/.obj/.usd; annotate GLB's intrinsic aux mesh
texture-hdri-scout Texture & HDRI ScoutPBR kit + HDRI, label color space per map
modeler Blender Modeling Senior ExpertC1–C8 full categories; find ready-made before building, build per real structure
asset-pipeline Asset PipelineUnit/rotation normalization, remove aux mesh, bake pose on scatter prototypes
Sceneset-dresser Set DresserEight layers L0–L7, 12 fields per element, camera corridor no-go zones
lighting-artist Lighting ArtistWorld environment + three-point lighting + color temperature K + light ratio + practical lights
shader-artist Shader ArtistPrincipled nodes, color space, curtain wall UV per-face normalization
sim-artist FX Simulation ArtistVolume/fluid/cloth, bake cache before rendering
Animationanimation-director Animation DirectorStep table, easing function names, focus mapping
info-designer Information DesignerChart type matches data relationship, values with sources
cinematographer Cinematographermm focal length + keyframe table + DOF + pinhole projection preview
transition-designer Transition DesignerType/motivation/duration/handles, flash white ≤1.6×
rig-animator Rig & AnimationAction edit selection, ground contact, crowd cannot use shared skeleton copies
Engineeringblender-td Technical Animation TDUse builder to generate scenes only, landing rate ≥90% before rendering
pipeline-engineer Blender Pipeline EngineerEngine selection, deterministic strategy, review real scene graph
gn-artist Geometry Nodes Specialist 🆕Procedural modeling and scattering, expose parameters + fixed seed
sim-cache Simulation Cache Specialist 🆕Cache frame range including handles, delivered with project
Renderingrender-budget Render Budget SpecialistSample/bounce/denoise/resolution budget, measured and filled, no estimates
render-engineer Render Delivery EngineerTiled rendering + resume capability + frame integrity check
Compositingcompositor Compositor & ColoristCompositor stack order, glow threshold, AgX, deterministic grain
Audiovoice-director Audio DirectorDubbing/beat table, Cue table, -14 LUFS
Posteditor EditorMeasure timeline, review and accountability
subtitle-specialist Subtitle Specialist≤22 chars/line, no hangover, clean subtitles
Qualitychief-inspector Chief InspectorMachine gates + semantic spot checks, SHA256 signature chain, one-vote veto

Full prompts in references/TEAM-ROSTER.md.

Construction Standards Index:

DocumentOwnerContent
references/BLENDER-PIPELINE.mdpipeline-engineer / blender-tdbpy pipeline overview, spec contracts, determinism
references/MIGRATION-FROM-THREE.mdAllThree.js → Blender point-by-point comparison and known pitfalls
references/MODELING.mdmodelerC1–C8 modeling matrix, component library kind/params
references/SHADING-MATERIALS.mdshader-artistPrincipled channels, color space, curtain wall UV
references/LIGHTING-WORLD.mdlighting-artistWorld/HDRI/three-point lighting/color temperature/light ratio
references/CYCLES-RENDER.mdrender-budgetMeasured frame time table, speed-up priorities, tiers
references/CAMERA-MOTION.mdcinematographerKeyframe table, easing library, DOF, projection preview
references/SCENE-CONSTRUCTION.mdset-dresserEight-layer set dressing, 12 fields, camera corridor
references/COMPOSITING.mdcompositorNode stack order, 4.5 interface pitfalls, color management
references/GEOMETRY-NODES.mdgn-artistNode group contract, instancing, fixed seed
references/SIMULATION-FX.mdsim-artist / sim-cacheMantaflow/cloth/cache determinism
references/ASSET-SOURCES.mdasset-scoutTested asset sources and direct link mode, GLB traps
references/ANIMATION.mdanimation-director / rig-animatorStep table, easing, edit selection, crowd pose pitfalls
references/GUIDE.mdAllComplete guide from installing Blender to final output

3. ★ Spec-Driven Protocol (Core of the Skill)

Experts write values only, the builder does the work. Six spec files are the sole contract between experts and the engine:

src/spec/scene-manifest.json   Set dressing list (elements + scatters + camera_corridor)
src/spec/material-spec.json    Materials (materials + facades)
src/spec/light-plan.json       Light & world (world + lights + view_transform)
src/spec/camera-plan.json      Camera (camera.keys + dof)
src/spec/render-budget.json    Render budget (res/samples/bounces/motion_blur)
src/spec/post-stack.json       Compositing stack (nodes)
src/spec/fx-spec.json          Atmosphere & FX

The builder scripts/bpy/build_scene.py reads these seven files, generates out/scene.blend, and writes src/build-report.json (per-element OK/BLOCKED + real bbox + face count).

To change visuals, edit spec values and rebuild. Do not modify scene code directly. No string replacement.

4. Machine Gates (Truth Source is Real Scene Graph, Not Source Code)

First export the scene graph, then run the gates:

blender -b out/scene.blend -P scripts/bpy/inspect_scene.py -- <project>/src/scene-graph.json
blender -b out/scene.blend -P scripts/bpy/projection_check.py -- <project>
GateScriptChecks
G-ELEM-LAND11-landing-audit.pyLanding rate ≥90%, no BLOCKED, elements exist in real scene
G-ASSET-USE12-asset-usage-audit.pypublic/ asset citation rate 100%
G-HANDOFF13-audit-truth.pyDiscrepancy log has no un-arbitrated deviations
G-CLOCK14-clock-audit.pyCamera has keyframes, animation seed fixed, no real-time clock in source
G-REAL19-asset-realism.pyReal face count/texture resolution/PBR. Hero subjects must not be low-poly fakes; total faces ≤1.2 million (crowd proportion reduced by on-screen pixel height, don't let 38 high-poly characters consume all budget)
G-SCENE20-scene-audit.pyEight layers complete, 12 fields, no placeholder words, camera corridor, real ground contact
G-TRANSITION21-transition-audit.pyBoundary coverage, motivation, types ≥3, flash white ≤1.6 (N/A for single shots)
G-LOOKDEV22-lookdev-audit.pyWorld environment, three-point light, AgX, denoising, curtain wall structure, texture color space, stack order
G-RENDER23-render-audit.pyFrames complete, no missing/black frames, resolution consistent, measured render time
G-FRAME 🆕24-projection-audit.pyPre-render: characters ≥11% frame height, water ≥26%, main subject ≥33%, no foreground occlusion (proportional criteria, not pixel hard-coded)
G-MOTION18-motion-audit.pyFinal video freeze >0.5s detected + flicker heatmap

5. Render Budget (Measured, Not Estimated)

Local baseline: Ubuntu 22.04 / 2 cores / 3 GB / pure CPU software rendering, Blender 4.5.17 LTS.

TierResolutionSamplesMeasured Single Frame300 Frames Estimate
draft640×36016–206–9 s30–45 min
preview960×5402420–43 s1.7–3.6 h
final1280×7204867 s5.6 h

Motion blur roughly doubles the time. If it exceeds 2 hours, the producer must confirm the tier. No rendering start without confirming feasibility.

Speed-up priority (top-down, do the top first): persistent_data → adaptive sampling + OIDN denoise → reduce bounces → reduce resolution → reduce distant LOD → reduce samples last.

See references/CYCLES-RENDER.md.

6. Step 0–8 Workflow

StepAssigned ExpertsOutputUser Approval
0 Requirementsproducer → director → CIproduction-brief / pipeline-plan (including render tier)—
1 Theme Finalizationproducer → director → CIFinalized requirements sheet (mode selection)① Topic
2 Contentstory-supervisor → domain-expert → director → CIstory-spine / outline / evidence-ledger② Outline
3 Storyboard & Visualsart-director → character-designer → storyboard-artist → set-dresser → (lighting ∥ shader ∥ cinematographer ∥ transition ∥ sim ∥ gn ∥ render-budget ∥ modeler ∥ animation ∥ info ∥ pipeline) → visual-pm → director → CIstyle-bible / storyboard / seven spec files / handoff-spec—
4 Assets(asset-scout ∥ texture-hdri-scout) → asset-pipeline ∥ rig-animator ∥ sim-cache → asset-supervisor → CIasset-manifest / pipeline-report / rig-audit / cache-report—
5 Visuals & Textblender-td builds → export scene graph → projection check → expert review → visual-pm arbitration → director → CIout/scene.blend / scene-graph / projection-report / design-code-diff / screen-text③ Keyframes ④ Visual Text
6 Audioscreenwriter → voice-director → director → CIvoice-lines / narration-full.mp3 or beat-map—
7 Edit & Subtitles(editor ∥ subtitle ∥ voice mixer ∥ compositor colorist) → visual-pm → director → CIplan / subtitles / grade-spec / finish-report—
8 Export & Deliveryrender-budget → render-engineer → compositor → director preview → producer → CIout/final.mp4 / render-report / inspection-log⑤ Final Video

Rework: Per step ≤3 rounds, global ≤9 rounds. Escalate to user if exceeded.

7. Visuals-First Rules (Order Not Interchangeable)

  1. First produce a static frame (05-build.py <project> --frame 45)
  2. Pass G-FRAME projection check first (characters/water/main subject pixel heights meet thresholds before proceeding)
  3. Extract screen text → screen-text.json
  4. Pause for user review
  5. Modify spec values based on feedback → rebuild
  6. Only then write voiceover/beat table, dubbing, subtitles
  7. Bind timeline → full render

8. Quick Start

# 0. Install Blender (Tsinghua mirror, tested 5.7 MB/s)
python3 scripts/blender_env.py            # If not found, prints executable install command

# 1. Create independent project
python3 scripts/00-init.py "Canton Tower Night View" --duration 10 --profile preview

# 2. Experts write specs (task brief)
python3 scripts/16-team-dispatch.py step 3 --dir <project>
python3 scripts/16-team-dispatch.py brief set-dresser --dir <project> > <project>/src/team-briefs/set-dresser.md

# 3. Build + Preview + Single Frame + Gates
python3 scripts/05-build.py <project> --frame 45 --gates

# 4. Full render + encode + delivery gates
python3 scripts/07-export.py <project> --resume

# 5. Chief inspector sign-off
python3 scripts/15-chief-inspector.py <project> sign 8 PASS "All five metrics passed"

9. Asset Hard Rules

  • Real assets first: Hero subjects and close-ups must be T1 (≥20k faces or ≥2k texture + full PBR); T2 low-poly only for distant crowd; T3 procedural only for mathematical surfaces, charts, abstract graphics, or structurally justified self-built.
  • License red lines: CC0 use directly; CC-BY credit in credits.json; NC/ND reject.
  • GLB trap: Many models include aux meshes (Soldier.glb has a radius 1m Icosphere). Only merge skinned parts to the armature, hide the rest, or normalization will leave only a sphere.
  • Crowd trap: Directly copying meshes with Armature modifiers makes all copies share one skeleton, collapsing all to origin when rendering. Scatter prototypes must bake_static() pose first.

10. Dependencies

  • Blender 4.5 LTS (portable version works, no system install needed); pure CPU works, no GPU required
  • Python 3.9+: edge-tts / imageio-ffmpeg / pillow (for voiceover and subtitles)
  • System ffmpeg
  • No API key required; expert execution depends on orchestration layer that can delegate sub-agents

Full guide references/GUIDE.md; Migration guide references/MIGRATION-FROM-THREE.md; Roster references/TEAM-ROSTER.md.

相关技能