sprite-stacking
Agent skill that turns pixel art views into fake-3D sprites

- Best for
- Pixel-art developers who want objects that rotate like 3D models without building a 3D pipeline
- Makes
- Sprite-stacked slice strips, a spinning preview page and 16-direction PNG sprite sheets
- Made by
- Daniel White
- Where you use it
- CLI
- Engines
- Any engine, Web
- Pricing
- Free and open source (MIT)
- Free plan
- Yes
- Open source
- Yes (MIT)
- Export
- Writes PNG slice strips and can bake a 16-direction PNG sprite sheet, plus an optional normal map and glow mask, so the results work in any engine that draws sprites. A standalone HTML viewer is included.
- Status
- Available
sprite-stacking is an open-source skill for coding agents, made by Daniel White, that turns a pixel-art object into a "sprite stack": a pile of flat slices drawn one above the other, which looks like a 3D model when it rotates. Sprite stacking is an old indie technique, and the project's README says so. What the skill adds is an agent workflow and a way to build the slices automatically.
You give your agent four orthographic views of an object (top, side, front and back) or ask it for something like a rotatable pixel-art car. According to the README, if no image generator is available, the agent draws the views itself in a short Python script. The skill then carves a voxel shape that keeps only what all four views agree on, cuts it into 15 to 48 layers, and renders them. A command-line slicer has options for rounded shapes, palette size, normal maps and glowing parts such as headlights.
The README lists Claude Code, Codex, Cursor, OpenCode, Gemini CLI and Pi as supported agents. It needs Python 3 with Pillow and NumPy. The bundled HTML viewer has turntable, scene and drivable play modes, plus time of day and weather. White showed what the technique can do in a November 30, 2026 post on X: a harbor car chase drawn entirely with stacked slices on an HTML canvas. The GitHub repository had 1,397 stars on December 2, 2026. AIGamer hasn't tested it.
Limitation: It only rebuilds a shape from four flat views (top, side, front and back), so hollows and overhangs those views can't show come out filled in, and the output is pixel art.
FAQ
What is sprite stacking?
Sprite stacking draws an object as a pile of flat pixel-art slices, each shifted up a pixel, so it looks 3D when it rotates. The sprite-stacking skill's README notes it's a long-standing indie technique; the skill builds the slices automatically from four views.
Which AI agents does sprite-stacking work with?
The README lists Claude Code, Codex, Cursor, OpenCode, Gemini CLI and Pi. You install it with npx skills add danielwh2/sprite-stacking, or copy the skill folder into your agent's skills folder.
Can I use sprite-stacking sprites in Godot or Unity?
Yes, as images. It exports PNG slice strips and a baked 16-direction sprite sheet, which any engine can draw. The README's examples include asking the agent to add a fake-3D tree to a Godot game, but it doesn't ship an engine plugin.
Is sprite-stacking free?
Yes. It's open source under the MIT licence.
Sources
Compiled by AIGamer from sprite-stacking's own pages and the sources below, checked 2 December 2026. We haven't tested sprite-stacking hands-on.
- Daniel White on GitHub: sprite-stacking repository and README (install, how it works, viewer, licence)
- Daniel White (@dwhitedesign) on X: Harbor chase demo made from stacked 2D pixel slices on an HTML canvas, November 30, 2026 (developer's own post)
Image: Daniel White (sprite-stacking on GitHub)
Written in our own words; quotes are marked and credited. How we report