Series

How Rendering Works

3D Graphics from First Principles

Every 3D scene you see on screen has been flattened onto a 2D plane. This series starts with the simplest possible projection — dividing by Z — and builds up through trigonometric rotations, matrix transforms, and quaternions. Each article includes interactive canvas demos so you can see the math in action.

How to read this series: Start from the top. Each article introduces new ideas that later pages build on. By the end you'll understand the math behind every 3D engine's transform pipeline.

Fundamentals

The building blocks of rendering — drawing lines and filling shapes on a pixel grid before we enter the third dimension.

  1. 001
    Beginner Bresenham's Line Algorithm

    Drawing straight lines on a pixel grid using only integer arithmetic

    7 min
  1. 002
    Intermediate 3D Projection

    How to flatten a 3D world onto a 2D screen using nothing but division

    9 min
  2. 003
    Intermediate Rotation Matrices

    Package rotation, scaling, and translation into one composable transform

    8 min
  3. 004
    Advanced Quaternions

    The mathematically elegant way to rotate in 3D — no gimbal lock, smooth interpolation, constant speed

    8 min
  4. 005
    Intermediate View & Projection Matrices

    The model/view/projection pipeline that turns world coordinates into pixels on screen

    8 min
  5. 006
    Intermediate Rasterization

    How triangles become pixels — scanline traversal, barycentric interpolation, and the depth buffer

    8 min
  6. 007
    Intermediate Lighting & Shading

    Phong, Blinn-Phong, and the math that makes flat triangles look three-dimensional

    9 min
  7. 008
    Intermediate Texture Mapping

    UV coordinates, filtering, and mipmaps — how flat images wrap onto 3D surfaces

    10 min
  8. 009
    Advanced Ray Tracing Basics

    Casting rays, intersecting spheres, and producing shadows and reflections from first principles

    8 min

Advanced Rendering Techniques

Beyond the basics — shadows, light transport, and post-processing effects that bridge the gap between rasterization and photorealism.

  1. 010
    Intermediate Shadow Mapping

    Rendering shadows in real time by seeing the scene through the light's eyes

    11 min
  2. 011
    Intermediate Bloom

    Making bright things glow — thresholding, blur, and HDR post-processing

    9 min
  3. 012
    Advanced Global Illumination

    How light bounces — path tracing, radiosity, and the real-time approximations that fake it

    14 min
  4. 013
    Advanced Screen-Space Ambient Occlusion

    Darkening creases and crevices using only the depth buffer

    15 min

Generative Art

Using math to create art — fractals, noise, and algorithmic aesthetics rendered on the canvas.

  1. 014
    Intermediate The Mandelbrot Set

    Infinite complexity from one simple equation — rendered pixel by pixel

    8 min
  2. 015
    Intermediate Julia Sets

    The Mandelbrot set's infinite family of fractal siblings

    8 min
  3. 016
    Intermediate Perlin & Simplex Noise

    Controlled randomness — the foundation of procedural textures, terrain, and organic motion

    11 min
  4. 017
    Intermediate L-Systems

    Growing fractal trees and plants from string-rewriting rules

    8 min
  5. 018
    Intermediate Strange Attractors

    Chaos made visible — millions of iterations tracing beauty from simple equations

    8 min
  6. 019
    Intermediate Reaction-Diffusion

    Spots, stripes, and labyrinths from two interacting chemicals

    10 min
  7. 020
    Intermediate Cellular Automata

    Complex worlds from simple rules — Conway's Game of Life and beyond

    16 min
  8. 021
    Intermediate Voronoi Diagrams & Delaunay Triangulation

    Partitioning space by proximity — the geometry behind giraffe skin, soap bubbles, and mesh generation

    15 min
  9. 022
    Intermediate SDF Ray Marching

    Rendering smooth, infinite-detail shapes by marching rays through distance fields

    14 min