/blender-web-3d:blender-web-3dfrom blender-web-3d
Builds, modifies, and publishes Blender 3D models as optimized Three.js/Next.js web experiences. Handles headless CLI or Blender MCP workflows, GLB export, mesh compression, shaders, and Vercel deployment.
Ships in blender-web-3d. 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 detailed 3D models with scripted, reproducible Blender edits, optimise them into small GLBs, and serve them in a Three.js viewer that looks like a beauty render and holds 60 fps. The whole loop runs headless, so every change is a reviewable script, every state is a versioned file, and every result is verified by looking at pictures.
assets/
├── blender/
│ ├── demo_station.py # complete procedural reference model (all modelling patterns)
│ ├── render_beauty.py # EEVEE/Cycles rig: AgX, compositor bloom, planet, 3 framed views
│ └── export_glb.py # scoped raw GLB export (root hierarchy only, no compression)
└── viewer/ # Vite + three r186 template — `npm i && npm run dev`
├── scripts/optimize-glb.mjs # raw -> runtime GLB (dedup, instance, meshopt, webp)
└── src/
├── viewer.js # createViewer(): renderer, env, post, load, animate, loop
├── quality.js # adaptive tiers with asymmetric hysteresis
├── batching.js # runtime static batching (animation-safe, dequantizing)
└── shaders/ # space.js (sky/IBL/stars/planet), patches.js (hull/windows/
# solar), post.js (NaN-scrub, film finish), noise.glsl.js
For a new project: copy assets/viewer into the app, then point model at your GLB and
set the name-keyed options (spin, patches, strobes). The template ran the Aurora
GLB unmodified. Name Blender materials and pivots deliberately, because names are
the contract between the model and the viewer (Hull* gets plating, Window_*
living windows, *Solar* cells, Beacon_Red/Green nav strobes, *_Pivot* spins).
blender --background file.blend --python script.py -- args):
the default. Reproducible, versionable, no GUI, works in CI.uvx blender-mcp): socket server
only inside a live GUI session (sidebar → "Connect to MCP server"). It's inert in
--background. Use it when the user is watching the viewport and wants live iteration.bpy.data.filepath, avoid operators
needing a 3D-view context (bpy.data.meshes.new_from_object(obj.evaluated_get(dg))),
and stay idempotent.cp <prev>.blend <next>.blend. Never edit a previous version.references/blender-scripting.md first (it includes the Blender 5.x API table).render_beauty.py --engine EEVEE --samples 32 (seconds),
2-3 views. Look at the PNGs. Geometry bugs are obvious in pictures and
invisible in logs.export_glb.py) → optimize (optimize-glb.mjs) →
references/export-pipeline.md. Read its trap list: flatten/palette silently
break JS pivots and material names.public/models/, bump the path + preload link.?debug exposes
window.__viewer. Drive frames with __viewer.frame(n) and capture
canvas.toDataURL(), which works even when the pane is hidden (see threejs-viewer.md).
Check a hero view AND a close-up. Close-ups expose shader and shadow bugs that
wide shots hide.render_beauty.py --engine CYCLES, then deploy
(npx vercel deploy --prod --yes; hand the command to the user if blocked).references/blender-scripting.md: managed-script pattern, Blender 5.x API
changes, bmesh construction, verification/beauty renders, BVH orphan cleanup,
draw-call consolidation with the animated-ancestor rule.references/export-pipeline.md: raw export + gltf-transform optimisation, the
flatten/palette/instance/quantization traps, what needs baking.references/lookdev-and-shaders.md: the quality bar, AgX on both sides, custom
ShaderMaterial and onBeforeCompile rules, the quantized-geometry trap, procedural
detail that doesn't alias, and the shader recipes in the template.references/performance.md: draw calls → runtime batching → meshopt/KTX2 →
adaptive tiers → shadow-on-demand (and its per-light trap), with measured numbers.references/threejs-viewer.md: template architecture, NaN-scrub rule, motion,
occluded-window trap and hidden-pane frame capture, debugging playbook, page craft.references/baked-lighting.md: Cycles lightmap bakes → filtered RGBE HDR →
lightMap on UV2, per-room reflection probes, GTAO with glass hidden.Locate the object first. Don't guess. Headless probe scripts that dump object names, world bounds, radii, and angular positions (grouped by name pattern) identify what the user photographed in one run. Fix by script, re-render the same view, and compare. In the browser, bisect by toggling scene features (background, environment, light, shadows) and reading pixels. Render the model alone in a fresh Scene to separate geometry bugs from scene-state bugs.
assets/blender/demo_station.py (opens in a new tab)assets/blender/export_glb.py (opens in a new tab)assets/blender/render_beauty.py (opens in a new tab)assets/viewer/README.md (opens in a new tab)assets/viewer/index.html (opens in a new tab)assets/viewer/package-lock.json (opens in a new tab)assets/viewer/package.json (opens in a new tab)assets/viewer/public/models/station.glb (opens in a new tab)assets/viewer/scripts/copy-decoders.mjs (opens in a new tab)assets/viewer/scripts/optimize-glb.mjs (opens in a new tab)assets/viewer/src/batching.js (opens in a new tab)assets/viewer/src/main.js (opens in a new tab)assets/viewer/src/quality.js (opens in a new tab)assets/viewer/src/shaders/noise.glsl.js (opens in a new tab)assets/viewer/src/shaders/patches.js (opens in a new tab)assets/viewer/src/shaders/post.js (opens in a new tab)assets/viewer/src/shaders/space.js (opens in a new tab)assets/viewer/src/style.css (opens in a new tab)assets/viewer/src/viewer.js (opens in a new tab)assets/viewer/vite.config.js (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub czlonkowski/blender-web-3d-skill --plugin blender-web-3dOther plugins' skills for the same job