提供从单张参考图到多角色动画的完整工作流,展示如何批量生成游戏NPC素材。
卧槽 这个工作流我真跑通了 😲
只生成 1 次 AI 视频
拆出 10 个能走路的游戏 NPC
完整工作流全公开 看完直接抄 👇
第 1 步 生图排队
给 GPT Images 一张风格参考图 提示词照抄:
Generate 10 full-body 2D characters in this style. Arrange them in a 2 × 5 grid on solid green (#00FF00). Keep them separate and fully visible.
第 2 步 一次生成全员动画
把这张图喂 Seedance 2.0 提示词照抄:
Animate this lineup with Seedance 2.0. Make all ten walk in place. Keep the camera, positions and green background fixed. 5 seconds.
第 3 步 脚本拆分
只说一句:
Use Python and FFmpeg to split the grid. Remove the green, align the feet and export 10 looping PNG sprite sheets for Godot.
也可不给脚本 丢个ai做:
等距抽 13 帧 → 2×5 切格 → 色度抠绿 + 去绿边 → 每帧按 alpha 框脚底对齐 → 拼透明 Sprite Sheet
实测结果
10 组 × 13 帧 绿色残留 0%
法杖 弓 面包这些细道具都没被抠掉
Godot / Unity 导入就能切帧
已经开源 免费拿 👇
http://github.com/CryptoYuyyy02/one-video-ten-npcs
一个人做 RPG 的
NPC 动画从生成 10 次变生成 1 次
先收藏 做游戏时照着抄 👇
#AI游戏 #独立游戏 #游戏开发
来源:Felix(好运圣体) · x.com