Black Week: −40% Pixor is $19.99 $11.99 until 2 December, on itch.io →

Render a sprite sheet in Blender

Blender can render an animated model into pixel-art frames: a small orthographic camera, no pixel filter, flat colours and a transparent background. Here is the setup in Blender 4, the fix for blurry renders, a script for eight sides, and where it starts to get hard.

A smooth 3D render of a dark stone golem with pale blue crystals on its back and shoulders, mid-stride on a light background
A normal render: soft shading, many colours
The same golem as pixel art: hard-edged pixels, a few shades of grey-blue stone and blue crystal, a dark outline
The same pose as pixel art
Eight pixel-art views of the crystal golem in a row, turned 45 degrees apart: front, three-quarter, side, back and round again
Eight sides, 45° apart

Rendering a sprite sheet from Blender is mostly a matter of switching off everything that makes a normal render look smooth. The steps below are for Blender 4.x, with Eevee or Cycles.

The setup

  • Camera: select it, open Object Data Properties and set Type to Orthographic. Pixel art is drawn without perspective, so a hand far from the camera is the same size as a hand near it. Use Orthographic Scale to frame the model.
  • Resolution: in Output Properties > Format, set the sprite’s real size, for example 64 × 64, with the % at 100. Render small rather than rendering big and shrinking later: shrinking blends colours into soft edges.
  • Transparency: Render Properties > Film > Transparent, so the background is empty instead of the world colour.
  • File: Output Properties > Output, PNG, Color RGBA. Set the output path to a folder ending in a file prefix, such as //sprites/walk_.
  • Frames: set Frame Start and End to the action you want, then Render > Render Animation (Ctrl+F12). Blender writes walk_0001.png, walk_0002.png and so on.

When the render is blurry

A 64 px render out of the box has soft edges and smeared colours. Each cause has its own switch:

  • The pixel filter. Blender blends every pixel with its neighbours to hide jagged edges. In Eevee, Render Properties > Film > Filter Size: set it to 0. In Cycles, Render Properties > Film > Pixel Filter: set the Width to its minimum. If edges are still soft in Eevee, lower the render samples.
  • Textures. In each material, set the Image Texture node’s interpolation from Linear to Closest, so a texture’s pixels stay hard.
  • Colour management. Render Properties > Color Management > View Transform: choose Standard. The default (AgX in Blender 4, Filmic before it) compresses and tints the colours you picked, so a flat red comes out as a range of near-reds.
  • Scaling up. A 64 px frame looks tiny, so you will view it at 400 %. Scale it with nearest-neighbour (in an image editor, in the engine’s texture filter, everywhere) and by a whole number, or every pixel turns into a blur.

Toon shading and pixelated shadows

Smooth shading gives every pixel a slightly different colour, which reads as a shrunken render rather than pixel art. In Eevee, put a Shader to RGB node after a Diffuse BSDF and feed it into a Color Ramp set to Constant: the light falls into two or three flat bands, and you choose each band’s colour. Shadows become flat shapes too. If they look blocky at larger sizes, raise the shadow resolution in Render Properties > Shadows; at 64 px the ramp’s bands matter far more than the shadow map.

Several sides

A top-down or isometric game needs the same clip from 4 or 8 directions. Add an Empty at the model’s centre, parent the camera to it (select the camera, then the Empty, Ctrl+P > Object) and turn the Empty instead of the model, so the lights and the model’s motion stay as they are. This script, run from the Scripting workspace, renders the walk from eight sides:

import bpy, math

scene = bpy.context.scene
pivot = bpy.data.objects["CameraPivot"]   # the Empty the camera is parented to
rig = bpy.data.objects["Armature"]
action = bpy.data.actions["Walk"]

(rig.animation_data or rig.animation_data_create()).action = action
scene.frame_start, scene.frame_end = (int(f) for f in action.frame_range)

for side in range(8):
    pivot.rotation_euler.z = math.radians(side * 45)
    scene.render.filepath = f"//sprites/side{side}_"
    bpy.ops.render.render(animation=True)

It writes side0_0001.png to side7_0012.png (for a 12-frame walk) beside the .blend file. Blender stays busy until the last frame is written.

Joining the frames into one sheet

Blender has no sprite sheet export. ImageMagick puts the frames in a grid, here one row per side for a 12-frame clip:

magick montage sprites/side*_*.png -tile 12x -geometry +0+0 -background none walk.png

-geometry +0+0 keeps each frame at its own size with no gap, and -background none keeps the transparency (older installs use montage without magick). A few lines of Python with Pillow can do the same, and write a JSON file of the frame rectangles if your engine needs one.

Where it gets hard

One sprite works. A game’s worth of them is where the problems show:

  • Flicker. A surface turning a hair moves a pixel from one light band to the next and back, so edges shimmer from frame to frame.
  • Pixel size. Each Orthographic Scale is a different pixel size. A wide attack framed bigger draws the character smaller than in the walk.
  • Pivot drift. The feet land on a different pixel in each clip or side, and the character swims in the engine.
  • Palette. Every material and light adds near-identical colours; holding a game to one palette means a shader setup per material.
  • Outlines. Blender’s lines are not one pixel wide in the colour of the part they surround, which is what selective outlines need.
  • Every side of every clip. Eight sides of ten clips is 80 renders to set up, check and join again after each change.

The same steps in Pixor

Pixor is a desktop app that does this pipeline for you. Export your model from Blender as glTF (.glb) with its actions; Pixor also opens FBX, OBJ and MagicaVoxel .vox, but not .blend files. Then:

  • Pixels per metre fixes one scale for every clip and every character, and the pivot under the feet is locked to the same pixel in every frame and side.
  • Light bands stay put until a surface has clearly turned, and a pixel that flips for a frame or two and back keeps its colour, which removes most flicker.
  • Palettes: its own, or yours as a Lospec .hex, GIMP .gpl or .png, with every colour snapped to ramps.
  • Outlines in the darkest shade or as selout, a few steps down each colour’s own ramp.
  • Ring round the model adds 4, 8, 16 or 32 cameras, a side each, rendered at once.
  • Export: PNG sheets with JSON (cell rectangles, durations, a tag per action and side, the pivot), Aseprite files, Godot 4 SpriteFrames and more.

The first-sprite tutorial goes from a model to a sheet in about five minutes.

Questions

Why is my Blender pixel art render blurry?

Three usual causes: the pixel filter (set Film > Filter Size to 0 in Eevee, or the Pixel Filter width to its minimum in Cycles), image textures on Linear instead of Closest, and a viewer or engine that scales the result up with smoothing instead of nearest-neighbour.

How do I render a transparent background PNG sequence in Blender?

Turn on Render Properties > Film > Transparent, set Output Properties > Output to PNG with Color RGBA, set the frame range, and use Render > Render Animation (Ctrl+F12). Each frame becomes its own numbered PNG in the output folder.

Can Blender export a sprite sheet directly?

No. It renders one image per frame. Join them with an image tool or a short script, as shown above, or use an app that writes the sheet and its data file for you.

Read next

Try it on your own model, free in your browser, or get the full version.

Try in browser Get Pixor