sprite2model

pixel-art sprites drawn slanted, made into 3D models

Examples

Options

Drop a sprite, or pick an example. Drag to turn the view, the wheel to zoom.
Sprite
The model drawn the same way, from its four sides

No sprite yet

How it works

A sprite drawn slanted is one view of a thing: every pixel is a ray through it, and a thing anywhere along that ray would draw the same. sprite2model guesses the depth from what such things usually are, and carves voxels one sprite pixel wide:

Faces the sprite shows take its pixels' colours; hidden ones those of the same face mirrored, or of the front at the other end of their row. The faces of each plane are merged into rectangles and their texels packed into one texture, drawn with nearest filtering: a crisp, low-poly model (a pillar is 92 triangles), one tile one unit, standing on its origin.

On your computer

Download sprite2model from the releases (or go install github.com/Coldensjo/sprite2model/cmd/sprite2model@latest), then:

sprite2model -preview pillar.png          # writes pillar.glb and pillar.preview.png
sprite2model -reading round -out models *.png
sprite2model serve                        # this page, run locally

The page converts in your browser (Go compiled to WebAssembly): your sprites never leave your computer.