Gaming, Graphics & XR

Ray tracing

Also known as: real-time ray tracing, raytracing

Ray tracing is a way of creating computer graphics by simulating the paths of light rays as they bounce off, pass through, or are blocked by objects.

It produces realistic reflections, soft shadows, and lighting that older techniques can only fake. While film studios have used ray tracing for decades, real-time ray tracing in games only became practical around 2018, and it still costs so much performance that most games mix it with faster tricks.

Ray tracing, explained at three levels

At home

Think of shining a flashlight in a dark room and watching where the beam lands, bounces, and gets blocked. Ray tracing does the same thing with maths. The computer fires imaginary rays of light into a 3D scene and follows each one as it hits surfaces. Where a ray bounces off a puddle, you get a reflection; where something blocks it, you get a shadow.

At work

Ray tracing is a rendering method that calculates lighting by following simulated light rays through a 3D scene instead of approximating it. Because reflections, shadows, and light bouncing between surfaces come out physically correct, the images look photographic. Businesses care because architects, product designers, and film studios can show clients accurate lighting and materials before anything is built or shot.

Real-world examples

At home

Marcus turned on ray tracing in a racing game and noticed cars now reflected the buildings and streetlights around them. His frame rate dropped until he also enabled upscaling, which brought it back.

At work

Nadia is a visualization artist at a Toronto architecture firm. Using ray-traced rendering, she shows clients how sunlight will move through a planned atrium at different times of year, helping them choose window placements.

How it compares

featureRay tracingRasterization
How it worksSimulates light pathsProjects triangles onto the screen
RealismHigh, physically basedRelies on approximations
Performance costHighLow
Typical useFilms, high-end games, visualizationNearly all real-time graphics

Ray tracing is more realistic. Rasterization is much faster.

For analysts

For visualization work, ray tracing can reduce costly physical mockups. I'd weigh the hardware investment against how many client decisions depend on seeing accurate lighting before construction or production.

History & origin

Arthur Appel described casting rays to determine shading in 1968, and Turner Whitted's 1980 paper showed recursive ray tracing for reflections and refractions, producing famously realistic images that took hours to render. Pixar and other studios adopted ray tracing for films in the 2000s as computers grew faster; Pixar's Cars (2006) was an early showcase. In 2018, Nvidia launched its RTX 20 series graphics cards with dedicated ray tracing hardware, and Microsoft added DirectX Raytracing to Windows. The PlayStation 5 and Xbox Series X brought ray tracing to consoles in 2020. In my view, real-time ray tracing only became truly usable once AI upscaling arrived to pay for its performance cost.