Insights

Sprite Stacking: Turn Four Pixel-Art Views into a Rotatable World

Daniel White's Sprite Stacking tool converts four pixel-art views (top, side, front, and back) into rotatable 3D representations using horizontal RGBA slices, enabling easy integration into browsers or game engines.

Sprite Stacking: Turn Four Pixel-Art Views into a Rotatable World

Highlights and Results

Daniel White's Sprite Stacking packages a classic rendering technique into an agent-friendly asset pipeline. A top, side, front and back drawing become horizontal RGBA slices that can be rotated together in a browser or game engine. The official house example makes the intermediate representation visible: four drawings, a strip of layers, and several rendered angles. Outputs include slice PNGs, a standalone viewer and optional baked directional sprites. Repository.

https://external-v2fun-data-hk-1.oss-accelerate.aliyuncs.com/temp/2026/12/02/1280X1280(46)_1796192133036.PNG Six rendered sprite-stacked assets from the official rotating showcase. Source: Daniel White; still at 1 second.

Image source: Daniel White's official asset showcase.

https://external-v2fun-data-hk-1.oss-accelerate.aliyuncs.com/temp/2026/12/02/1280X1280(47)_1796192151186.PNG Official pipeline example: four views, carved slices and rendered angles. Source: Daniel White.

How It Works

The Python converter removes connected background pixels, separates the four views and aligns their orientations and proportions. For each height, it intersects the top silhouette with the side silhouette and the union of the front and back silhouettes. The result is a Boolean occupancy volume indexed by height, length and width. Optional rounding clips suitable solid cross-sections to ellipses; disconnected rows retain their gaps.

Colour assignment is a separate pass. Exposed upper surfaces inherit the top image, while lateral boundaries take colours from the corresponding view. Interior colours can propagate from the slice above. Palette reduction and configurable shading then produce an RGBA volume, saved as horizontal layers with the ground layer first. This is deterministic carving; an image model may prepare the drawings, but the converter does not denoise a 3D latent. Converter.

At runtime, the renderer rotates each slice, compresses its vertical screen dimension for the viewing pitch, and offsets successive slices upward. These stacked planes create depth while retaining crisp pixel art. A silhouette-based reconstruction cannot recover a hidden cavity that none of the views describes. Extreme camera angles can also reveal the discrete layers.

Applications and Availability

The MIT-licensed project suits rotating vehicles, buildings and props in stylized games. Its reusable skill, converter and viewer make the representation easy to inspect and revise. Python, Pillow and NumPy support conversion; runtime integration still depends on the target engine. The inspected release does not announce a separate future roadmap.

FAQ

Is the output a conventional 3D mesh?

The main asset is a stack of RGBA image slices. Choose a mesh pipeline when arbitrary camera motion, surface editing or conventional mesh export is required.

What makes the four views suitable?

They should use consistent orthographic proportions and orientations. Mismatched silhouettes directly alter the carved volume.

How does this differ from V2Fun image-to-3D?

V2Fun model generation returns mesh assets such as GLB. Sprite Stacking targets layered pixel graphics. A GLB does not directly substitute for its slice strip; a separate slicing or rendering conversion would be needed.

Related Articles