Sprite Stack Generator

Turn flat top, side, front and back views into a pixel art object you can spin to any angle. Download the slices, or bake 8, 16 or 32 directions into one sprite sheet. Nothing gets uploaded.

Free · No signup · Runs in your browser

Sprite stack generator
Object

Drop or paste your own views anywhere on the tool. They stay on your device.

How to make a sprite stack

  1. 01

    Make four flat views

    Top, side, front and back on one image, same scale in each. Generate them with SpriteCook or draw them yourself.

  2. 02

    Drop them in the tool

    It finds each view, cuts one slice per row of the side view and stacks them. Turn and tilt it until it looks right.

  3. 03

    Download for your game

    Take the slices to draw the stack in code, or a sheet with 8, 16 or 32 directions that works like any sprite.

How sprite stacking works

Each slice is a top-down picture of one layer of the object: the bottoms of the wheels, then the body, the windows, the roof. Draw the ground slice first and every next slice 1 pixel higher. Pulled apart you can see the layers. At 1 pixel apart they read as one solid car.

To turn it, rotate every slice by the same angle and lift it again. One small sheet covers every angle, and the pixels stay crisp because nothing gets painted in between.

The full guide, with Python and Godot code
A blue pixel art sports car drawn as 15 flat slices with 3 px between them
Slices 3 px apart
The same 15 slices 1 px apart, which reads as a solid car seen from above at an angle
Slices 1 px apart
One generated sheet with four flat pixel art views of a blue sports car: from the top, from the side facing left, from the front and from the back
The sports car above, one generation with Nano Banana Pro in pixel art mode at size 32.

Generate the views with SpriteCook

Drawing four matching views by hand is the slow part. This prompt asks for the layout the tool expects. Pick Nano Banana Pro with pixel art on, set the size to 32 and swap the car for your own object. Keep the layout sentences as they are.

Prompt for four flat views
Orthographic model sheet of one small blue 90s sports race car with a white center stripe, low and wide, dark windows, black tires, four views in a 2x2 grid. Top-left: TOP view looking straight down at the roof, car pointing DOWN. Top-right: SIDE view, car pointing LEFT. Bottom-left: FRONT view. Bottom-right: BACK view. Strictly orthographic, no perspective, no tilt, no three-quarter angle. Same scale in every view so length, width and height match between views. Crisp clean pixel art with a 1 px dark outline around each view, solid flat color fills, simple shading, no soft edges, no shadows, no ground, no text, no labels, no grid lines, generous empty space between views. Low-resolution chunky pixel art, each view about 32 pixels.

Look at the sheet before you stack it. A bold 1 px outline and flat fills stay crisp when the slices turn; soft edges smear. For round things, ask for a top view and one side view.

Open SpriteCook

Use it in your engine

Two ways in. The slices give you every angle and a camera you can change in the game. The direction sheet needs no special code at all.

Draw the slices (Godot 4)

Put the slice sheet in sheet. For a car moving with velocity, set turn = velocity.angle() - PI / 2.

sprite_stack.gd
extends Node2D
## Sprite stacking: draws a row of flat slices on top of each other so they look like one 3D object.
## The sheet is one row of slices, the ground slice on the left. Keep the node on whole pixels.
@export var sheet: Texture2D
@export var slices := 15 ## how many slices the sheet holds
@export var turn := 0.0 ## radians; 0 draws the slices as they are in the sheet
@export_range(0.1, 1.0) var squash := 0.75 ## 1 looks straight down; lower is a lower camera
@export var spacing := 1.0 ## screen px between one slice and the next
func _process(_delta: float) -> void:
queue_redraw()
func _draw() -> void:
if sheet == null:
return
var w := float(sheet.get_width()) / slices
var h := float(sheet.get_height())
var rect := Rect2(-floorf(w / 2.0), -floorf(h / 2.0), w, h)
var spin := Transform2D(turn, Vector2.ZERO)
for z in slices:
# turn the slice on the ground, flatten it for the camera, then lift it z slices up
var lift := Transform2D(Vector2(1, 0), Vector2(0, squash), Vector2(0, -roundf(z * spacing)))
draw_set_transform_matrix(lift * spin)
draw_texture_rect_region(sheet, rect, Rect2(z * w, 0, w, h))

Use the direction sheet (any engine)

Load it like any sprite sheet with 8 frames per row and pick the frame from the angle the object faces. Turn the outline off in the tool if your game adds its own.

direction_sprite.gd
extends Sprite2D
## Shows the frame of a direction sheet that faces the way the object moves.
## Frame 0 faces right, then each frame turns clockwise, 8 frames per row.
@export var directions := 16
func _ready() -> void:
hframes = mini(directions, 8)
vframes = ceili(directions / 8.0)
func face(angle: float) -> void:
# angle in radians, for example velocity.angle()
frame = posmod(roundi(angle / TAU * directions), directions)

More free pixel art tools

Frequently asked questions

What is sprite stacking?+
Sprite stacking is a way to fake 3D with flat pixel art. You cut an object into thin horizontal slices, one per pixel of height, and draw them on top of each other 1 pixel apart. Turn every slice by the same angle and the pile turns like a 3D model, while every pixel stays crisp.
How do I make sprite stacking slices?+
The usual way is to build the object in a voxel editor like MagicaVoxel and export its layers. For boxy objects like cars, chests and crates there is a quicker route: draw or generate four flat views (top, side, front and back) and drop them into the generator above. It cuts one slice for every row of the side view.
Which views does the generator need?+
For a boxy object, four views on one image with space between them: the top view, the side view facing left, the front and the back. Same scale in every view. For round things like trees, towers and barrels, a top view and one side view are enough. A transparent background works best, and a flat color background gets cleared for you.
Can I use sprite stacking without writing code?+
Yes. Download the direction sheet instead of the slices. It holds the stacked object at 8, 16 or 32 angles as normal frames, so any engine can show it like a sprite with directions. Frame 1 faces right and each next frame turns clockwise.
How many directions should I export?+
8 directions is enough for slow props and buildings that only face a few ways. Cars and anything that steers smoothly look better with 16 or 32. If you need every angle, use the slices and draw the stack in your engine.
Does sprite stacking work in Godot, Unity or GameMaker?+
It works in any engine that can draw a rotated image. The Godot script on this page draws a slice sheet in one node. In Unity or GameMaker, draw each slice in a loop: rotate it around its center, squash its height for the camera and move it up by its index.
Can I make a sprite stack inside SpriteCook?+
Yes. Open an image of flat views in SpriteCook and pick Sprite stack under Edit and adjust. It saves the stack as an animation with 8, 16 or 32 directions, plus the slices if you want them. The Godot and Unity exports set it up to face any direction. Engine exports need a paid plan.
Why did a hole or gap in my object come out solid?+
Flat views can only describe the outside of an object. A truck bed, an arch or a gap under a spoiler fills in, because every view sees something there. Fix those slices by hand in a pixel editor, or use a voxel editor for objects with lots of holes.
Is the sprite stack generator free?+
Yes. It runs in your browser, so your images never leave your device and there is no signup. Making the views with SpriteCook uses credits like any other generation.