Interactive lesson

How a 3D model becomes voxels

A computer sees this rubber duck as thousands of textured triangles. Move the controls, then follow six steps to see how those triangles become a compact grid of colored cubes.

Loading original model…
Experiment

Try the voxelizer

Drag or zoom any view.

Building wireframe grid…
Preparing voxels…
8 × 8 × 8
Grid
8³ = 512 cells
Triangles
Visible voxels
Compute time
Run details Loading
Candidate tests
Surface voxels
Interior voxels
Worker result
GPU instances
Under the hood

Follow the six steps

Each step pairs a simple explanation with the math, terminology, and pseudocode behind it.

Step 01 · Prepare the triangles

Put every triangle in its final position

A 3D model is built from lots of tiny flat triangles. Before we can place cubes around the duck, every triangle must be moved, rotated, and scaled into the position we see on screen.

Imagine a paper model. Each triangle is a little paper piece. Some pieces belong to a head, beak, or body group that has been moved. We first glue every piece into its final place so we have one complete duck to measure.
Step 1 of 6