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.
Fundamentals
The building blocks of rendering — drawing lines and filling shapes on a pixel grid before we enter the third dimension.
-
001
Beginner Bresenham's Line Algorithm
Drawing straight lines on a pixel grid using only integer arithmetic
- 002
-
003
Intermediate Rotation Matrices
Package rotation, scaling, and translation into one composable transform
-
004
Advanced Quaternions
The mathematically elegant way to rotate in 3D — no gimbal lock, smooth interpolation, constant speed
-
005
Intermediate View & Projection Matrices
The model/view/projection pipeline that turns world coordinates into pixels on screen
-
006
Intermediate Rasterization
How triangles become pixels — scanline traversal, barycentric interpolation, and the depth buffer
-
007
Intermediate Lighting & Shading
Phong, Blinn-Phong, and the math that makes flat triangles look three-dimensional
-
008
Intermediate Texture Mapping
UV coordinates, filtering, and mipmaps — how flat images wrap onto 3D surfaces
-
009
Advanced Ray Tracing Basics
Casting rays, intersecting spheres, and producing shadows and reflections from first principles
Advanced Rendering Techniques
Beyond the basics — shadows, light transport, and post-processing effects that bridge the gap between rasterization and photorealism.
-
010
Intermediate Shadow Mapping
Rendering shadows in real time by seeing the scene through the light's eyes
- 011
-
012
Advanced Global Illumination
How light bounces — path tracing, radiosity, and the real-time approximations that fake it
- 013
Generative Art
Using math to create art — fractals, noise, and algorithmic aesthetics rendered on the canvas.
-
014
Intermediate The Mandelbrot Set
Infinite complexity from one simple equation — rendered pixel by pixel
- 015
-
016
Intermediate Perlin & Simplex Noise
Controlled randomness — the foundation of procedural textures, terrain, and organic motion
- 017
-
018
Intermediate Strange Attractors
Chaos made visible — millions of iterations tracing beauty from simple equations
- 019
- 020
-
021
Intermediate Voronoi Diagrams & Delaunay Triangulation
Partitioning space by proximity — the geometry behind giraffe skin, soap bubbles, and mesh generation
-
022
Intermediate SDF Ray Marching
Rendering smooth, infinite-detail shapes by marching rays through distance fields