AI column

Design@donghyeok99Staff

sprite-stacking: fake-3D pixel art you can spin, from four views

Give it four pixel drawings (top, side, front, back) and it carves a fake-3D sprite that turns to any angle

Flat layers carved from the top, side, front and back views sit stacked one step apart and turn as a car; midway they pull apart.
Flat layers carved from the top, side, front and back views sit stacked one step apart and turn as a car; midway they pull apart.
Who
Made by Daniel White, for people who need turning props in a top-down game or a pixel art film.
When
Public since November 20, 2026. No release tag yet; last changed on November 24.
Where
Works with Claude Code, Codex, Cursor, OpenCode, Gemini CLI and Pi. Runs in Python on your own machine.

What was hard

Putting one car into a top-down game meant drawing it eight or sixteen times, once per direction. A 3D model loses the pixel look, and sprite stacking by hand means drawing every layer yourself, which is hard to even start.

What it does about it

sprite-stacking takes only four drawings: the object seen from the top, side, front and back. It carves a volume by keeping what all four views cover, then cuts that into thin layers from the ground up. To draw it, each layer is rotated by the same angle, squashed for the camera's pitch and lifted one pixel, so every angle comes out in crisp pixels.

Six sprite-stacked props spinning
Six sprite-stacked props spinning
From the four-view sheet to slices to the render
From the four-view sheet to slices to the render

What people made with it

GitHub@wcfcarolina132026-11-23

They brought the method into their own engine for pixel art films, with a proof film of props such as a wheelie bin growing in and turning, and merged it.

A prop like a wheelie bin or a smoothie stand can grow in, turn and change pitch, with no 3D engine and nothing paid.
GitHub@f-o-x112026-11-23

Someone from a static hosting team carved the README's car at 18 slices into a 105 KB single-file viewer and proposed a step for sharing it at a link.

I built the README car from `tests/check.py`'s views with `views_to_slices.py ... --slices 18 --html viewer.html` (105 KB).
comments 0 (2026-11-26 as of)GitHub ↗

How it runs inside

  1. 1

    You → Claude Code / Codex

    "Make a rotatable pixel art car."A request like the ones in the skill's description makes the agent pick it up.skills/sprite-stacking/SKILL.md
  2. 2

    Claude Code / Codex → sprite-stacking (SKILL.md)

    Get the four views: TOP, SIDE, FRONT, BACKWith no image generator, the agent draws the views itself in a short Python script.skills/sprite-stacking/SKILL.md
  3. 3

    Claude Code / Codex → views_to_slices.py

    views_to_slices.py views.png slices.pngIt removes the background, strips the outlines and puts the four views on one shared palette.skills/sprite-stacking/scripts/views_to_slices.py
  4. 4

    views_to_slices.py → slices.png

    carve: keep voxels all four views coverWhat is left is cut into flat layers from the ground up and laid out in one row.skills/sprite-stacking/scripts/views_to_slices.py
  5. 5

    views_to_slices.py → viewer.html

    --preview check.png --html viewer.htmlIt writes a check sheet and a single-file viewer with the slice strip inside.skills/sprite-stacking/scripts/views_to_slices.py

What goes in, what comes out

"Make a rotatable pixel art car."A pixel car you can turn
"Sprite stack this 4-view sheet and give me a turntable."A slice strip PNG and a turntable viewer
"Add a fake 3D pixel art tree to my Godot game."A tree that turns inside a Godot game

Is it for you

Good for

  • Top-down games that need cars, trees or buildings that turn without a drawing per direction
  • Pixel art films and dioramas that need turning props
  • Starting with only an agent, without an image generator

Not for

  • A hollow that no view can see (a truck bed, a hollow arch) fills in; those slices have to be fixed by hand after carving.
  • Soft edges and thin 1px lines smear once the layers rotate; the skill says to redraw rather than salvage.
  • It needs Python 3 with Pillow and NumPy.

Reviewed by Devalley’s editor before publishing. How the column is made

Sign in to post, comment and like.Sign in

Report

Reason

Read the community rules