Halloween Ray Tracer Part 3 Making It Glow

Halloween Ray Tracer Part 3: Making It Glow

Where we left off At the end of Part 2, the jack-o’-lantern had a lit body and a carved face, but the face looked painted on. A real candle-lit pumpkin glows: light spills out of the eyes and mouth and over the edges around them. In games this effect is called bloom. Unity and Unreal […]

Read More
HalloweenRayTracerPart2

Halloween Ray Tracer Part 2: Hitting a Sphere

Where we left off In Part 1, every ray flew off into a purple sky. In this part, some of those rays hit something: a pumpkin, half a unit wide, one unit in front of the camera. We’ll build it up in four steps, and each step gives an image you can run and see: […]

Read More

Halloween Ray Tracer Part 1: A Window, a Vector, and a Purple Sky

Why a pumpkin? This October I started Ray Tracing in One Weekend. I work in Unity and Unreal every day, so I’ve always had a GPU and an engine between me and the pixels. This book throws all of that away and asks: what if you computed every pixel yourself? A few weeks in, I […]

Read More