Blender Game Optimization
/blender-game-optimization
Optimize Blender assets for real-time engines: per-platform budgets, LOD chains, decimation, draw-call reduction and texture memory.
- 许可证
- MIT
- 出品
- GameSkill 出品
所属合集
Blender Agent Skills
Professional Blender 5.2 workflows as Agent Skills: modelling, UVs, PBR, baking, rigging, animation, export and QA.
我们测过
在 Blender 5.2.3 LTS 上通过 35/35 项检查(2026-11-03):能触发、有可运行示例、有截图和自检清单、单一职责、中英文文档齐全。触发检查是把提示词和 skill 描述做匹配,不是真实 agent 运行。
测试报告这个 skill 做什么
什么时候触发
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 …
GameSkill 测过的版本
GameSkill 调优版:skill 文件取自提交 71d031dab8bc,按我们的 skill 流程加上可运行示例、测试报告、自检清单和中文指南。
协议:基于 EL4CTEO/blender-skills(作者 EL4CTEO),协议 MIT。ZIP 保留协议文件(LICENSE),CHANGES.md 列出了 GameSkill 加的所有文件。

自检清单
- 先用 mesh_stats.py 对照目标平台预算,再动手减面 / Measures against the target platform budget with mesh_stats.py before reducing
- 按顺序减:隐藏面 → 平面上多余的循环边 → 过密的圆柱 → Decimate → 烘焙法线 / Reduces in order: hidden faces → extra loops on flat areas → over-segmented cylinders → Decimate → bake normals
- 每个资产 1–2 个材质,每多一个材质槽约多一个 draw call / 1–2 materials per asset; each extra material slot is roughly one more draw call
- LOD 每级面数减半,材质、轴心和包围盒保持一致 / Each LOD halves the triangles and keeps materials, pivot and bounds
- 运动物体用简单的碰撞体,不用渲染网格做物理 / Moving objects use simple collision proxies, never the render mesh
推荐搭配
中文指南
这个 skill 做什么
让 AI 把 Blender 资产压到实时引擎的预算里:按平台(手机、Roblox、网页、VR、主机/PC)看三角面、材质、贴图和骨骼预算,清理网格,按「视觉损失最小」的顺序减面,生成 LOD 链,减少 draw call(合并材质、图集、trim sheet),估算贴图显存。自带两个脚本:scripts/mesh_stats.py 出预算报告,scripts/make_lods.py 生成 LOD1–LOD3。
什么时候用
- 资产太重、导出前想对照某个平台的预算
- 要给模型做 LOD 链
- 想知道一个资产会有几个 draw call、占多少贴图显存
怎么装
下载本页的 ZIP,把 blender-game-optimization/ 整个文件夹放进 .claude/skills/(Claude Code)或 .agents/skills/(Codex、Cursor),重启 agent。
最小示例
ZIP 里的 gameskill/examples/tests/build_scene.py 用代码在 Blender 5.2 里搭一个原创场景:一根带灯罩的灯柱(3 个材质、一张 2k 和一张 1k 贴图,故意留了重复顶点和散点)、一个带未应用细分修改器的箱子、一只带 80 根骨骼的小怪物。然后照 skill 的步骤跑 blender -b scene.blend -P scripts/mesh_stats.py -- --objects SM_LanternPost --budget mobile 和 scripts/make_lods.py -- --objects SM_LanternPost --cleanup --rename。SKILL.md 里提到的 blender-core、blender-asset-qa 是同一作者的其他 skill。
我们怎么测的
在 Blender 5.2.3 LTS 后台模式下原样运行 skill 自带的两个脚本,共 13 项检查:三角面数和我们在 Blender 里自己数的完全一致、draw call 按材质槽计、2k 贴图 21.3 MB / 1k 贴图 5.3 MB(和 skill 表格一致)、手机预算标出材质和超过 1024 的贴图、网页预算只标材质、有骨骼修改器时识别为角色并标出 80 > 75 根骨骼、未应用的修改器计入面数、清理正好删掉 26 个点(10 个散点 + 16 个重复点)、LOD1–3 的面数约为 50% / 25% / 12.5%、LOD 隐藏、材质和包围盒不变、自定义比例可用、找不到物体时干净地报错;再用 Workbench 渲染 LOD0–LOD3 对比图。结果在 gameskill/test-report.json。
AI 生成模型怎么减面
- 先
mesh_stats.py --budget <平台>看超了多少; - 一律带
--cleanup:生成模型常是没焊接的三角形,不焊接就减面会出破洞; - 比例 = 目标面数 ÷ 当前面数,一次到位,例如 2 万 ÷ 131 万 ≈ 0.015;
- 减完对照原模型检查包围盒和表面偏差,再看一眼剪影。
搭配
blender-export-pipelines:减完面后按引擎导出multiview-to-web-3d-asset:AI 生成的模型先减面再上网页steam-launch-check:上线前检查性能和包体
安装
告诉你的 AI
Install the skill from https://gameskill.dev/skills/blender-game-optimization/install.md
GameSkill 测过的版本
mkdir -p .claude/skills
curl -fsSL https://gameskill.dev/dl/skills/blender-game-optimization.zip -o /tmp/gameskill-blender-game-optimization.zip
unzip -oq /tmp/gameskill-blender-game-optimization.zip -d .claude/skills
rm /tmp/gameskill-blender-game-optimization.zip包含内容
- A pitfalls section with the mistakes to avoid
- Bundled 3 scripts the agent reads when needed
- GameSkill example: a 1.3M-triangle generated rock taken to a 20k budget in one make_lods.py run, with the triangle-soup failure caught and fixed by --cleanup
适合
- When an asset is too heavy, before export
- Targeting a platform budget
- AI-generated meshes with a million triangles that need to fit an engine
试试这条提示词
This prop is 200k triangles. Make LODs that fit a mobile budget.关于这个 Skill
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.
From the blender-game-optimization SKILL.md in EL4CTEO/blender-skills.
What's inside
- Budgets (guidance per asset, 2026)
- Decimate modes
- The hidden cost: vertex splits
- LOD rules
- Draw calls and batching
- Collision
- Rig and animation cost
- Gotchas
AI-generated meshes
Generated 3D models often arrive with a million triangles or more when an engine prop wants about 20k, and often as an unwelded triangle soup. GameSkill's added example (gameskill/examples/tests/dense_to_budget.py) builds such a rock in code (1,310,720 triangles), takes it to 20,000 with one make_lods.py ratio (target ÷ current) while the bounds stay within 1% and the mean surface distance under 0.2% of the diagonal, and shows the common failure: decimating the soup without --cleanup leaves 1.35M open edges and a surface 6% off; with --cleanup it welds first and comes out closed. The idea for this example comes from a post by @Bingeljell on decimating AI meshes (link only; no text used).
Good to know
Every skill in Blender Agent Skills builds on blender-core, which runs Python in Blender (live through MCP, or headless) and routes tasks. Install the two together.
环境要求
- Blender 5.2+
- The blender-core skill from the same pack
- Optional: a Blender MCP server for live control
常见问题
AI 2D 美术与序列帧管线 Sprite Asset Pipeline
把 AI 生成的原始视频直接变成商业级透明 2D 游戏序列帧:绿幕/溢色消除命令、0px 脚底锚点锁死排版、动作非线性重定时(4.33s → ~1.88s 含打击顿帧)与 Phaser / Godot 4 图集一键导出。
- FFmpeg 去绿幕 + 边缘溢色消除抽帧命令生成器
- 0px 脚底锚点自动对齐排版(彻底杜绝人物上下飘移)
基于 EL4CTEO/blender-skills (作者 EL4CTEO,协议 MIT)。ZIP 里保留原作者的 LICENSE 和 NOTICE,ATTRIBUTION.md 和 CHANGES.md 写明来源提交和 GameSkill 加的内容。
Blender Agent Skills 中的更多 Skills
查看全部 8 个Blender Add-on Development
Write Blender 5.2 add-ons as extensions: manifest, operators and panels, properties, modal tools, bundled wheels and CLI build and publish.
Blender Animation
Animation in Blender 5.2: layered actions, Python keyframing, NLA, mocap retargeting, baking rigs to export skeletons and per-clip export.
Blender Asset QA
Mandatory review gate for any mesh or asset created or edited in Blender.
Blender Character Rigging
Character rigging in Blender 5.2: Rigify, bone layers, IK/FK, robust skinning, correctives and game skeletons for Unity, Unreal and Roblox.
相似 skills
3AGameFactory (GameFactory-3A)
An Apache-2.0 framework of agent skills and pipelines that turns a game requirement into assets (image, 3D, motion, audio, CG video) and engine-ready code for UE5, Blender, Unity, Godot 4 and three.js.
Hermes GameForge
A game-development plugin for Hermes Agent with 10 agent skills and 9 tools: SFX, music, NPC voices, pixel sprites, tilesets, low-poly 3D, web/Godot/Unity builds, a playtester that plays the build, and itch.io export. Runs offline by default.
ForgeSkills
28 gated game-development agent skills (concept, orchestration, verification, Blender headless, reference reconstruction, textures, animation, VFX, lighting, foliage, Godot pipeline) plus Python tools that measure the result. GameSkill hosts the 27 we ran, with the tools. Apache-2.0.
MCP for Blender (blender-mcp)
Community plugin to control Blender with any LLM. The most-starred game-adjacent MCP server on GitHub.