asset-gen
Skill này làm gì
Skill này hướng dẫn agent tạo tài nguyên game như hình ảnh, mô hình 3D, nhân vật có xương (rig) và chuyển động, âm thanh và giọng nói. Dành cho người làm game muốn tự tạo tài nguyên trên máy tính của mình.
Khi nào nên dùng
- ✓Khi bạn cần một hình ảnh game hoặc sprite trong suốt được tạo từ mô tả bằng chữ.
- ✓Khi bạn cần một mô hình 3D nhân vật hoặc vật thể cho game.
- ✓Khi game cần hiệu ứng âm thanh, vòng lặp âm nền hoặc lời thoại giọng nói.
Liên kết skill
https://github.com/htdt/godogen/blob/master/asset-gen/SKILL.mdSao chép rồi dán vào AI của bạn (Claude, ChatGPT hoặc Cursor) và nhờ nó làm theo hướng dẫn.
Cách dùng
Cách dễ nhất: sao chép tin nhắn và dán vào AI của bạn. AI sẽ đọc skill và làm theo hướng dẫn.
Tin nhắn có sẵn để dán
Dành cho Claude Code, Codex hoặc Cursor: chạy lệnh trong thư mục dự án của bạn và skill sẽ được cài đặt.
Tải tệp SKILL.md về và thả vào thư mục skill của agent.
Ví dụ cách nhờ AI
“Tạo một hình ảnh trong suốt về robot thân thiện, rồi biến nó thành mô hình 3D cho game của tôi.”
5 skill mới mỗi tuần. Đọc chỉ 1 phút.
Cách hoạt động
Agent dùng các công cụ tạo cục bộ trong bộ công cụ tài nguyên godogen, mỗi tác vụ một lệnh. Dịch vụ trả phí chỉ được dùng cho những việc mà công cụ cục bộ không làm được.
Nội dung kỹ thuật (SKILL.md gốc)
Lấy nguyên văn từ GitHub, do tác giả viết bằng tiếng Anh.
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
Câu hỏi thường gặp
Tôi có cần máy tính mạnh không?
Các công cụ cục bộ chạy trên card đồ họa của máy bạn, nên một GPU đủ mạnh là quan trọng.
Những tác vụ nào dùng công cụ cục bộ miễn phí?
Hình ảnh, mô hình 3D, rig, chuyển động, đồng bộ môi, hiệu ứng âm thanh và giọng nói được tạo cục bộ theo mặc định.
Khi nào nó dùng dịch vụ trả phí?
Chỉ với những việc công cụ cục bộ không làm được, như một số phong cách hình ảnh, sprite động từ video, một số mô hình 3D và nhạc.
Chi tiết
Mô tả gốc của tác giả
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
Độ phổ biến
- Sao GitHub
- 7.3k
- Vị trí xếp hạng
- #13308
- Giấy phép
- MIT
- Cập nhật
- 16/10/2026
Bình luận
- …
Skill tương tự
gifgrep
394kCho phép agent của bạn tìm thư viện GIF, xem trước kết quả, tải một GIF, và lấy một khung hình tĩnh hoặc bảng ghép nhiều khung hình.
meme-maker
394kCho phép agent của bạn chọn một mẫu meme, thêm chú thích của riêng bạn và tạo meme dưới dạng ảnh SVG hoặc PNG.
ios-icon-gen
280kGiúp agent tạo biểu tượng cho ứng dụng iOS. Dùng biểu tượng của Apple hoặc từ các nguồn khác để tạo đúng định dạng tệp.