[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7CCZANDHHFAHZGTCGEFCT7T":3,"skill-same:01M7CCZANDHHFAHZGTCGEFCT7T":62},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":27,"commitSha":28,"skillDirectory":29,"forksCount":14,"repositoryHtmlUrl":30,"repositoryHomepageUrl":6,"ownerHtmlUrl":31,"ownerBlogUrl":6,"ownerDescription":32,"updatedAt":33,"install":34,"resources":47},"01M7CCZANDHHFAHZGTCGEFCT7T","blender-game-optimization",null,"Optimize Blender assets for real-time engines - triangle\u002Fmaterial\u002Ftexture\u002Fbone 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.","MattMakes\u002Fmulti-herdr","MattMakes","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F5321894?v=4","01M7CCT7X2X6MXGNKCF57X67VZ","Matthew Scott","01M7CCT7Y23BTY560YX8PBMWN8",1,"MIT","https:\u002F\u002Fgithub.com\u002FMattMakes\u002Fmulti-herdr\u002Fblob\u002Fmain\u002Fskills\u002Fblender-game-optimization\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: blender-game-optimization\ndescription: Optimize Blender assets for real-time engines - triangle\u002Fmaterial\u002Ftexture\u002Fbone 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.\nlicense: MIT\nmetadata:\n  author: blender-agent-skills\n  version: \"1.2.0\"\n---\n\n# Game Optimization\n\nThe execution model is in `blender-core`. Always re-run `blender-asset-qa` after optimizing.\n\n## Procedure\n1. **Measure**: `scripts\u002Fmesh_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.\n2. **Clean**: `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`, plus manual xray).\n3. **Reduce in this order** (cheapest visual loss first): hidden\u002Finterior geometry → unnecessary edge loops on flat areas (Limited Dissolve 1–5°) → over-segmented cylinders → Decimate → bake detail to normals (`blender-texture-baking`).\n4. **Materials**: merge to 1–2 per asset (atlas \u002F trim sheet \u002F shared tiling material). Each material slot per mesh is roughly one draw call.\n5. **LODs**: `scripts\u002Fmake_lods.py -- --objects SM_X --rename` creates `_LOD1.._LOD3` at 50\u002F25\u002F12.5%. Check every LOD silhouette with `look`\u002F`review_shots`.\n6. **Re-measure**, then QA, then export (`blender-export-pipelines`).\n\n## Budgets (guidance per asset, 2026)\n| Platform | Hero char tris | Prop tris | Mats\u002Fasset | Max texture | Bones |\n|---|---|---|---|---|---|\n| Mobile | 5–15k | 0.3–3k | 1–2 | 1024 | ≤75 |\n| Roblox | body ≤10,742 (head 4k, torso 1.75k, limb 1,248); accessory\u002Fclothing 4k | ≤20k per MeshPart | 1 (SurfaceAppearance) | 1024 (PBR), 4k max | R15 + optional |\n| Web (three.js\u002FBabylon) | 10–30k | 1–10k | 1–2 | 2048 | ≤100 |\n| Standalone VR (Quest) | 10–40k | 1–10k | 1–3 | 2048 | ≤100 |\n| Console \u002F PC | 50–150k | 5–50k | 2–6 | 4096 | 150–300 |\n| UE5 Nanite (static) | — | millions OK | few | 4096+ | n\u002Fa |\nWhole-scene limits matter more than single assets: mobile ≈ 100–300k tris visible and \u003C 100–200 draw calls; PC ≈ millions of tris and \u003C 2–5k draw calls.\n\n## Decimate modes\n| Mode | Use | Notes |\n|---|---|---|\n| `COLLAPSE` (ratio) | organic, scans, LODs | `use_symmetry`, vertex group factor to protect faces\u002Fhands; triangulates |\n| `UNSUBDIV` (iterations) | meshes made by subdividing quads | restores the quad grid cleanly |\n| `DISSOLVE` (planar, angle) | hard-surface \u002F CAD | delimit `{\"SEAM\",\"SHARP\",\"MATERIAL\",\"UV\"}`; keeps the silhouette, makes n-gons → triangulate on export |\nProtect 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.\n\n## The hidden cost: vertex splits\nGPU 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.\n\n## LOD rules\n- Halve the tris per level. Switch at screen size ~0.5 \u002F 0.25 \u002F 0.125 (UE \"Screen Size\", Unity LOD Group %, Godot `lod_bias` auto).\n- LODs keep the same materials (or fewer: merge them at LOD2+), same pivot, same bounds.\n- Skeletal LODs: remove finger\u002Fface bones at LOD2+ (the engine bone-reduction tools handle this). Keep the skinning on the same skeleton.\n- Far LOD \u002F foliage: impostor\u002Fbillboard. Unreal Nanite (static, opaque\u002Fmasked) and Godot's auto mesh LOD can replace a hand-made chain.\n- Roblox: no manual LODs. `RenderFidelity=Automatic` does it. Keep each MeshPart ≤ 20k tris and use a simple `CollisionFidelity` (Box\u002FHull) for non-walkable parts.\n\n## Draw calls and batching\n- **Merge** static meshes that share a material and are always seen together (join objects). **Don't merge** across large areas, because that defeats frustum\u002Focclusion culling.\n- **Instancing**: repeated objects as linked duplicates (Alt+D, shared mesh) or collection instances. They export as instances (glTF `EXT_mesh_gpu_instancing` with `export_gpu_instances`) or as one mesh + transforms in the engine.\n- **Atlases\u002Ftrim sheets**: put many props on one texture set. Trim sheets let walls, panels and pipes share one 2k material.\n- **Texture memory** (upper bound, uncompressed RGBA8 + mips): 1k = 5.3 MB, 2k = 21 MB, 4k = 85 MB. Engines compress (BC7\u002FASTC ≈ 4–8×). Pack grayscale maps into ORM channels to cut it 3×.\n\n## Collision\nKeep collision separate and simple: boxes\u002Fconvex hulls of ≤ 32–255 verts. UE `UCX_\u003CMesh>_##`, Godot `-colonly`\u002F`-convcolonly` suffix, Unity MeshCollider on a simplified mesh, Roblox `CollisionFidelity`. Never use the render mesh as a physics mesh for anything that moves.\n\n## Rig and animation cost\nLimit 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).\n\n## Gotchas\n- Decimate on meshes with unapplied modifiers: `make_lods.py` evaluates them first. Other paths need you to apply them.\n- Join (`Ctrl+J`) merges materials and UV maps by **name**. Rename the UV maps identically first, or the UVs get lost.\n- The `Weld` modifier is the non-destructive merge by distance. Use `mode=\"CONNECTED\"` to avoid welding separate parts.\n- Triangulate before measuring if the engine will. Quads already count as 2 tris in the stats.\n","# Game Optimization\n\nThe execution model is in `blender-core`. Always re-run `blender-asset-qa` after optimizing.\n\n## Procedure\n1. **Measure**: `scripts\u002Fmesh_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.\n2. **Clean**: `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`, plus manual xray).\n3. **Reduce in this order** (cheapest visual loss first): hidden\u002Finterior geometry → unnecessary edge loops on flat areas (Limited Dissolve 1–5°) → over-segmented cylinders → Decimate → bake detail to normals (`blender-texture-baking`).\n4. **Materials**: merge to 1–2 per asset (atlas \u002F trim sheet \u002F shared tiling material). Each material slot per mesh is roughly one draw call.\n5. **LODs**: `scripts\u002Fmake_lods.py -- --objects SM_X --rename` creates `_LOD1.._LOD3` at 50\u002F25\u002F12.5%. Check every LOD silhouette with `look`\u002F`review_shots`.\n6. **Re-measure**, then QA, then export (`blender-export-pipelines`).\n\n## Budgets (guidance per asset, 2026)\n| Platform | Hero char tris | Prop tris | Mats\u002Fasset | Max texture | Bones |\n|---|---|---|---|---|---|\n| Mobile | 5–15k | 0.3–3k | 1–2 | 1024 | ≤75 |\n| Roblox | body ≤10,742 (head 4k, torso 1.75k, limb 1,248); accessory\u002Fclothing 4k | ≤20k per MeshPart | 1 (SurfaceAppearance) | 1024 (PBR), 4k max | R15 + optional |\n| Web (three.js\u002FBabylon) | 10–30k | 1–10k | 1–2 | 2048 | ≤100 |\n| Standalone VR (Quest) | 10–40k | 1–10k | 1–3 | 2048 | ≤100 |\n| Console \u002F PC | 50–150k | 5–50k | 2–6 | 4096 | 150–300 |\n| UE5 Nanite (static) | — | millions OK | few | 4096+ | n\u002Fa |\nWhole-scene limits matter more than single assets: mobile ≈ 100–300k tris visible and \u003C 100–200 draw calls; PC ≈ millions of tris and \u003C 2–5k draw calls.\n\n## Decimate modes\n| Mode | Use | Notes |\n|---|---|---|\n| `COLLAPSE` (ratio) | organic, scans, LODs | `use_symmetry`, vertex group factor to protect faces\u002Fhands; triangulates |\n| `UNSUBDIV` (iterations) | meshes made by subdividing quads | restores the quad grid cleanly |\n| `DISSOLVE` (planar, angle) | hard-surface \u002F CAD | delimit `{\"SEAM\",\"SHARP\",\"MATERIAL\",\"UV\"}`; keeps the silhouette, makes n-gons → triangulate on export |\nProtect 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.\n\n## The hidden cost: vertex splits\nGPU 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.\n\n## LOD rules\n- Halve the tris per level. Switch at screen size ~0.5 \u002F 0.25 \u002F 0.125 (UE \"Screen Size\", Unity LOD Group %, Godot `lod_bias` auto).\n- LODs keep the same materials (or fewer: merge them at LOD2+), same pivot, same bounds.\n- Skeletal LODs: remove finger\u002Fface bones at LOD2+ (the engine bone-reduction tools handle this). Keep the skinning on the same skeleton.\n- Far LOD \u002F foliage: impostor\u002Fbillboard. Unreal Nanite (static, opaque\u002Fmasked) and Godot's auto mesh LOD can replace a hand-made chain.\n- Roblox: no manual LODs. `RenderFidelity=Automatic` does it. Keep each MeshPart ≤ 20k tris and use a simple `CollisionFidelity` (Box\u002FHull) for non-walkable parts.\n\n## Draw calls and batching\n- **Merge** static meshes that share a material and are always seen together (join objects). **Don't merge** across large areas, because that defeats frustum\u002Focclusion culling.\n- **Instancing**: repeated objects as linked duplicates (Alt+D, shared mesh) or collection instances. They export as instances (glTF `EXT_mesh_gpu_instancing` with `export_gpu_instances`) or as one mesh + transforms in the engine.\n- **Atlases\u002Ftrim sheets**: put many props on one texture set. Trim sheets let walls, panels and pipes share one 2k material.\n- **Texture memory** (upper bound, uncompressed RGBA8 + mips): 1k = 5.3 MB, 2k = 21 MB, 4k = 85 MB. Engines compress (BC7\u002FASTC ≈ 4–8×). Pack grayscale maps into ORM channels to cut it 3×.\n\n## Collision\nKeep collision separate and simple: boxes\u002Fconvex hulls of ≤ 32–255 verts. UE `UCX_\u003CMesh>_##`, Godot `-colonly`\u002F`-convcolonly` suffix, Unity MeshCollider on a simplified mesh, Roblox `CollisionFidelity`. Never use the render mesh as a physics mesh for anything that moves.\n\n## Rig and animation cost\nLimit 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).\n\n## Gotchas\n- Decimate on meshes with unapplied modifiers: `make_lods.py` evaluates them first. Other paths need you to apply them.\n- Join (`Ctrl+J`) merges materials and UV maps by **name**. Rename the UV maps identically first, or the UVs get lost.\n- The `Weld` modifier is the non-destructive merge by distance. Use `mode=\"CONNECTED\"` to avoid welding separate parts.\n- Triangulate before measuring if the engine will. Quads already count as 2 tris in the stats.\n",{"name":5,"license":15,"metadata":24,"description":7},{"author":25,"version":26},"blender-agent-skills","1.2.0","main","65939082a69507fbcf2161620b47d3b0b1a2ab90","skills\u002Fblender-game-optimization","https:\u002F\u002Fgithub.com\u002FMattMakes\u002Fmulti-herdr","https:\u002F\u002Fgithub.com\u002FMattMakes","Full stack web developer and aspiring game developer who is eager to learn and create!","2026-11-14 13:23:29",{"source":8,"skillName":5,"commands":35,"prompt":45,"zipAvailable":46},[36,39,42],{"tool":37,"command":38},"npx","npx skills add MattMakes\u002Fmulti-herdr --skill blender-game-optimization",{"tool":40,"command":41},"bunx","bunx skills add MattMakes\u002Fmulti-herdr --skill blender-game-optimization",{"tool":43,"command":44},"pnpm","pnpm dlx skills add MattMakes\u002Fmulti-herdr --skill blender-game-optimization","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FMattMakes\u002Fmulti-herdr\u002Fblob\u002Fmain\u002Fskills\u002Fblender-game-optimization\u002FSKILL.md",true,[48,54,58],{"path":49,"resourceType":50,"resourceTypeDesc":51,"sizeBytes":52,"sourceHtmlUrl":53},"scripts\u002F_bpyx.py","SCRIPT","脚本",4503,"https:\u002F\u002Fgithub.com\u002FMattMakes\u002Fmulti-herdr\u002Fblob\u002Fmain\u002Fskills\u002Fblender-game-optimization\u002Fscripts\u002F_bpyx.py",{"path":55,"resourceType":50,"resourceTypeDesc":51,"sizeBytes":56,"sourceHtmlUrl":57},"scripts\u002Fmake_lods.py",3956,"https:\u002F\u002Fgithub.com\u002FMattMakes\u002Fmulti-herdr\u002Fblob\u002Fmain\u002Fskills\u002Fblender-game-optimization\u002Fscripts\u002Fmake_lods.py",{"path":59,"resourceType":50,"resourceTypeDesc":51,"sizeBytes":60,"sourceHtmlUrl":61},"scripts\u002Fmesh_stats.py",3920,"https:\u002F\u002Fgithub.com\u002FMattMakes\u002Fmulti-herdr\u002Fblob\u002Fmain\u002Fskills\u002Fblender-game-optimization\u002Fscripts\u002Fmesh_stats.py",[63,70,77,84,91,98],{"skillNo":64,"name":65,"nameZh":6,"description":66,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":67,"categories":68,"keywords":69,"publishedAt":19},"01M7CD2RFC310Q4TFD6WTZ806Z","blender-workflow-recipes","End-to-end Blender 5.2 playbooks chaining the blender-* skills with QA gates - game props (mid-poly, high-to-low), game characters (sculpt\u002FAI mesh to rigged, animated export), Roblox props\u002Faccessories\u002Favatars, AI or downloaded asset cleanup, procedural environments, web\u002FAR assets, product turntables, mood\u002Fweather shots (night, rain, snow, fog). Use for complete multi-stage asset requests.","https:\u002F\u002Fgithub.com\u002FMattMakes\u002Fmulti-herdr\u002Fblob\u002Fmain\u002Fskills\u002Fblender-workflow-recipes\u002FSKILL.md",[],[],{"skillNo":71,"name":72,"nameZh":6,"description":73,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":74,"categories":75,"keywords":76,"publishedAt":19},"01M7CD2J644S1Q1NH0B1NWSQQW","blender-weather-fx","Weather effects in Blender 5.2 - looping Geometry Nodes rain, snow, dust, ash and embers with ground hits and splashes, wet surfaces, puddles with animated ripples, wall streaks, snow cover (shader + real snow geometry), storm lightning with multi-stroke flashes and bolts, engine-ready weather masks. Use for rain, storm, snow, wet street, puddle, dust or ember scenes.","https:\u002F\u002Fgithub.com\u002FMattMakes\u002Fmulti-herdr\u002Fblob\u002Fmain\u002Fskills\u002Fblender-weather-fx\u002FSKILL.md",[],[],{"skillNo":78,"name":79,"nameZh":6,"description":80,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":81,"categories":82,"keywords":83,"publishedAt":19},"01M7CD2D4VCEJG1TWK7FKSP002","blender-video-editing","Video in Blender 5.2 - Video Sequencer edits from Python (clips, image sequences, crossfades, titles, music fades, proxies, color management, H.264\u002FAAC output) and motion tracking (feature detection, camera solve, scene orientation, tripod and plane tracking, stabilization) for VFX shots. Use to cut renders\u002Ffootage together or match-move a camera.","https:\u002F\u002Fgithub.com\u002FMattMakes\u002Fmulti-herdr\u002Fblob\u002Fmain\u002Fskills\u002Fblender-video-editing\u002FSKILL.md",[],[],{"skillNo":85,"name":86,"nameZh":6,"description":87,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":88,"categories":89,"keywords":90,"publishedAt":19},"01M7CD22HZZTE91TPETJNFX535","blender-time-of-day","Time of day and atmosphere in Blender 5.2 - measured sky + sun for dawn, morning, noon, golden hour, sunset, blue hour, overcast, night\u002Fmoonlight with stars and city glow, exposure balance, height fog from visibility, god rays, Cycles vs EEVEE volumes, compositor grade, stylized moods (cyberpunk neon, horror, underwater, desert). Use for any day\u002Fnight, sunset, foggy or mood lighting scene.","https:\u002F\u002Fgithub.com\u002FMattMakes\u002Fmulti-herdr\u002Fblob\u002Fmain\u002Fskills\u002Fblender-time-of-day\u002FSKILL.md",[],[],{"skillNo":92,"name":93,"nameZh":6,"description":94,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":95,"categories":96,"keywords":97,"publishedAt":19},"01M7CD1Y6JHPVW2J5MKHZ0DF4E","blender-texturing","Texture authoring in Blender 5.2 - smart-material layers (edge wear, cavity grime, dust, rust, roughness breakup) from curvature\u002FAO masks, z-fight-safe decal and sticker placement, trim sheets, tiling + vertex-color blends, texture painting, baking the look to game texture sets. Use when a material needs wear, dirt, a decal, trims or hand painting, not just wiring.","https:\u002F\u002Fgithub.com\u002FMattMakes\u002Fmulti-herdr\u002Fblob\u002Fmain\u002Fskills\u002Fblender-texturing\u002FSKILL.md",[],[],{"skillNo":99,"name":100,"nameZh":6,"description":101,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":102,"categories":103,"keywords":104,"publishedAt":19},"01M7CD1SM4V8QK32H2QE1ZJ5QG","blender-texture-baking","Bake texture maps in Blender 5.2 Cycles - high-to-low normal maps with cage\u002Fextrusion, AO, curvature, ID, thickness, base color\u002Froughness\u002Fmetallic from procedurals, ORM packing, OpenGL vs DirectX, margins, GPU baking, fixing skewing\u002Fwaviness\u002Fseams. Use when transferring sculpt or high-poly detail to game meshes or converting procedural materials to textures.","https:\u002F\u002Fgithub.com\u002FMattMakes\u002Fmulti-herdr\u002Fblob\u002Fmain\u002Fskills\u002Fblender-texture-baking\u002FSKILL.md",[],[]]