提供将四张像素平面视图转换为可旋转伪3D精灵的开源Agent技能,适合需要快速生成游戏素材的开发流程。
You want chunky pixel-art props for your game that spin like real objects, a car, a tree, a lighthouse. Then you find out that usually means learning a whole three D modeling tool first.
sprite-stacking is a free, open-source agent skill that turns four flat pixel-art views into a spinnable fake three D sprite.
Install the skill in your coding agent, make sure Python with the Pillow and NumPy libraries is on your machine, then ask in plain words, like make a rotatable pixel art car, or sprite stack this four-view sheet and give me a turntable.
From the top, side, front and back views it carves a voxel volume, keeping a voxel only where all four views cover it. It cuts that into a strip of flat layers and stacks them rotated, so the sprite turns like an object. Without an image generator, the agent draws the four views itself in a short script.
You get the slice strip, a preview and a sixteen-direction sprite sheet ready for your game. Sprite stacking is an old indie technique, and this adds the four-view carving and the agent workflow. Credit @dwhitedesign
来源:Average AI Bro · x.com