Generate 3D meshes for ZX games using Blender bpy in headless mode. **Triggers:** "generate mesh", "3D model", "low-poly", "blender script", "hard surface", "organic mesh", "metaballs", "UV unwrap", "export glb". **Before generating:** Check `.studio/visual-style.md` for project style specs. **Load references when:** - Basic shapes, primitives → `references/bpy-primitives.md` - Modifiers (bevel, mirror, array) → `references/bpy-modifiers.md` - Organic shapes, metaballs, skin → `references/bpy-organic-workflows.md` - UV, normals, cleanup, export → `references/bpy-post-processing.md` - Tangent export for normal maps → `references/bpy-tangent-export.md` - Project structure, multiple assets → `generator-patterns` skill **Related skills:** - NORMAL MAPS: `procedural-normal-maps` (requires tangent export) - CHARACTERS: `procedural-characters` (extrude+scale paradigm) - TEXTURING: `mesh-texturing-workflows` - ANIMATION: `procedural-animations`
/plugin marketplace add nethercore-systems/nethercore-ai-plugins/plugin install zx-procgen@nethercore-ai-pluginsThis skill inherits all available tools. When active, it can use any tool Claude has access to.
references/bpy-modifiers.mdreferences/bpy-organic-workflows.mdreferences/bpy-post-processing.mdreferences/bpy-primitives.mdreferences/bpy-tangent-export.mdGenerate game-ready 3D meshes with proper UVs and normals for Nethercore ZX.
Blender 3.0+ must be installed and in PATH:
blender --version
Run mesh generation via: blender --background --python .studio/generate.py -- --only meshes
Write one mesh spec per file under .studio/specs/meshes/:
# .studio/specs/meshes/barrel.spec.py
MESH = {
"mesh": {
"name": "barrel",
"primitive": "cylinder",
"params": {"radius": 0.45, "depth": 1.1, "vertices": 24},
"modifiers": [{"type": "bevel", "width": 0.02, "segments": 2}],
"uv": {"mode": "smart_project", "angle_limit": 66.0},
"export": {"tangents": True},
}
}
Generate with:
blender --background --python .studio/generate.py -- --only meshes
| Mesh Type | Workflow | Reference |
|---|---|---|
| Props, weapons, vehicles, architecture | Polygon modeling (primitives + modifiers) | bpy-primitives.md, bpy-modifiers.md |
| Blobby shapes (slimes, eggs) | Metaballs | bpy-organic-workflows.md#metaballs |
| Creatures from skeleton | Skin modifier | bpy-organic-workflows.md#skin-modifier |
| Complex smooth blends | SDF pipeline | bpy-organic-workflows.md#sdf-pipeline |
Core Primitives:
bpy.ops.mesh.primitive_cube_add() - Crates, boxesbpy.ops.mesh.primitive_cylinder_add() - Barrels, pillarsbpy.ops.mesh.primitive_uv_sphere_add() - Spheres, domesbpy.ops.mesh.primitive_cone_add() - Spikes, conesbpy.ops.mesh.primitive_torus_add() - Rings, wheelsKey Modifiers: MIRROR, BEVEL, SOLIDIFY, ARRAY, BOOLEAN, DECIMATE
See references/bpy-modifiers.md for detailed modifier patterns.
| Use Case | Triangle Budget | Bones (if animated) |
|---|---|---|
| Swarm entities | 50-150 | - |
| Props | 50-300 | - |
| Characters | 200-500 | 16-24 |
| Vehicles | 300-800 | - |
| Hero/close-up | 500-2000 | 32-48 |
Texture resolution: Power-of-2 only (64, 128, 256, 512)
Every mesh MUST have before export:
smart_project or cube_projectshade_smooth + use_auto_smoothremove_doubles, delete_loosequads_convert_to_trisexport_normals=TrueSee references/bpy-post-processing.md for implementation.
One mesh spec per file:
.studio/specs/meshes/
├── barrel.spec.py
└── crate.spec.py
generated/meshes/
├── barrel.glb
└── crate.glb
[build]
script = "blender --background --python .studio/generate.py -- --only meshes && cargo build -p game --target wasm32-unknown-unknown --release"
[[assets.meshes]]
id = "barrel"
path = "../generated/meshes/barrel.glb"
If using normal maps, enable tangents:
mesh.calc_tangents() # Requires UVs
bpy.ops.export_scene.gltf(
filepath="output.glb",
export_tangents=True
)
See references/bpy-tangent-export.md for complete workflow.
This skill should be used when the user asks to "create a slash command", "add a command", "write a custom command", "define command arguments", "use command frontmatter", "organize commands", "create command with file references", "interactive command", "use AskUserQuestion in command", or needs guidance on slash command structure, YAML frontmatter fields, dynamic arguments, bash execution in commands, user interaction patterns, or command development best practices for Claude Code.
This skill should be used when the user asks to "create an agent", "add an agent", "write a subagent", "agent frontmatter", "when to use description", "agent examples", "agent tools", "agent colors", "autonomous agent", or needs guidance on agent structure, system prompts, triggering conditions, or agent development best practices for Claude Code plugins.
This skill should be used when the user asks to "create a hook", "add a PreToolUse/PostToolUse/Stop hook", "validate tool use", "implement prompt-based hooks", "use ${CLAUDE_PLUGIN_ROOT}", "set up event-driven automation", "block dangerous commands", or mentions hook events (PreToolUse, PostToolUse, Stop, SubagentStop, SessionStart, SessionEnd, UserPromptSubmit, PreCompact, Notification). Provides comprehensive guidance for creating and implementing Claude Code plugin hooks with focus on advanced prompt-based hooks API.