The Game Dev Atlas, Act I, The Pixel Art Island: an engraved map of an island whose towns are the techniques of pixel art for games.
Unrolling the map...
by Sprite Fusion

Sprites · Act I

Pixel art loop. A collector's diorama turns under a swinging lantern, drawn as pixel art: a fat galleon heaved up by a storm sea, a wave curling over her bow, a tentacle arching over her stern, a chest spilled on a rock, all on a turned base. The same turning scene is then shown as a plain small 3D render, with smooth shading and no lines. Three steps sweep down it one after another: flat tones, dark outlines where depth jumps, light on the edges that turn outward.
Act I, fig. 11 A galleon in a storm, rendered live in 3D. From a plain small render, three steps make it pixel art.

You have the choice when going pixel art for your game's style: the pure 2D sprites "classical" way, where each asset is a flat sprite. Or leveraging 3D to then render it in a pixel art style. Both have their strengths and weaknesses.

Render my 3D scene as pixel art: flat palette tones, depth outlines, lit edges, a camera snapped to pixels.
Read the whole brief
Render my 3D scene live as pixel art, in four steps.
Scene: [a galleon in a storm sea on a round base, under a hanging lantern].

- Camera: orthographic, [35] degrees above the horizon. Render at [216 x 196] px and scale up by whole numbers.
- Step 1, flat tones: one sample a pixel, nearest filtering, no antialiasing. Snap shading to [3] tones per color of my palette.
- Step 2, depth outline: keep depth. A pixel whose 4 neighbors (up, down, left, right) are further away goes [2] tones darker.
- Step 3, lit edges: keep normals. Where the surface turns outward between two neighbors, the pixel facing the light goes one tone lighter.
- Step 4, snapped camera: move the camera in whole render pixels along the view's own axes. Shift the scaled picture by what was rounded off.
- Give thin things [2] px or more, or they flicker as the view turns.

Show me an orbit and a slow pan, with each step switched on in turn.

Change what stands in [brackets] to fit your game.

  1. When your game will have perspective, rotating cameras, or depth.
  2. Art direction choice! You can refine your shading to give a very specific look to 3D-rendered pixel art.

Not forPure pixel-art old-school art direction: 3D-rendered pixel art will have some artifacts and imperfect dithering or outlines.

David Holland describes the method, credited to t3ssel8r: edges from depth and normals with a kernel of four neighbors, and a camera snapped to a texel grid.[1] A three.js shader draws both kinds of edge in one pass.[2] The figure is this atlas's own.

  1. David Holland, 3D Pixel Art Rendering, 2024
  2. KodyJKing, hello-threejs, GitHub