Rasterization: how a GPU turns triangles into pixels

12 steps · about 6 h 35 min · Intermediate

  1. The Raster Graphics Pipeline (article, geometrian.com, 15 min)

    A short overview of the whole pipeline, so you know where rasterization sits before the details.

  2. WebGPU Unleashed: The GPU Pipeline (tutorial, WebGPU Unleashed, 15 min)

    Describes the four classic stages (vertex, rasterization, fragment, blending) with a simple factory analogy.

  3. Rasterization: the big picture (video, YouTube, 15 min)

    Shows the overall structure of a simple triangle rasterizer before you meet the maths.

  4. An Overview of the Rasterization Algorithm (tutorial, Scratchapixel, 30 min)

    Contrasts ray tracing with rasterization and introduces projection and bounding boxes.

  5. Rasterization: Projection Stage (tutorial, Scratchapixel, 30 min)

    Covers how 3D vertices are projected to screen space, which has to happen before any pixels are tested.

  6. The Rasterization Stage (tutorial, Scratchapixel, 40 min)

    Teaches the core step: edge functions, barycentric coordinates and the top-left rule.

  7. Barycentric Coordinates + Z-Buffering (video, YouTube, 50 min)

    A lecture that reinforces interpolation and shows how overlapping triangles are resolved by depth.

  8. Perspective Correct Interpolation and Vertex Attributes (tutorial, Scratchapixel, 30 min)

    Fixes the distortion that naive interpolation causes on perspective triangles.

  9. Rasterization: a Practical Implementation (tutorial, Scratchapixel, 1 h)

    Puts projection, edge tests, depth buffer and interpolation together in working code you can compile.

  10. Triangle rasterization in practice (article, The ryg blog, 30 min)

    Shows how to make your rasterizer fast and exact with integer coordinates and incremental edge updates.

  11. (Triangle) Rasterization and Setup (article, A Trip Through the Graphics Pipeline (Fabian Giesen, GitHub clone), 40 min)

    Shows how real GPU hardware does it: coarse and fine tiles, 2x2 pixel quads and triangle setup.

  12. A trip through the Graphics Pipeline 2011, part 7 (article, The ryg blog, 40 min)

    Closes with hardware-level interpolation and early-Z, which explain why GPUs can skip shading hidden pixels.