voxel-sprites

Pixel art from every angle.
No drawing.

Build a model from blocks, in code or in MagicaVoxel. voxel-sprites turns it into crisp, hand-shaded pixel sprites, turned any way you need, with shadows and colour swaps. Use them in a browser game, or download a sprite sheet for any engine.

Make a sprite sheet
npm i voxel-sprites three
Everything here is baked live from block models.

Make a sprite sheet

Pick a model or drop in your own .vox file, set it up, and download a sheet in the TexturePacker format: Phaser and PixiJS load it as it is, and Godot, Unity and others through their TexturePacker importers. It all runs in your browser; nothing is uploaded.

Model
Colour
Angles
Camera
Shadows
Turning

Icons, too

Bake small things once for inventories, shops and menus. One model gives every colour.

Use it in code

Bake at load time in a browser game, or export sheets for anything else.

How it works

  1. Mesh. Only faces touching air are kept, and each corner darkens by its neighbours (ambient occlusion).
  2. Shade. Lighting goes through a five-shade ramp: warm highlights, cool shadows, the way pixel artists shade.
  3. Project. A three-quarter camera squashes the ground but not height, so sprites sit on a 2:1 map.
  4. Finish. A sunlit rim, a shaded underside, an optional outline, and a flat shadow cast along the sun.