Computer graphics

How ray tracers work: from one ray to a spectral picture

The scene: a floor, a back wall, an area light, a strongly dispersive glass sphere (index 1.5, Abbe number 23), an orange cube and a blue ball. The BVH chapters build a binary tree with the surface area heuristic over the scene as 658 triangles; the live renderer intersects the six shapes directly, which is faster for so few.

The renderer is a pure path tracer: scrambled Halton samples, eight wavelengths per path between 400 and 700 nm (a random hero and seven evenly spaced companions: hero wavelength sampling), cosine-sampled matte surfaces, a glass sphere whose index follows Cauchy's law, and the CIE colour-matching curves (an analytic fit) to turn spectra into RGB. Matte colours become smooth reflectance spectra; the two paints of chapter 7 match exactly under an equal-energy white.

Helios · more films →