/roblox-studio-plugin:blender-game-optimizationfrom Roblox Studio
Optimize Blender assets for real-time engines - triangle/material/texture/bone budgets per platform (mobile, Roblox, web, VR, console, PC), LOD chains, decimation modes, mesh cleanup, draw-call reduction (material merging, atlases, trim sheets), instancing, vertex-split costs, collision proxies, texture memory. Use when an asset is too heavy, before export, or when targeting a platform budget.
Ships in Roblox Studio. 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; scripts run unread.
Every script in scripts/ exposes run(**kwargs) -> dict and a CLI that prints one @@JSON@@{...} line.
mcp__blender__execute_blender_code with import sys; sys.path.insert(0, "<this skill>/scripts"); import mesh_stats; print(mesh_stats.run(budget="roblox")).blender -b file.blend -P <this skill>/scripts/mesh_stats.py -- --budget roblox (add --save out.blend to make_lods.py to keep the result).Always re-run a QA pass after optimizing: the blender-asset-qa skill from EL4CTEO/blender-skills if installed (not bundled), otherwise re-measure with mesh_stats.py and inspect with mcp__blender__look.
scripts/mesh_stats.py -- --objects ... --budget mobile|roblox|web|vr|console|pc. It returns tris, estimated draw calls, materials, texture VRAM, bones, and the over-budget items.make_lods.py --cleanup (merge by distance 0.1 mm, dissolve degenerate, delete loose). Remove hidden faces: back-to-back faces and faces under other parts (qa_check → back_to_back in blender-asset-qa if installed, plus a manual pass with mcp__blender__look and shading: "xray").blender-texture-baking if installed).scripts/make_lods.py -- --objects SM_X --rename creates _LOD1.._LOD3 at 50/25/12.5%. Check every LOD silhouette with mcp__blender__look.blender-export-pipelines if installed; per-engine FBX/glTF settings are also in keyframe-coach's references/engines.md).| Platform | Hero char tris | Prop tris | Mats/asset | Max texture | Bones |
|---|---|---|---|---|---|
| Mobile | 5–15k | 0.3–3k | 1–2 | 1024 | ≤75 |
| Roblox | body ≤10,742 (head 4k, torso 1.75k, limb 1,248); accessory/clothing 4k | ≤20k per MeshPart | 1 (SurfaceAppearance) | 1024 (PBR), 4k max | R15 + optional |
| Web (three.js/Babylon) | 10–30k | 1–10k | 1–2 | 2048 | ≤100 |
| Standalone VR (Quest) | 10–40k | 1–10k | 1–3 | 2048 | ≤100 |
| Console / PC | 50–150k | 5–50k | 2–6 | 4096 | 150–300 |
| UE5 Nanite (static) | — | millions OK | few | 4096+ | n/a |
| Whole-scene limits matter more than single assets: mobile ≈ 100–300k tris visible and < 100–200 draw calls; PC ≈ millions of tris and < 2–5k draw calls. |
| Mode | Use | Notes |
|---|---|---|
COLLAPSE (ratio) | organic, scans, LODs | use_symmetry, vertex group factor to protect faces/hands; triangulates |
UNSUBDIV (iterations) | meshes made by subdividing quads | restores the quad grid cleanly |
DISSOLVE (planar, angle) | hard-surface / CAD | delimit {"SEAM","SHARP","MATERIAL","UV"}; keeps the silhouette, makes n-gons → triangulate on export |
| Protect UV seams and silhouette: decimate a copy, then compare. If UVs tear at LOD1, the ratio is too aggressive for that topology, so re-unwrap or use a manual LOD. |
GPU vertex count = unique (position, normal, UV, color) combinations. Every UV seam and hard edge duplicates vertices, so engine vertex counts are often 1.5–3× Blender's. Minimize seams where they aren't needed, keep hard edges = seams (so the split happens once), and don't add vertex colors or extra UV sets you don't use.
lod_bias auto).RenderFidelity=Automatic does it. Keep each MeshPart ≤ 20k tris and use a simple CollisionFidelity (Box/Hull) for non-walkable parts.EXT_mesh_gpu_instancing with export_gpu_instances) or as one mesh + transforms in the engine.Keep collision separate and simple: boxes/convex hulls of ≤ 32–255 verts. UE UCX_<Mesh>_##, Godot -colonly/-convcolonly suffix, Unity MeshCollider on a simplified mesh, Roblox CollisionFidelity. Never use the render mesh as a physics mesh for anything that moves.
Limit to 4 influences per vertex (vertex_group_limit_total(limit=4) + normalize). Remove non-deforming bones from the export (use_armature_deform_only). Bake constraints and drivers to keys. Shape keys cost memory per vertex, so drop unused ones and keep only deltas (glTF sparse accessors handle this).
make_lods.py evaluates them first. Other paths need you to apply them.Ctrl+J) merges materials and UV maps by name. Rename the UV maps identically first, or the UVs get lost.Weld modifier is the non-destructive merge by distance. Use mode="CONNECTED" to avoid welding separate parts.What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub ritvarsbiksis/roblox-studio-plugin --plugin roblox-studio-pluginOther plugins' skills for the same job
5 skills in this plugin
/keyframe-coachAnimate game characters and props in Blender using the 12 principles of animation adapted for games (responsiveness, loops, blending, root motion, export). Use when the user wants to animate, block, polish, review or export a character/creature/weapon animation in Blender for a game engine (Unity, Unreal, Godot, Roblox), or asks why an animation looks stiff, floaty, slidey or pops in-engine./roblox-publish-checklistEvidence-backed release gate for a Roblox experience: classify gates, block on persistence, remote, purchase and cloud failures, exercise the shipped surface, check Creator Dashboard settings, and report READY / NOT READY / READY WITH ACCEPTED RISK. Use before publishing or updating an experience, restarting servers, or when asked whether a build is ready, safe or tested enough to ship./