asset-gen
它能做什么
这个技能指导智能体制作游戏素材,例如图片、3D 模型、动画角色、声音和配音。适合希望在自己电脑上制作素材的游戏开发者。
适用场景
- ✓你需要根据文字描述制作游戏图片或透明精灵图的时候。
- ✓你需要为游戏制作 3D 角色或道具模型的时候。
- ✓游戏需要音效、环境音循环或配音的时候。
技能链接
https://github.com/htdt/godogen/blob/master/asset-gen/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“请制作一张友好机器人的透明图片,然后把它转换成 3D 模型用于我的游戏。”
每周 5 个新技能,1 分钟读完。
工作原理
智能体会使用 godogen 素材工具包中的本地生成工具,每项任务使用一条命令。付费服务只用于本地工具无法完成的工作。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
Asset Generator
Assets come from godogen_assets: local generators on this machine's GPU, one command per task, free. Its checkout here is ${GODOGEN_ASSETS}, and its docs are the reference; this page is the TL;DR plus what the game needs on top. Read ${GODOGEN_ASSETS}/README.md once (conventions, a character start to finish, checking results), and a part's README up to How it works before first using its tool.
| Command | Makes | README in the checkout |
|---|---|---|
qwen-image |
PNG from text; rgba: real transparency; edit -i ref.png: image-to-image |
image/ |
gen3d |
textured GLB from an image | mesh/ |
mia-rig |
Mixamo-rigged humanoid from a GLB | rig/ |
add-moves, gen-moves |
idle/walk/run/jump onto a rig; custom moves from text prompts | motion/ |
grip-prop |
a prop made holdable; add-moves --hold puts it in a character's hand |
motion/ |
lipsync |
speaking mouth + lip-synced clip from a voice line | lipsync/ |
stable-audio |
sound effects, seamless ambience loops | sfx/ |
qwen-tts |
voice lines from a description, or cloned from a reference line | voice/ |
A character: qwen-image rgba (T-pose) → gen3d → mia-rig --fingers --anim none → add-moves, with gen-moves for custom moves and lipsync for speech. Props stop after gen3d; one a character holds goes on through grip-prop and add-moves --hold, never by an offset tuned in the engine.
- Always pass
-ointo the project; without it, results land in the godogen_assets checkout. - One GPU job at a time, minutes per call. Run GPU tools as one sequential batch with a long timeout or in the background, never as parallel calls.
- Game budget.
gen3ddefaults to ~500k triangles and 2048² textures; pass--faces/--tex(30000 / 1024 for a character). - Style families. Generate one hero asset, derive the rest with
qwen-image edit -i hero.png, prompting only what changes. - Small sprites. A 1024px image downscaled to 64px looks muddy: design display sizes ≥128px, prompt bold flat forms, or generate a kit (several objects in one image) and slice it with
python3 ${ASSET_GEN_SKILL_DIR}/tools/grid_slice.py kit.png -o out/ --grid 2x2 --names "a,b,c,d". - Direction. Generators get left/right and facing wrong; generate one direction and flip at runtime.
- Audio format. Every tool picks it from the
-oextension. Bevy's default features decode only Ogg Vorbis, so write.oggfor Bevy. - Review before building on it. Look at every PNG. You can't look at a GLB or hear a WAV: render GLBs (
${GODOGEN_ASSETS}/README.md, Checking results) and read audio as a spectrogram (${GODOGEN_ASSETS}/sfx/README.md).
Moves that drive gameplay — root-motion locomotion, attacks, state machines, anything held, ridden or aimed, characters that touch each other: read ${ASSET_GEN_SKILL_DIR}/motion.md.
Blender
Some 3D is better built than generated. A bpy script run headless (blender -b -P make_turret.py, exporting with bpy.ops.export_scene.gltf) is often the better path when:
- the shape must be exact or articulated: a vehicle whose wheels turn, a door on its hinge, a turret that aims, kit pieces that snap together;
- a generated GLB needs work: split into parts, new pivots, decimation, several merged into one;
- the animation is outside the humanoid tools: mechanical parts, a creature of a few bones, keyframed or procedural clips.
Check what it writes like any GLB. Without blender on PATH, asset-blender script.py -- args runs the script in godogen_assets' Blender (its print goes to stderr).
Paid APIs
${ASSET_GEN_SKILL_DIR}/api.md covers Gemini / xAI Grok images, animated sprites from Grok video, Tripo 3D, Gemini TTS and Lyria music. Read it only when an asset needs one:
- godogen_assets isn't on this machine (its checkout above reads
none), or a command answersnot installed— that part isn't set up; - the local tools don't make it: frame-by-frame animated 2D sprites, music, one character voice acting many emotions, vocal barks, two-speaker dialogue, a language
qwen-ttslacks, a rig for a non-humanoid; - a local result stays wrong after rewording and a few seeds.
Paid calls cost real money: confirm with the user before the first one.
Asset manifest (in README.md)
Track every generated asset in README.md with an in-game Size column — without it, coders con
常见问题
我需要性能很强的电脑吗?
需要。本地工具运行在你电脑的显卡上,因此性能足够的 GPU 很重要。
哪些任务使用免费的本地工具?
图片、3D 模型、骨骼绑定、动作、口型同步、音效和配音默认都在本地制作。
什么时候会使用付费服务?
只用于本地工具无法制作的内容,例如某些图片风格、从视频生成的动画精灵图、某些 3D 模型和音乐。
详情
作者的原始描述
Generate game assets, locally and free by default with godogen_assets: images and transparent PNGs (Qwen-Image), textured GLB models (TRELLIS.2), rigged humanoids with generated moves and lip-synced speech, sound effects and voice lines. Paid APIs cover what the local tools can't make — Gemini / xAI Grok images, animated sprites from video, Tripo 3D, Gemini TTS voice acting, Lyria music. Use whenever a game needs generated art or audio.
repo: htdt/godogen
热度
- GitHub 星标
- 7.3k
- 排名
- #13308
- 许可证
- MIT
- 更新时间
- 2026/10/16
评论
- …