How Ray Tracing Works in Computer Graphics, Part 1
Phillip Durst Phillip Durst

How Ray Tracing Works in Computer Graphics, Part 1

Ray tracing in game engines is the means by which graphics are rendered. At their core, a ray tracing algorithm is simply drawing a straight line between two objects in a scene, and then applying an interaction function. A ray tracing engine starts from some vantage point inside the scene, usually the player or a virtual camera, and sends a set of rays from this point into the scene. The rays intersect with an object inside the scene, and the ray is subsequently reflected back. In games, rays are almost always representing visible light and traced from the player into the scene and returned as an image. Hence, the name.

Read More
How Ray Tracing Works in Computer Graphics, Part 2
Phillip Durst Phillip Durst

How Ray Tracing Works in Computer Graphics, Part 2

So, Part 1 introduced the most basic building blocks of a ray tracer, which were, more or less, a piece of code that draws a straight line between two objects and then does math on it until the object(s) more or less resemble a physical system. The question then is: how does the math know what math to math? Or, put differently, what are the properties of the object that determine how it appears in the final, rendered image?

Read More
How Ray Tracing Works in Computer Graphics, Part 3
Phillip Durst Phillip Durst

How Ray Tracing Works in Computer Graphics, Part 3

Ok, Part 1 introduced the most basic building blocks of a ray tracer - drawing a line between two points and some clever math. Part 2 touched on that math - the properties of the object that determine how it appears. So for Part 3, we're going to look a little more about these properties. In Part 2, we looked at color; for Part 3, we're going to look at the rest of the basics.

Read More