What is the Ray Tracing of video games and what is it for?

What is the Ray Tracing of video games

Ray tracing was introduced in 2018 with Nvidia Turing silicon-powered graphics cards, and it’s being sold as the big news for this new generation of consoles. However, there are still many players who are not very clear about what this technology consists of, and if it has a real impact on the gameplay when sitting on the couch and playing a game. Let’s explain a little what the famous ray tracing consists of and if today, it is worth it or not.

What is ray tracing?

ray tracing star wars.

Ray tracing or ray-tracing is not a new technology. Basically, it consists of lighting a scene designed by computer in the same way that the light would in the real world.

This that a priori may seem so simple, it is not for our computers. Simulating light supposes an enormous effort at the computational level, since the computer has to calculate each ray of light, and determine which rays bounce off, which ones are absorbed and which others will be covered by an object, generating shadows.

Ray tracing has existed in theory for decades, and has only been put into practice by some animation studios that did have enough power to render scenes using this technique . Until 2018, the idea that we could have graphics cards in our computers (or consoles) capable of simulating light rays still seemed distant. Even today, four years later, there is still a lot of work to be done, and there are many video games that do not particularly benefit from the technique, due to the difficulty that still exists when it comes to implementing it .

Ray Tracing vs. Rasterization

Software engineers hit the power barrier when they first tried to apply ray tracing, so they had to come up with a system to make silicon easier to work with. This is how rasterization emerged , which is the model that has been used —and continues to be used— in practically all the video games we know.

Rasterization works the opposite of ray tracing . First, each object in the scene is painted in color. And then, mathematical logic is applied to determine the highlights and shadows, although the effect is only applied to pixels that are in the camera’s field of view. Although this system may seem a bit archaic, the truth is that it has been perfected so much that it is even possible to obtain results very similar to those achieved with ray tracing. However, ray tracing is always going to have higher quality shadows and reflections .

Therefore, the goal of ray tracing is to render three-dimensional environments in the same way that images are formed in our world. At the moment, ray tracing will coexist for many years with rasterization. Today, ray tracing has quite a few limitations , and there is still a technical ceiling when moving certain games to very high resolutions, something that rasterization has solved efficiently.