/vault-game-dev:three-procedural-scenesfrom vault-game-dev
Build or upgrade Three.js scenes whose geometry, lighting environment, materials, and textures are all generated in code, with no external art assets. Use for full procedural look development, Canvas/DataTexture or shader textures, procedural PMREM environments, seeded material generation, and converting an approved clay scene into a complete textured scene. For fast untextured white-model or monochrome work, use three-clay-scenes first.
Ships in vault-game-dev. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Build the complete look after a runnable clay baseline exists. Preserve the approved geometry, world layout, seed, camera views, interaction, and lifecycle. Full procedural means the visual assets originate in local code; it does not mean downloading an HDRI and calling the result procedural.
procedural-3d-scenes, especially ../procedural-3d-scenes/references/scene-contract.md and ../procedural-3d-scenes/references/verification.md.references/procedural-look.md before writing texture, material, environment, or shader code.references/performance-lifecycle.md before quality switches, regeneration, or postprocessing.../procedural-3d-scenes/references/multi-agent-playbook.md for parallel work.../procedural-3d-scenes/references/project-evidence.md when reusing source-project techniques.Record:
If no Clay baseline exists and the user explicitly wants Full directly, build a thin untextured vertical slice anyway. It is a diagnostic baseline, not an extra delivery demanded from the user.
Exit: the same camera and seed can reproduce the baseline; baseline browser errors are known.
For each semantic surface, define a small row:
surfaceKind | base color range | roughness range | metalness | texture generator
texture role(s) | UV/world scale | seed stream | quality sizes | fallback clay material
Choose detail based on viewing distance and physical scale. Do not generate every possible map for every material. A roughness variation may be useful where a normal map is not; an emissive map is irrelevant to a non-emissive surface.
Define the procedural environment separately: sky/background, key/fill/rim lights, reflections, shadows, and time-of-day state if any. Specify which effects are static, event-driven, or per-frame.
Exit: every texture and dynamic effect has an owner, cache/update policy, and measurable view where it matters.
{ texture, key, bytesOrDimensions, dispose } or an equivalent project-owned record through one registry.Exit: same generator version/key/seed produces the same content; repeated requests reuse the cached resource; no network art request occurs.
Replace the central Clay material factory rather than editing every geometry module. Preserve semantic groups and fallback materials.
Check:
Exit: identical near/mid/far camera views are captured against Clay; no visible seam, stretching, z-fighting, or accidental texture swimming.
Use code-built gradient/sky geometry, a procedural scene rendered through PMREM, analytic lights, or an existing project environment generator. Do not load an HDRI.
Start with:
For dynamic time-of-day, update expensive environment targets only when the change exceeds a defined threshold or at a bounded cadence. Dispose the previous target only after its replacement is ready and no longer needed.
Exit: materials are distinguishable, whites/highlights retain detail, shadow motion is stable, and environment updates do not introduce visible popping or unbounded resource growth.
First prove the direct render. Then integrate one effect at a time:
Exit: default, brightest, darkest, and effect-heavy views are inspected; no black-frame propagation, clipping, banding severe enough to obscure content, or shader errors.
Run all parent checks plus:
Recommended ownership after contract freeze:
Texture and lighting workers may develop in parallel against frozen semantic keys, but final look approval happens only after integration. No worker may add an HDRI, create a second renderer/loop, or silently change global exposure to make its local test look better.
Use internal subagents by default. Do not create visible Agent Manager sessions, worktrees, branches, commits, dependency installs, or deployments unless the user explicitly requests those actions.
Measure first. When over budget, preserve art direction while reducing cost in this general order:
The exact order is evidence-dependent. Do not sacrifice the defining feature merely to keep an invisible texture effect.
| Failure | Root-cause response |
|---|---|
| Same seed gives different scene | Audit hidden Math.random, shared stream consumption order, time-dependent inputs, and incomplete cache keys |
| Seams at tile boundaries | Use wrapped noise/sampling and inspect repeat edges; do not blur only the visible center |
| Color map looks washed/wrong | Check color-space role and output pipeline; do not compensate randomly with light intensity |
| Normal/roughness detail sparkles at distance | Check mipmaps/filtering, texel density, normal strength, and whether detail exceeds pixel footprint |
| Startup stalls | Inventory synchronous generators; remove unused variants, lower dimensions, cache, or schedule generation without changing correctness |
| Quality switch grows textures | Ensure old textures/PMREM/composer targets are released after replacement; compare settled counters |
| Bloom turns frame black | Reproduce with effects isolated; check NaN/Infinity and invalid HDR inputs before changing bloom aesthetics |
| Full looks worse than Clay | Revert the latest look layer, compare identical views, and repair lighting/material scale rather than adding more effects |
| “Procedural” scene downloads HDRI | Remove external art; generate environment locally or use analytic lights/fallback |
references/procedural-look.md — seeded texture recipes, registry, color roles, materials, environment, shaders.references/performance-lifecycle.md — generation budgets, quality changes, cleanup, postprocessing, and test patterns.What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub yhyu13/agentskillsvault --plugin vault-game-dev31 skills in this plugin
/ai-3d-scene-pipeline用 AI 生产 3D 场景/关卡的完整链路:概念多视角参考图 → 资产拆解分流(Tripo 生成 vs Blender 代码搭建)→ Tripo 出高精度道具 → Opus 级模型驱动 Blender + Unity 组装 → 独立审查 Agent 多机位盲审迭代。Use when the user wants to build or replicate a 3D scene with AI(3D 场景搭建 / 关卡复刻 / Tripo 资产生成 / 参考图还原 / 多机位验收)。/animationGame-ready animation in Blender including walk/run/idle cycles, combat, mechanical animation, camera animation, constraints, Graph Editor, and NLA workflows via MCP./blender-directorUse when starting any Blender asset task, planning a production pipeline, coordinating multiple disciplines, or matching a reference photo/concept art. Invoke for game-ready assets, hard surface, environment, character, creature, export, or any multi-skill Blender workflow.