MagicaVoxel to sprite sheet
A voxel model is already halfway to pixel art: blocky, flat-coloured, built from a palette. What it is not yet is a sprite sheet. Here is how to turn a .vox file into clean sprites from every side, at a fixed pixel size, and how to go the other way, from any 3D model to voxels.



Why voxels suit pixel art
A voxel model is made of cubes, each one a single colour picked from a palette. That is very close to how pixel art is drawn: a small set of colours, hard edges, no texture noise. A car or a house built in MagicaVoxel already has the chunky shapes and flat panels a sprite needs, and because the model is 3D it can be seen from any side.
The gap is the last step. MagicaVoxel renders a picture: soft lighting, shadows, smooth edges, at the size of the render window. A game needs something else. Every side of the object at one fixed pixel size, on the same palette as the rest of the game, with clean outlines and no blurry pixels, laid out in a sheet the engine can read. For a vehicle that turns, that is 8 or 16 sides; done by hand, each one is a render to scale down and repaint.
Rendering a .vox with Pixor
Pixor opens a MagicaVoxel .vox file like any other model. It reads every model of the file’s scene where the scene graph puts it, turned and moved as MagicaVoxel shows it, with its palette, and the voxels of a glowing material glow. Each voxel becomes a cube in its colour, a tenth of a metre wide, with +Z up.
From there it is the same as any model:
- Choose the sides. Each side is a camera; Ring round the model adds 4, 8, 16 or 32 of them, one per side, in one sheet.
- Choose the view. Side, three-quarter, isometric or top-down, with Pitch to fine-tune the angle.
- Choose the look. A preset (clean, selout, retro4, flat, wireframe), the number of light bands (1 to 4), the outlines, and the palette. With the Auto palette, colours are taken from the model, so the .vox’s own colours lead; Base colours (1 to 32) says how many of them get a ramp of shades. Or pick one of Pixor’s palettes, or your own
.hex,.gplor.png, and the model’s colours snap to it. - Set the pixel size. Fit the sprite into a size, or set Pixels per metre so every model shares one scale.
- Export the sheet, with JSON, an Aseprite file, Godot resources or a GIF beside it if you need them.
On the command line, an eight-sided sheet like the car above is one line:
pxr render car.vox --ring 8 --pixels-per-metre 10 --preset selout -o car.png
--ring 8 gives eight sides, counter-clockwise from the front, named South, Southeast, East and so on. --pixels-per-metre 10 makes one voxel one pixel wide. Add --view isometric or --pitch 30 for another angle, --palette my-palette.hex for your own colours, and --export all for every format. A whole folder of .vox files renders with pxr batch models/ -o out/ --ring 8.
The other way: any model to voxels
Pixor also writes .vox files. pxr voxels turns any model, glTF, GLB, FBX, OBJ or another .vox, into voxels of the height you ask for (1 to 256). It samples the surface from the model’s textures and colours, fills the inside, and puts every voxel in the look’s own palette, so the voxels match your sprites:
pxr voxels car.glb -o car.vox --height 16 --preset selout
That is how the car on this page was made: a 3D car turned into a 16-voxel-tall MagicaVoxel file, then rendered from eight sides. In between you can open the .vox in MagicaVoxel, fix a voxel or add details, and render it again.
Add --stack and the same command writes a sprite stack: the model cut into horizontal slices, bottom first, in car_stack.png, with car_stack.json giving the slice size and count. A game draws the slices one pixel apart and turns them together, so the car can face any angle, not only eight. Sprite stacking explains how to draw one in Godot 4.
Tips
- One voxel, a whole number of pixels. Since a voxel is a tenth of a metre, pixels per metre divided by ten is how many pixels wide a voxel becomes: 10 for one, 20 for two. Render at the size you need instead of scaling a small sheet up by a fraction, or pixels of different sizes end up side by side; see mixels.
- Pick the camera for the game. Top-down suits a racer seen from above, three-quarter most RPGs, and isometric a 2:1 tile grid; isometric pixel art explains the angles. Use the same view and pitch for every object in the game.
- Keep the outlines the same everywhere. Set the silhouette and inner lines once, in a preset or a saved Style kit, and render every model with it.
pxr auditchecks that a folder of sheets was made with the same look, palette and pixels per metre. - Enough sides for what turns. Characters usually need 4 or 8; vehicles that steer freely look better with 16, or as a stack. Rotating vehicle sprites compares the options.
For models that were never voxels, 3D to pixel art covers the whole route from a 3D file to a sprite sheet.
Questions
Can I use MagicaVoxel's own renders as sprites?
They make good pictures, but they are smooth, lit images at whatever size the window is. For a game you want every side at one fixed pixel size, on one palette, with clean edges, which means redrawing or cleaning each render by hand.
How big should a voxel be on screen?
A whole number of pixels: one voxel to one pixel for small sprites, two or three for bigger ones. In Pixor a voxel is a tenth of a metre, so 10 pixels per metre makes a voxel one pixel wide and 20 makes it two.
Can a 3D model become a MagicaVoxel file?
Yes. pxr voxels turns a glTF, GLB, FBX, OBJ or .vox model into voxels of the height you ask for, coloured in the look's palette, and writes a .vox you can open and edit in MagicaVoxel.