Blog ·

What is a voxel game?

A first-person view in Heartworld, a sunny block world of grass hills, a tall gray stone pillar, a short stack of wooden planks, a log lying on the grass, leafy trees and a small windmill in the distance; the top bar reads Heartworld 3.54, Flying, 0 ms, 60 fps and 1 online, with a row of hearts and an eight-slot block bar at the bottom
Image: Heartworld, EverGamer

A voxel game is one whose world is made of voxels: small units of volume laid out on a 3D grid, the way a flat image is made of pixels. In most voxel games each voxel is a cube with a type (grass, stone, water, air), so the world can be dug into, built on and changed one block at a time. Minecraft made the idea famous, but voxels were in games long before it, and the word is older still.

Where does the word "voxel" come from?

It is a blend of "volume" and "pixel". Merriam-Webster's entry gives its etymology as "vo(lume) + (pi)xel", defines a voxel as "any of the discrete elements comprising a three-dimensional entity (such as an image produced by magnetic resonance imaging)", and dates its first known use to 1976.

A pixel has a position on a flat grid and a color. A voxel has a position on a 3D grid and whatever the program needs to know about that spot. In a game that is usually a block type, sometimes with light, water level or damage on top.

Is every blocky game a voxel game?

Not quite, and people argue about it. "Voxel game" gets used in two ways:

What people mean What it describes Example
The world is stored as a grid of blocks Every spot in the world has one type, and changing one cell changes the world Minecraft, Kyra Craft, Heartworld
The world is drawn from voxels, without polygons The renderer reads the grid (or a height map) directly Comanche (1992)
Both, at a very fine size Tiny voxels, each of which can be broken away Teardown

The cube look is a style. What makes something a voxel game in the first, most common sense is the grid underneath: the game knows what is at every cell, so you can remove one and the world stays consistent.

How did early games use voxels?

Long before graphics cards could draw millions of triangles, NovaLogic's helicopter game Comanche (1992) drew hilly landscapes with a technique called Voxel Space. Sebastian Macke's VoxelSpace project, which rebuilds the method in a few lines of code, explains how it worked: the terrain was two 1024 by 1024 maps, one byte each, one for height and one for color, and the engine drew the screen from back to front as vertical lines, one column at a time. The same page notes its limit: one height per position on the map, so complex shapes such as buildings or trees cannot be drawn. That is why Voxel Space is often called 2.5D rather than true 3D.

The Comanche series has its own classic page on the hub.

How do Minecraft-style voxel worlds work?

Block games like Minecraft went the other way: they keep a true 3D grid but draw it with ordinary polygons, because a graphics card is very fast at triangles. The world is far too big to keep in one piece, so it is cut into columns called chunks that load and unload around the player. Height has a fixed range: Microsoft's creator documentation says Minecraft's world height went from 0 to 256 to a range of -64 to 320 with version 1.18.

We can show the rest of the method in our own code, since two of our games are built this way:

What about Teardown and tiny voxels?

At the other end is Teardown (Tuxedo Labs), where voxels are small enough that a wall, a car or a fence is made of thousands of them, and you can break any part. Its studio describes it plainly on the Tuxedo Labs site: "Our first game Teardown is based on ground-breaking voxel technology combined with destruction physics and raytracing." Smaller voxels look less blocky, but every one is something the game has to store, draw and simulate, so the voxel size is always a trade between detail and speed.

Can you play voxel games in a browser?

Yes, with no download. A voxel world is a good match for the web: the data is small (a byte per block in Kyra Craft) and a browser's WebGL draws the meshes on your graphics card. Try these:

For the history, start with Infiniminer, another early block-mining game, look through the 2000s page, or browse the hub for more classics and the games they inspired.

More from the blog