1. Stop Rotation Shimmer
Instead of snapping flat quads to pixel centers, AASpriteStacker raycasts a tight 3D volume with
rotated-grid supersampling (RGSS) in linear light, cutting 1° rotation shimmer by 58%.
Crisp pixel-art volumes at any rotation angle, without the shimmer.
WebGL2 renderer for 2.5D isometric and 6-DOF games. Keeps 1px details solid with no black halos.
Classic 2D slice stacking snaps pixels to a jagged grid, or bleeds dark halos as soon as you turn on bilinear filtering. AASpriteStacker raycasts the volume in linear light, keeping the pixel-art interior sharp without rotation aliasing. New to sprite stacking? Read the primer →
Flat 2D slices snapped to nearest pixels. Notice the jagged outline, the broken rooftop weathervane, and the missing brass doorknob. Every degree of rotation makes these edges crawl.
The chunky pixel-art interior stays intact while sub-pixel edges are supersampled in linear light. The silhouette stays clean, the 1px weathervane and doorknob hold together, and 1° rotation shimmer drops by 58%.
Instead of snapping flat quads to pixel centers, AASpriteStacker raycasts a tight 3D volume with
rotated-grid supersampling (RGSS) in linear light, cutting 1° rotation shimmer by 58%.
Premultiplied linear blending, RGB edge dilation, and correlated coverage prevent transparent pixels from bleeding dark fringes while keeping thin posts, roofs, and outlines intact at every angle.
Continuous 3D volume stepping stays solid at any camera pitch. Call setQuality("eco" | "balanced" | "ultra")
at runtime to switch between lightweight 2×/4× sampling and full Retina 8× AA.
Fly Chase, Overhead, or Cockpit view at 60 fps (29.8 KB gz) with a draggable A/B split
and live Eco 2× / Bal 4× / Ultra 8× quality controls.
Drop in any MagicaVoxel .vox model or horizontal slices.png
strip, inspect edges under a 4× pixel loupe, and export 16-direction AA sprite sheets.
Building a 2D or isometric game? Try the 2.5D Isometric & Oblique Overlay Sandbox →.
Switch between 2:1 Iso, True Iso, Oblique Stack, and 3/4 Top-Down, click tiles to drive, or toggle 64× Instanced to draw 64 cars in 1 WebGL2 call.
Zero runtime dependencies. Works directly in WebGL2, or convert standard 4-view art / MagicaVoxel .vox files.
import { AASpriteRenderer, SceneWorld, createIsometricCamera, loadSliceStripUrl, quatFromYawPitchRoll } from "@aastack/core";
// Layer over any existing 2D canvas/tilemap with premultiplied transparent alpha:
const renderer = new AASpriteRenderer(canvas, { background: "transparent", quality: "ultra" });
const world = new SceneWorld({
// Presets: "dimetric-2to1" | "isometric" | "oblique-stack" | "topdown-3quarter"
camera: createIsometricCamera({ preset: "dimetric-2to1", target: [0, 2, 0], orthoSize: 9.5 }),
});
// Load standard slices.png strips (or MagicaVoxel via loadVoxUrl("/model.vox", { id: "car" })):
const car = await loadSliceStripUrl("/car_slices.png", { id: "car", slices: 20 });
world.registerAsset(car);
world.applyPatch([
{ op: "set", path: "aaMode", value: "voxel-dda" }, // Crisp pixel-art interior + smooth AA edges
{ op: "spawn", entity: { id: "hero", assetId: "car", pos: [0, 2.8, 0], rot: quatFromYawPitchRoll(0.6, 0, 0), scale: 1, outline: true } },
]);
// Switch AA quality at runtime ("eco" 2x | "balanced" 4x | "ultra" 8x Retina + full-res outlines):
renderer.setQuality("ultra", world);
renderer.render(world);
# Clone the MIT open-source monorepo (zero runtime dependencies):
git clone https://github.com/dmsimon1/AASpriteStacker.git
cd AASpriteStacker
npm install && npm run build && npm run dev:serve
# Open locally:
# http://127.0.0.1:8765/examples/minimal-2d/ (2.5D Iso & Oblique Overlay)
# http://127.0.0.1:8765/examples/flight-6dof/ (SkyStack 6-DOF Flight Demo)
# Convert a 4-view orthographic sprite sheet (Front / Right / Back / Left) into edge-dilated AA slices + 3D SDF:
.venv/bin/python skills/aa-sprite-stacking/scripts/aa_views_to_slices.py \
views.png out/slices.png \
--slices 36 \
--sdf out/sdf.png \
--normals out/normals.png \
--html out/viewer.html
MIT licensed & zero runtime dependencies. Includes standalone Godot 4 & Unity URP shaders (Architecture Docs),
a live 2.5D Isometric & Oblique Overlay starter (examples/minimal-2d/), and an optional local MCP bridge for AI coding agents
(AI & MCP Guide · llms-full.txt).