Turns four pixel-art views into rotatable layered sprites, with a slice-strip PNG and optional check images and a browser turntable for inspection.
sprite-stacking
Makes fake-3D rotatable pixel art with sprite stacking. Turns four orthographic views (top, side, front, back) into a visual-hull carved slice strip, checks it, and renders a crisp turntable for web Canvas, Godot, Unity or Phaser. Use when someone asks to "make a rotatable pixel art car", "sprite stacking", "fake 3D pixel art", "pixel art turntable", "stacked slices", "voxel-style 2D sprite", or wants a top-down vehicle, prop, tree or building that turns without drawing every angle.
معلومات المصدر
danielwh2
المستودع danielwh2/sprite-stacking
- آخر نشاط في المصدر
- ٢١ نوفمبر ٢٠٢٦ في ٠١:٢٨
- لغة SKILL.md المكتشفة
- الإنجليزية
- النجوم
- ٢٨٠
- التفرعات
- ٢١
sprite-stacking makes pixel art spin.
Turns four orthographic pixel-art views into a slice-strip PNG for fake-3D rotation, with optional check images and an HTML viewer.
Examples
In the original post, Daniel White describes a lighthouse result made with 40 flat pixel layers, real-time normals, projected shadows, and an emissive beacon. This records the author's text claim. The attached video was not watched, and the result was not reproduced here.
Uses
Use it for a top-down vehicle, prop, tree, or building that needs to turn without a separate drawing for every angle. Start with an idea, a four-view sheet, or an existing slice strip or MagicaVoxel layer export. Existing strips go straight to rendering. The repository supplies integration recipes for web Canvas and React, Godot 4, Unity, and Phaser. In an existing project, the workflow first reads its renderer rather than adding a second render pipeline.
Prerequisites
The slicer needs Python 3, Pillow, and NumPy. The README lists Claude Code, Codex, Cursor, OpenCode, Gemini CLI, and Pi. Its skills CLI installation route requires Node 22.20 or later. An image generator is optional: the workflow can use your sheet or draw the four views in Python/PIL. Views must use the same scale and orthographic projection.
How to use
- Give the agent your subject or sheet. The README provides the request "Sprite stack this 4-view sheet and give me a turntable." It also gives "Make a rotatable pixel art car."
- For a new sheet, check TOP, SIDE, FRONT, and BACK at matching scales. TOP points down and SIDE points left by default.
- The documented slicer example is
python3 skills/sprite-stacking/scripts/views_to_slices.py views.png slices.png --slices 36 --preview check.png --html viewer.html. The output strip runs from ground slices on the left to roof slices on the right. Check images and HTML are optional outputs requested by those flags, not unconditional defaults. - Open the check image before integration. Inspect the extracted views, four rendered angles, and exploded stack. Open the viewer and inspect a full turn. The documented viewer can also export a 16-direction PNG sprite sheet.
Limitations
The shape comes from silhouettes. Cavities hidden in all four views fill in and need manual slice edits. Small wall protrusions can become ledges, and 1-pixel parts can blink during rotation. Inspect the render rather than assuming geometric reconstruction is exact.
The Python script reads the input image and writes files at the selected output paths. Static inspection found no output-overwrite confirmation. Generated HTML embeds the source views and slice strip as image data, so sharing that file also shares those images. The sources do not specify prompt-injection isolation, a command sandbox or approval policy, or an image-generation tool's retention and external-transfer policy. Those boundaries remain unknown.
The root MIT license requires retaining its copyright and permission notice and provides the software as is. No conflicting license appears in the Skill frontmatter. This review read and screened seven pinned text files. .gitignore was not retrieved; media/pipeline.png and media/showcase.gif were not visually inspected. The X video and its preview were not watched. This is not a whole-repository safety guarantee or a runtime test.
خيارات التثبيت
يُحدَّد Prompt الذي يراجع المصدر أولًا بشكل افتراضي. يمكنك التبديل إلى أمر مباشر أو تنزيل نسخة محلية.
مراجعة ملفات المصدر
اقرأ SKILL.md وأي ملفات مرافقة يعرضها SkillsMP قبل أن تقرر التثبيت.
عرض SKILL.md
| name | sprite-stacking |
|---|---|
| description | Makes fake-3D rotatable pixel art with sprite stacking. Turns four orthographic views (top, side, front, back) into a visual-hull carved slice strip, checks it, and renders a crisp turntable for web Canvas, Godot, Unity or Phaser. Use when someone asks to "make a rotatable pixel art car", "sprite stacking", "fake 3D pixel art", "pixel art turntable", "stacked slices", "voxel-style 2D sprite", or wants a top-down vehicle, prop, tree or building that turns without drawing every angle. |