Studio Yotsuba
Back to Node List

Sprite Stack

sprite_stack

Advanced legacy-style route: stack image layers into a pseudo-3D sprite.

Reviewed
Guide available

Input Ports

NameTypeDescription
Layers
layers
List<Image>
Required
List<Image> layers to stack. The first image is the bottom layer by default.

Output Ports

NameTypeDescription
Image
image
Image
Stacked pseudo-3D sprite image.

Parameters

NameTypeDefaultRangeDescription / Options
Angle
angle
Angle
45— / step 1

Screen-space offset angle. 0 is right, 90 is up.

Layer Step
layer_step
Float
10–32 / step 0.05

Pixel offset distance per layer.

Draw Order
draw_order
Enum
BottomFirst—

How to interpret the input list order.

  • BottomFirstBottomFirst
    Treat the first list item as the bottom layer.
  • TopFirstTopFirst
    Treat the first list item as the top layer.
Canvas
canvas_mode
Enum
Auto—

Output canvas mode.

  • AutoAuto
    Trim the output canvas to the stacked bounds.
  • FixedFixed
    Use the specified output width and height.
Width
width
Int
641–4096

Fixed output width.

Height
height
Int
641–4096

Fixed output height.

Opacity
opacity
Float
10–1 / step 0.01

Overall layer opacity.

Opacity Decay
opacity_decay
Float
10–1 / step 0.01

Opacity multiplier applied for each higher layer.

Overview

Creates sprite stacking, a pseudo-3D effect, by layering cross-section images with small offsets. This retro technique makes cars, furniture, and props look like rotatable 3D sprites by stacking sliced artwork.

Usage tips

  • Supply a list of slices ordered bottom to top. Bundle them with list_create or convert a sprite sheet into a list.
  • Promote angle to an input pin 📌 and rotate it to change the offset direction, creating the appearance of a rotating solid. Bake the rotation animation with animation_render.
  • When feeding animation or composition, use canvas_mode = Fixed to keep dimensions stable.
  • If the stack does not fit a Fixed canvas, it is center-cropped and the node displays a nonfatal warning. Auto output is limited to 4096x4096.

Related nodes

  • list_create — bundles the slice list
  • animation_render — bakes a rotation animation
  • iso_item_builder — the conventional isometric asset workflow for comparison

Notes

  • With an empty input list, Auto outputs a transparent 1x1 image and Fixed outputs a transparent image of the specified dimensions.
  • Auto changes output dimensions with angle and layer count. Use Fixed to keep the preview dimensions stable.
  • Alpha uses normal composition. Transparent areas in each layer remain transparent.

Example

  1. Use ListCreate or another node to bundle equal-sized cross-section images into a List<Image>.
  2. Connect it to SpriteStack.layers.
  3. Adjust the appearance with angle and layer_step.
  4. If needed, set canvas_mode = Fixed to keep dimensions stable for downstream composition or animation.
Back to Node List