Gemini 3.0 利用prompt生成Sprite Sheet(精靈圖)讓2D角色動起來

更新 發佈閱讀 4 分鐘

什麼是 Sprite Sheet?

raw-image

Sprite Sheet(精靈圖、角色圖集)
是一張「把多個動畫畫面集中在同一張圖片」的圖檔,通常用於:

  • 2D 遊戲角色動畫
  • 網頁/App 動畫
  • 像素風或手繪動畫
  • 即時渲染效能優化

每一個小格(frame)代表角色的一個動作瞬間。

步驟一:先上傳一張圖片

先以三麗鷗的角色來當範例

raw-image

步驟二:先請CHATGPT針對這張圖分析prompt

起始指令:可以幫我生成一個prompt 針對這支的跳躍動作的精靈圖(sprite sheet)
得到prompt後,後續可以再請CHATGPT增加幀數、背景顏色、不同動作等等
*備註:若沒指定動作的話,得到的prompt會拿到一堆不同動作的sprite sheet (如頁首的那第一張圖)

步驟三:到Gemini輸入prompt生成圖片

英文prompt

Create a sprite sheet for a single 2D game character.
Use a clean cel-shaded art style with bold outlines. The sprite sheet should contain only one animation: a jumping action with exactly 8 frames.
Arrange the frames in a single horizontal row (2×4 layout), left to right, showing anticipation, takeoff, ascent, mid-air, descent, and landing.
All frames must have identical size and consistent character proportions. Each frame must have a completely solid green background with the exact color value #00FF00, with no gradients, shadows, or textures.

繁體中文版本(對照)

「為一個 2D 遊戲角色製作精靈圖(sprite sheet)。
採用乾淨的賽璐璐上色風格與清晰粗線條。 精靈圖只包含一個動作:跳躍,且固定為 8 幀**。
動畫幀需以單排橫向排列(2×4),由左至右依序呈現蓄力、起跳、上升、空中、下降、落地。
所有幀尺寸必須完全一致,角色比例保持一致。 每一格背景必須是完全純色的綠色背景,色碼精確為 #00FF00,無漸層、無陰影、無任何紋理。

補充說明:
*目前動作是設定"跳躍",若要改變其他動作就再請CHATGPT依照現有prompt去修改動作
*格率可以依自己需求設定
*背景顏色目前用綠色(#00FF00),方便後製軟體去背

步驟四:成果

raw-image

步驟五:串接動態

使用after effects去背+串接

raw-image



留言
avatar-img
緩光臨的沙龍
0會員
3內容數