1
Mon, 31 Aug
What graphics is (and isn't); setup; first pixels & gradients
slides finger ex. readings Shirley ch. 1 Introduction: what graphics covers, the pipeline in one page, and §1.7 on writing graphics code. Read before class. Shirley §3.1–3.2 Raster devices; images, pixels and geometry. How a pixel grid maps to coordinates — we use this convention all semester. RTiOW §2 Output an Image Writes a PPM file and fills it with a gradient. Exactly what we do in the first finger exercise. Alvy Ray Smith 1995 "A Pixel Is Not a Little Square", Microsoft tech memo. Short and optional. Why a pixel is a sample, not a tile.
—
—
2
Wed, 2 Sep
Bresenham's line algorithm
slides finger ex. readings Shirley §9.1.1 Line Drawing: the midpoint algorithm, which is Bresenham's in modern clothes. Read before class. Bresenham 1965 "Algorithm for computer control of a digital plotter", IBM Systems Journal 4(1). The original. Four pages; read after the lecture. Foley et al. §3.2 Scan-converting lines, including the all-octant case and the incremental error argument. Optional, deeper.
—
—
3
Fri, 4 Sep
Color & alpha; primitives; fills (inside-test, flood fill)
slides finger ex. readings Shirley §3.3–3.4 RGB colour and alpha compositing. Read before class; the over operator is the one you implement. Porter & Duff 1984 "Compositing Digital Images", SIGGRAPH '84. Where premultiplied alpha and the over operator come from. Skim §2–3. Shirley §9.1.2 Triangle Rasterization: the inside-test via barycentric coordinates, and the edge-function form we use for primitives. Alvy Ray Smith 1979 "Tint Fill", SIGGRAPH '79. The original flood-fill paper. Optional; the algorithm is two paragraphs.
A1 student submissions
4
Mon, 7 Sep
Vectors & the dot product
slides finger ex. readings Shirley §2.4–2.4.3 Vectors, vector operations, Cartesian coordinates, and the dot product. Read before class. Shirley §2.3.1–2.3.3 Angles, trig functions and the identities we lean on. Refresher; skim if you are comfortable.
—
—
5
Wed, 9 Sep
Parametric lines, circles, ellipses
slides finger ex. readings Shirley §2.7.6 2D Parametric Curves: p(t) = ... for lines and circles, and why we prefer the parametric form for drawing. Shirley §2.7.1–2.7.2 2D Implicit Curves and the gradient. The other way to write a circle; you need both. Shirley §2.8 Linear Interpolation. One page — but lerp is used in every lecture from here on.
—
—
6
Fri, 11 Sep
Bezier curves; de Casteljau
slides finger ex. readings Shirley §15.6.1 Bézier Curves: control points, the Bernstein form, and the de Casteljau algorithm (Figure 15.16). Read before class. Shirley §15.1–15.2 Curves and curve properties: parameterisation and continuity. Background for why Bézier segments join the way they do. Pomax, A Primer on Bézier Curves Interactive, free. Read the 'de Casteljau' and 'Bernstein form' chapters and play with the widgets.
A2 student submissions
7
Mon, 14 Sep
2x2 matrices: rotation, scale
slides finger ex. readings Shirley §6.1–6.2.4 Determinants, matrices, matrix arithmetic, vectors as columns, and the special matrices (identity, transpose, orthogonal). The determinant is the geometry behind next lecture's inverse — and behind A3's singular-matrix guard. Shirley §7.1–7.1.3 2D Linear Transformations: scaling, shearing, rotation as 2×2 matrices. Read before class.
—
—
8
Wed, 16 Sep
Homogeneous coordinates; composition & order
slides finger ex. readings Shirley §7.3 Translation and Affine Transformations: why homogeneous coordinates exist. The core of this lecture — read for the w coordinate specifically: a point carries w = 1 and moves under translation, a direction carries w = 0 and does not. Shirley §7.1.5 Composition and Decomposition of Transformations: order matters, and what each order means. The pivot sandwich (translate, rotate, translate back) is this section applied three times. Shirley §6.3–6.3.1 Computing with Matrices and Determinants, and Computing Inverses: where the 2×2 inverse formula comes from, and why a zero determinant leaves you with nothing to divide by. Shirley §7.4 Inverses of Transformation Matrices: the shortcut inverse of each named transform (negate the translation, transpose the rotation), which is cheaper than the general formula whenever you know what you built.
—
—
9
Fri, 18 Sep
Reference frames & the scene graph
slides finger ex. readings Shirley §2.4.5 Orthonormal Bases and Coordinate Frames: a frame is an origin plus basis vectors. Shirley §7.5 Coordinate Transformations: converting between frames is a matrix, and which way round it goes. Shirley §12.2 Scene Graphs: a tree of frames, and how the matrix stack falls out of it (§12.2.2 for ray tracing). Shirley §12.1–12.1.1 Triangle Meshes and mesh topology — one page, for the triangle fan that fills a polygon. We return to this properly in lecture 24. Lasseter 1987 "Principles of Traditional Animation Applied to 3D Computer Animation", SIGGRAPH '87. Where ease-in/ease-out, follow-through and secondary action come from. Optional, and the best three pages you can read before animating anything.
A3 student submissions
10
Mon, 21 Sep
Rays: p = o + t*d; marching & nearest hit
slides finger ex. readings Shirley §2.7.6–2.7.7 Parametric lines in 2D and 3D: p(t) = o + t d, and what t means. Re-read. Shirley §4.1 The Basic Ray-Tracing Algorithm, one page: for each pixel, find the nearest hit. RTiOW §4.1 The ray Class The two-line ray class we mirror in Python.
—
—
11
Wed, 23 Sep
2D light & shadow: fan of rays, occluders
slides finger ex. readings Shirley §4.5.1 Light Sources: point lights, and what a light contributes at a point. Shirley §4.5.3 Shadows: a point is lit if the ray towards the light hits nothing first. Two-dimensional in class, same idea.
—
—
12
Fri, 25 Sep
Exact ray-segment intersection; 2D soft shadows
slides finger ex. readings Shirley §2.7.6 (lines) Two parametric lines intersect where their parameters agree: a 2×2 linear system. Set it up before class. Shirley §6.3.2 Linear Systems: Cramer's rule is the fastest way to solve that 2×2. You met §6.3 at lecture 8 for the inverse; this is the other half of it. Cook, Porter & Carpenter 1984 "Distributed Ray Tracing", SIGGRAPH '84. §2 on soft shadows from area lights. Optional now; we return to it in lecture 21.
A4 student submissions
13
Mon, 28 Sep
3D vectors; cross product; the camera
slides finger ex. readings Shirley §2.4.4–2.4.7 Cross Product, orthonormal bases, and constructing a basis from one or two vectors — the camera frame. Shirley §4.2–4.3 Perspective, and Computing Viewing Rays for orthographic and perspective cameras. Read before class. RTiOW §4 Rays, a Simple Camera, and Background The same camera, built in code.
—
—
14
Wed, 30 Sep
Ray-sphere intersection
slides finger ex. readings Shirley §4.4.1 Ray-Sphere Intersection: substitute the ray into the implicit sphere, solve the quadratic. Read before class. Shirley §2.2 Solving Quadratic Equations, and the numerically stable form. Short. RTiOW §5–6.2 Adding a Sphere, and simplifying the intersection code.
—
—
15
Fri, 2 Oct
Multi-object scenes; nearest hit; antialiasing
slides finger ex. readings Shirley §4.4.4 Intersecting a Group of Objects: keep the smallest positive t. RTiOW §6.3–6.5 An abstraction for hittable objects and a list of them — the scene structure you build in A5. RTiOW §8 Antialiasing Many jittered samples per pixel, averaged. Read before class.
A5 student submissions
16
Mon, 5 Oct
Normals; diffuse (Lambert) shading; point lights
slides finger ex. lights & shadows readings Shirley §4.5–4.5.2 Shading: light sources and shading in software. Shirley §5.1–5.2.1 Point-like light sources and Lambertian reflection: the cosine law, derived. Read before class. RTiOW §6.1, §9 Shading with surface normals, then diffuse materials and gamma correction.
—
—
17
Wed, 7 Oct
Shadow rays; reflection & metal
slides finger ex. readings Shirley §4.5.3–4.5.4 Shadows and Mirror Reflection: the shadow ray, the epsilon offset, and the reflected direction. Read before class. Shirley §5.2.2 Specular reflection: the highlight model we add next to the mirror term. RTiOW §10 Metal Mirrored and fuzzy reflection as a material class.
—
—
18
Fri, 9 Oct
Refraction & glass (Snell); recursive rays
slides finger ex. readings Shirley §14.3–14.3.2 Smooth Dielectrics: reflectivity of a dielectric (Fresnel, Schlick), refraction and Beer's law. Read before class. RTiOW §11 Dielectrics Snell's law, total internal reflection, the Schlick approximation, and the hollow glass sphere. RTiOW §9.2 Limiting the number of child rays — the recursion depth you must cap.
—
19
Mon, 12 Oct
Why Whitted is wrong: radiance, the BRDF, the rendering equation
slides finger ex. readings Shirley §14.6.4 Radiance: the one quantity a ray carries, and why it does not change along the ray. Read before class. Shirley §14.7.1, §14.8 The BRDF, and the Transport Equation that adds up the light arriving from the whole dome. Kajiya 1986 "The Rendering Equation", SIGGRAPH '86. The original statement, for those who want it.
—
—
20
Wed, 14 Oct
Monte Carlo and the path tracer: one random ray per bounce
slides finger ex. readings Shirley §13.3 Monte Carlo Integration: the estimator, and why its noise falls as 1/√N. Read before class. Shirley §14.10 Monte Carlo Ray Tracing: the path tracer in a page. RTiOW §9.4 True Lambertian reflection: the normal plus a random unit vector gives cosine-weighted bounces. RT Rest of Life §9 Sampling lights directly: the shortcut every path tracer uses.
—
—
↳ Beyond lecture 20 the ray-tracing track goes on, off the syllabus: 8 self-study decks and an extra-credit assignment Optional and not examined. Each deck is an hour at lecture 20’s pace, for anyone who wants the path tracer taken further while the class moves to the GPU.
X1
self-study
Better sampling
picking the lamp or the BRDF, multiple importance sampling, stratified samples
slides readings PBRT 4e ch. 2 Monte Carlo integration: estimators, importance sampling, the balance heuristic. The chapter the whole track rests on. PBRT 4e ch. 12–13 Light sources and how to sample a point on them; the path integrator with light sampling and MIS. PBRT 4e ch. 8 Stratified, Halton and Sobol samples: why the error falls faster than one over root N. Veach ch. 9 Multiple importance sampling, from the thesis that introduced it. The two-lamp figure is here. RT Rest of Life whole book The same road, in the RTIOW style: from cosine picks to mixture densities. Read it first if PBRT is heavy going.
extra credit
—
X2
self-study
Materials
microfacets: GGX, Smith, Fresnel; sampling a facet; the principled model
slides readings PBRT 4e ch. 9 Reflection models: microfacet theory, Trowbridge–Reitz (GGX), the Smith masking function, sampling the visible normals. Walter et al. 2007 "Microfacet Models for Refraction through Rough Surfaces", EGSR 2007. The GGX paper; rough glass as well as rough metal. Burley 2012 "Physically Based Shading at Disney", SIGGRAPH 2012 course notes. The principled model that every engine's material panel copies. Heitz 2014 "Understanding the Masking-Shadowing Function in Microfacet-Based BRDFs", JCGT 3(2). Optional; the deep end of the Smith term.
—
X3
self-study
Colour and wavelength
spectral paths, dispersion, thin-film iridescence, diffraction
slides readings PBRT 4e ch. 4 Radiometry, spectra and colour: spectral distributions, the CIE matching functions, turning RGB into a spectrum. Wilkie et al. 2014 "Hero Wavelength Spectral Sampling", EGSR 2014. Four wavelengths per path, weighted by MIS. Belcour & Barla 2017 "A Practical Extension to Microfacet Theory for the Modeling of Varying Iridescence", SIGGRAPH 2017. Thin films: soap, oil, beetles. Stam 1999 "Diffraction Shaders", SIGGRAPH 99. Gratings: the CD, the butterfly wing.
—
X4
self-study
Light paths
bidirectional path tracing, photon mapping, Metropolis
slides readings PBRT 3e ch. 16 Light Transport III: Bidirectional Methods. BDPT and Metropolis, with code. The one chapter the 4th edition dropped. Veach ch. 10 Bidirectional path tracing: the light and eye subpaths, every way of joining them, and MIS over the joins. Veach & Guibas 1997 "Metropolis Light Transport", SIGGRAPH 97. Mutating a good path instead of starting again. Jensen 2001 Realistic Image Synthesis Using Photon Mapping, A K Peters. The book; its 1996 paper is the short form. Heckbert 1990 "Adaptive Radiosity Textures for Bidirectional Ray Tracing", SIGGRAPH 90. Where the L(S|D)*E path notation comes from.
—
X5
self-study
Volumes
transmittance, phase functions, free-flight sampling, clouds and skin
slides readings PBRT 4e ch. 11 Volume scattering: absorption, out- and in-scattering, phase functions, how a medium is described. PBRT 4e ch. 14 Light Transport II: volume rendering. Free-flight sampling, delta tracking, ratio tracking. Novák et al. 2018 "Monte Carlo Methods for Volumetric Light Transport Simulation", Eurographics STAR 2018. The survey; read after the deck. RT Next Week §9 Volumes Constant-density fog in the RTIOW style, the gentlest start.
—
X6
self-study
Real time
one path per pixel: denoising, ReSTIR, hardware ray tracing
slides readings Schied et al. 2017 "Spatiotemporal Variance-Guided Filtering", HPG 2017. SVGF: one path per pixel made watchable. Bitterli et al. 2020 "Spatiotemporal Reservoir Resampling for Real-Time Ray Tracing with Dynamic Direct Lighting", SIGGRAPH 2020. ReSTIR. RT Gems I and II The chapters on denoising, the DXR pipeline and acceleration structures on the GPU. Free online. PBRT 4e ch. 15 Wavefront rendering on GPUs: how a path tracer is organised when the GPU runs it.
—
X7
self-study
Learned scenes
NeRF, Instant-NGP, Gaussian splatting
slides readings Mildenhall et al. 2020 "NeRF: Representing Scenes as Neural Radiance Fields for View Synthesis", ECCV 2020. The volume equation of X5, learned. Müller et al. 2022 "Instant Neural Graphics Primitives with a Multiresolution Hash Encoding", SIGGRAPH 2022. NeRF in seconds. Kerbl et al. 2023 "3D Gaussian Splatting for Real-Time Radiance Field Rendering", SIGGRAPH 2023. The scene as sorted splats.
—
X8
self-study
Neural appearance
neural BRDFs and materials, neural texture compression, the learned bounce
slides readings Sztrajman et al. 2021 "Neural BRDF Representation and Importance Sampling", Computer Graphics Forum 40(6). A measured material as a network, with a learned sampler. Kuznetsov et al. 2021 "NeuMIP: Multi-Resolution Neural Materials", SIGGRAPH 2021. Displacement and parallax learned from renders of the real surface. Vaidyanathan et al. 2023 "Random-Access Neural Compression of Material Textures", SIGGRAPH 2023. Latents plus a tiny decoder in the shader. Müller et al. 2021 "Real-time Neural Radiance Caching for Path Tracing", SIGGRAPH 2021. The learned bounce, trained while the frame renders. Chaitanya et al. 2017 "Interactive Reconstruction of Monte Carlo Image Sequences using a Recurrent Denoising Autoencoder", SIGGRAPH 2017. Optional; the first neural denoiser.
—
—
Fri, 16 Oct
A6 due
—
22
Mon, 19 Oct
Render show-and-tell; midterm review
slides finger ex.
—
—
—
Wed, 21 Oct
—
—
Fri, 23 Oct
GPU setup check released
—
23
Mon, 26 Oct
The GPU: why it exists, how it is built; the frame budget
GPU setup check due
—
24
Wed, 28 Oct
The pipeline: one triangle's trip; inside the rasterizer
slides finger ex. readings RTR 4e §2.1–2.6, §23.1 The graphics rendering pipeline, stage by stage, and how a triangle is rasterized. Read before class. Shirley §9.1.2, §9.2.2–9.2.3, §17.4 Triangle rasterization, a minimal 3D pipeline and the z-buffer. Giesen, "Triangle rasterization in practice" Edge functions over the bounding box, the top-left rule. Read with "The barycentric conspiracy". Giesen, "A trip through the Graphics Pipeline 2011" Parts 3, 5, 6 and 7: the hardware's side of the same trip. Optional.
—
25
Fri, 30 Oct
The API: WebGPU's objects; hello triangle (wgpu-py, WGSL)
slides finger ex. triangle.py triangle_colours.py Triangle Lab readings WebGPU Fundamentals Fundamentals Adapter, device, shader module, pipeline, command encoder: the first triangle. Read before class. wgpu-py guide The Python binding the course uses, and its triangle example. RTR 4e §3.4–3.5, §3.8–3.9 The vertex shader, tessellation and the pixel shader, as the API sees them. Shirley §17.5–17.10 Application layout, buffers and shaders in OpenGL's names, for the concepts.
—
—
26
Mon, 2 Nov
Fragment shaders in WGSL: a function per pixel; uniforms
—
—
27
Wed, 4 Nov
Light on a sphere: normals, diffuse and highlight in a fragment shader
—
—
28
Fri, 6 Nov
Into 3D: the vertex shader, the MVP chain, the depth buffer
A8 released
—
—
Mon, 9 Nov
—
—
29
Wed, 11 Nov
A model: loading Suzanne, normals, coloured lights and a spotlight
A7 due
—
30
Fri, 13 Nov
Shadow mapping: a second pass from the lamp, bias, PCF
A8 due A9 released
—
31
Mon, 16 Nov
The rays return 1: a traced shadow ray beside the shadow map
slides finger ex. lec31_code.zip Ray Lab readings Shirley §11.1–11.4.2, §17.15 Texture lookups, coordinates, perspective-correct interpolation, mipmaps, bump and normal maps. Read before class. RTR 4e §6.1–6.2, §6.7 The texturing pipeline, image texturing and minification, bump mapping. WebGPU Fundamentals Textures Samplers, address modes, filtering and mipmaps in WebGPU. Williams 1983 "Pyramidal Parametrics", SIGGRAPH '83. Where the mipmap comes from. Optional.
—
—
32
Wed, 18 Nov
The rays return 2: mirror rays and soft shadows; the hybrid frame
—
—
33
Fri, 20 Nov
Ray marching 1: a scene from a distance
A9 due A10 released
—
34
Mon, 23 Nov
Ray marching 2: shapes that melt, repeat and cast shadows
—
—
35
Wed, 25 Nov
Splatting 1: a picture from blobs
—
—
36
Fri, 27 Nov
Splatting 2: a blob in 3D
A10 due A11 released Project brief Proposal assigned
—
37
Mon, 30 Nov
Splatting 3: order, and a real scene
Proposal due
—
38
Wed, 2 Dec
Splatting 4: where the blobs come from
—
—
39
Fri, 4 Dec
A11 due
—
40
Mon, 7 Dec
To be announced
slides finger ex. readings RTR 4e ch. 26 Real-time ray tracing: the chapter, free from the authors' site, with §26.5 on the denoiser that makes one ray per pixel a picture. Read before class. RT Gems I and II How production renderers path trace on the GPU. Dip in. PBRT 4e ch. 15 Wavefront rendering on GPUs: how a path tracer is organised when the GPU runs it. Optional.
—
—
41
Wed, 9 Dec
To be announced
slides finger ex. readings Shirley ch. 4, ch. 7 Ray Tracing and Transformation Matrices, re-read end to end. Everything else in the course hangs off these two chapters. Shirley §9.2, §17.4 The pipeline and the hardware model, for the real-time half. RTR 4e ch. 2–3 The pipeline and the GPU, re-read: the six real-time tricks hang off these. RTR 4e §26.1–26.5 Which rays engines cast today, and how they are denoised: the last column of the review's table.
Final project due after the exam period
—
—
Thu, 10 Dec
exam paper
—