What is Ray Tracing? Learn how Ray Tracing works

The evolution of technology brings breakthroughs in the visual experience but also from the graphics to life,  nvidia's new Ray Tracing technology  is the answer to that development when the company  launches the line of graphics cards . New generation graphics based on their Turing architecture. So what is Ray Tracing ? Why say this is the technology of the future? Let's find out with WebTech360 in this article

What is Ray Tracing?

Ray Tracing  is a technique of rendering (rendering) light by following light rays (trace means chasing, ray means light rays). You can imagine this technique like how you look up at the sun, tracking where its rays hit, what objects they hit and how it shines on the surrounding objects. Ray tracing recreates that process but in a digital environment.

In other words, ray tracing tracks the light absorbed, reflected, scattered and scattered by each object in the environment, and it applies not only to a beam of light from the sun but to any other light source. (for example: 2 light bulbs in the game room, the flickering fire of the fireplace in the game, the artificial light source is fixed when rendering 3D...).

Currently, Turing architecture with Ray Tracing is still a big question mark, expected to be a revolutionary turning point of the GPU market, such products are likely to be seen in most PCs in the future. or not, or is the price so high that few people can own and use it?

It is difficult to answer, because although there have been articles and reviews for the two GeForce RTX 2080 FE and GeForce RTX 2080 Ti FE series, we still have to wait, even for games that support high technology. of the card, here is ray tracing. In addition, Quadro professional graphics cards are also equipped with this new technology: Quadro RXT 8000, Quadro RXT 6000, Quadro RXT 5000, Quadro RXT 4000.

What is Ray Tracing?  Learn how Ray Tracing works

How Ray Tracing Works

The goal of ray tracing is to create more realistic lighting and more natural shading, and NVIDIA 's RTX series has achieved impressive results, at least in the launch demos. A wooden room with an open window will light up almost the whole room when using traditional lighting, and when ray tracing is on, places with direct light will be brighter than in the dark corners of the room. room. NVIDIA also showed how the flames in Battlefield V can haunt a character in the game and scorch car doors very realistically.

Light not only affects illumination, it also affects color, depth, and shadows. So when the lighting is simulated close to real life, the rest of the elements are also well done. The shaders in the current game look quite harsh and clear, lacking the slight transition between the light and dark patches, and ray tracing is the piece that makes this possible.

Ray Tracing Algorithm 

Creating a simulation of the real world is a very complex undertaking. It includes many factors, like an infinite number of light beams, reflecting surfaces, passing through objects, all based on the molecular properties of each object, not to mention gravity and physical interactions. Simulating such an "infinite" thing using only the finite resources of the current computer is completely disproportionate and impossible.

We call a solution to the above problem "rasterization", instead of dealing with an infinite number of photons, the processing begins with polygons. More polygons mean faster processing speed, and rasterization is here to turn those millions of polygons into a specific image.

In short, it creates 2D prototypes and renders them on a pre-built 3D world. In it, 2D images made of polygons can cover the entire screen when viewed up close, but may cover only a few pixels when viewed from a distance, thereby creating pixels, textures and principles. light. Of course, one technique cannot cover the entire job.

Various techniques such as Z-buffer (a secondary buffer that tracks the depth of each pixel) speed up the process, creating a tool that makes the millions of generated polygons visible, sortable and handled as efficiently as possible. This can require millions or even billions of calculations per frame that only modern GPUs with processing speeds of teraflops can handle.

What is Ray Tracing?  Learn how Ray Tracing works

Ray tracing , approaches the above problem differently from R asterization , historically it has been around for about 50 years now. Turner Whitted currently works for NVIDIA , in the past sketching how to compute recursively tracking, resulting in impressive visuals including shadows, reflections and more. Of course, it's going to be a lot more complicated than rasterization.

Ray tracing involves detecting the direction of a ray (usually a ray of light) when projecting it into the 3D world. Suppose you want to build an object, the first thing is to determine the light rays that follow the polygon that makes up the object, then take into account the possible light sources, the properties of the polygon such as the material, flat or curved surface, in short, add or subtract light rays.

This process is then repeated for any other light sources, including light reflected from objects in the scene. It is so complex that many formulas are needed to make ray tracing possible, even for transparent, semi-transparent surfaces, e.g. glass or water . Everything must have a limit of artificial reflection, because even a ray cannot detect all the infinite number of photons.

What is Ray Tracing?  Learn how Ray Tracing works

The most commonly used ray tracing algorithm, according to NVIDIA , is BVH Traversal: Bounding Volume Hierarchy Traversal which speeds up the process by zoning objects for processing, in other words "divide and conquer" .

What is Ray Tracing?  Learn how Ray Tracing works

You can refer to NVIDIA's rabbit model which uses the BVH algorithm, which localizes each level, divides the parts into blocks, smaller and smaller until the algorithm results in a short list polygons, and then the job of ray tracing.

However, the amount of work to do when doing this work with software on the CPU or GPU is too high. An alternative is RT core, each RT core has built-in BVH structure algorithm, making it capable of processing work 10 times faster than CUDA core.

What is Ray Tracing?  Learn how Ray Tracing works

In addition, it must also be mentioned how many light rays are detected on a pixel, just one ray leads to tens or hundreds of calculations, but the more rays tracked, the work will be lighter, and the productivity will be high. than. Companies like Pixar, also use ray tracing technology to create animations.

A 90-minute movie with a frame rate of 60 FPS requires 324,000 images, each of which takes several hours computing the rays that are tracking each pixel. How is NVIDIA going to achieve such a real-time equivalent? I mentioned the appearance of RT cores above, but if that's not enough, the answer is that Tensor cores are only available in Turing architecture. For a simple example, taking a workload of FP16, Tensor cores reach 114 TFLOPS while FP32 and CUDA have only 14.2 TFLOPS.

What is Ray Tracing?  Learn how Ray Tracing works

But why is Tensor core enough for ray tracing? It's AI and self-learning, in other words it's Deep Learning Super Sampling feature that allows the game to render at a lower resolution without AA, then the Tensor core will inherit and impact the frame , anti-aliasing for higher resolution.

In conclusion, big names in the rendering industry have stepped into ray tracing such as Epic, UE, Unity 3D, EA Frostbite. Microsoft even created DirectX Ray specifically for ray tracing. With RTX, this is really a big jump in the computer graphics industry, of course it is still not complete and within the next ten years to be able to put the RTX 2080 Ti in the market as a mainstream is completely. maybe.

Ray Tracing Technology on NVIDIA's Latest Graphics Cards

Current graphics technology from NVIDIA and virtually the entire industry is about simulating light and the behavior of light in a given scene, in a simpler way, called Rasterization. Like a painter paints, objects are rendered layer by layer, back to front, so objects in the foreground will obscure objects in the background.

What is Ray Tracing?  Learn how Ray Tracing works

Display difference between conventional Raster (left) and ray tracing (right).

However, this approach will be difficult when rendering the reflection, because the raster technique will not be able to track and render the light. It is often used in real-time scenes because current hardware is not enough to simulate the motion of complex scenes, for example in video games or 3D animations.

Meanwhile, ray tracing reconstructs the behavior of light as it hits surfaces, materials and moving objects.

Light as it passes through a scene can be rendered and rendered more complex. With ray tracing, you can simulate how light rays interact with objects, creating realistic reflections, refractions, and scattering effects in real time. Ray tracing can even detect and display refractors, reflectors, visualize the source of light in the scene and even the color of the light after it has passed through the subject.

What is Ray Tracing?  Learn how Ray Tracing works

In fact, this technique has been used in practice, with movies like Pixar's Monsters University, Marvel's Iron Man. But that was when it was used by professional users, but now it has been brought to general users – something that was impossible before.

This deserves to be called a feat of NVIDIA because ray tracing requires a huge amount of computing power. NVIDIA CEO Jensen Huang said it was "the biggest leap we've ever made in a generation (GPU cards)."

What is Ray Tracing?  Learn how Ray Tracing works

NVIDIA's way of solving the problem is to use the new Turing architecture in the newly released GPUs. This architecture is designed to solve the processing problem. The dedicated ray tracing cores are also equipped with Tensor Cores, which are able to use AI to infer the "real-time" portion of the image – the most computationally intensive problem of this technique. So the GPUs are able to emulate 6x faster than the previous Pascal platform (on GTX 1080Ti).

This is truly a huge leap in graphics technology and it's exciting to think that studios and individuals will now be able to extend the use of this ray tracing technique to applications in animation, Science games and simulations.

Hopefully, Ray Tracing technology will be more and more developed, then we will experience even more beautiful image quality, but at the present time it is really difficult for you to experience Ray Tracing for other users. terrible games because they require huge software. If you need advice on Ray Tracing gaming configuration, please contact WebTech360 .

Synthesized from: Genk.vn

Tags: #Wiki
Sign up and earn $1000 a day ⋙

Leave a Comment

What is 3uTools? How to install and use 3uTools in detail

What is 3uTools? How to install and use 3uTools in detail

3uTools supports users to manage utility applications more than the traditional way. Easy-to-use interface, will bring interesting experiences to you.

What is rendering?

What is rendering?

Rendering is the process of creating an image from a model into a movie scene or image using computer software.

What is CPU? What are the popular CPU types today?

What is CPU? What are the popular CPU types today?

The CPU is the data processing center, or simply understood, it is the brain that controls most of the rest of the components in a computer.

What is GPU? How does GPU affect work and play?

What is GPU? How does GPU affect work and play?

The GPU is the processor that handles graphics-related tasks for the CPU's central processor. Features on GPUs go far beyond basic graphics drivers like Intel's GPU

What is a Flyer? 3 Secrets of Best Flyer Design

What is a Flyer? 3 Secrets of Best Flyer Design

Flyer is a form of advertising, a marketing product that has existed for a long time, also known as leaflets, product marketing brochures.

What is ECC RAM? Distinguishing Non-ECC, Registered ECC and Unbuffered ECC RAM

What is ECC RAM? Distinguishing Non-ECC, Registered ECC and Unbuffered ECC RAM

ECC RAM is a type of RAM that has the ability to control the flow of data accessed in it to help automatically correct errors. ECC RAM has very high stability which helps you to reduce risk.

What Is Chipset? Its Tasks in the Computer System

What Is Chipset? Its Tasks in the Computer System

Chipset is a collection of chips, chipset refers to the chip on the mainboard or on the expansion card. On PC, commonly known as northbridge and southbridge.

What is Hyperthreading? Without Hyper threading, what will the CPU performance be like?

What is Hyperthreading? Without Hyper threading, what will the CPU performance be like?

Hyper threading is a hyper-threading technology and is known as Intel HT technology by globally famous technology manufacturer Intel.

What is a VRM circuit?

What is a VRM circuit?

The VRM circuit is the voltage regulator in the motherboard. With the presence of VRM, the CPU and GPU will be provided with clean power to operate stably.

What is V-Sync, FreeSync on the monitor? Are they really useful?

What is V-Sync, FreeSync on the monitor? Are they really useful?

On the quality screen, they integrate a technology called V-Sync, FreeSync. Let WebTech360 explain to you about V-Sync, what is FreeSync?

What is Anti-Aliasing? The Role of Anti-Aliasing

What is Anti-Aliasing? The Role of Anti-Aliasing

Anti-aliasing is the main adjustment mode to help objects and people become softer and not angular, the game experience will also be better.

What is Animation? 3 Simplest Ways to Create Animation

What is Animation? 3 Simplest Ways to Create Animation

Animation is an age-old method in which people make motions of images based on still images.

What is Footage Video? The Secret To Owning A Movie-like Footage

What is Footage Video? The Secret To Owning A Movie-like Footage

Footage is unedited raw footage and footage. You can understand that footage is all the components that make up a video, and footage is very diverse.

What is Storyboard? Why Do You Need Storyboards?

What is Storyboard? Why Do You Need Storyboards?

Storyboard is a storyboard, consisting of a series of illustrations and accompanied by notes about what is going on, carrying the content of the story.

5 ways to open the Startup Repair tool on Windows

5 ways to open the Startup Repair tool on Windows

Startup Repair is a Windows recovery tool that can fix some system problems that prevent Windows from starting. Startup Repair scans your PC for problems and then attempts to fix them so your PC can start correctly.

4 reasons you need a tripod to take photos on your smartphone

4 reasons you need a tripod to take photos on your smartphone

While you can take many types of photos manually on your smartphone, there are some situations where a tripod will be needed.

How to listen to music privately on Apple Music

How to listen to music privately on Apple Music

Although Apple Music doesn't have an anonymous listening mode, we can also adjust some settings to be able to listen to music on Apple Music more privately.

How to use Gemini 1.5 Flash for free

How to use Gemini 1.5 Flash for free

At I/O 2024, Google announced a number of new AI models, upcoming projects, and a plethora of AI features that will be available across its products. However, the most notable one was the Gemini 1.5 Flash model.

How to use ChatGPT o3-mini for free

How to use ChatGPT o3-mini for free

The ChatGPT o3-mini inference model is now available for free to all ChatGPT users. OpenAI has added a Reason button next to the ChatGPT content importer to use the o3-mini model.

Scammers Are Using Deepseek to Steal User Data

Scammers Are Using Deepseek to Steal User Data

Bad guys are creating thousands of DeepSeek-like websites in the hopes that unsuspecting users will give them their personal information.

How to read five/five, four/four, one/one… correctly in the sequence of natural numbers?

How to read five/five, four/four, one/one… correctly in the sequence of natural numbers?

Five or five? Are you wondering whether reading two thousand twenty-five is correct? This article will give you the answer.

How to store avocado in the freezer

How to store avocado in the freezer

Freezing can help keep avocados fresher longer, but it can reduce their vitamin content over time. Here's how to best store avocados in the freezer.

Instructions to change the default File Explorer folder

Instructions to change the default File Explorer folder

By default, File Explorer opens to the Home folder, which contains recently used folders and files. If you want to change the default File Explorer folder, follow the instructions below.

Ways to reduce the risk of birth defects in the fetus

Ways to reduce the risk of birth defects in the fetus

Birth defects are something no one wants. Although they cannot be completely prevented, you can take the following steps to reduce the risk of birth defects in your baby.

What planets are Venus and Venus?

What planets are Venus and Venus?

What are the evening star and the morning star? Here's what you need to know about the evening star and the morning star.

Huawei Mate XT Ultimate screen repair price is as expensive as an iPhone 16 Pro Max

Huawei Mate XT Ultimate screen repair price is as expensive as an iPhone 16 Pro Max

According to the official price list announced by Huawei itself, repairing the Mate XT Ultimate screen will cost up to 7,999 CNY, equivalent to 1,123 USD or nearly 28 million VND, equal to the price of an iPhone 16 Pro Max.

Summit supercomputer is about to retire

Summit supercomputer is about to retire

Oak Ridge National Laboratory (ORNL) announced that Summit, the world's most powerful supercomputer in 2018 and 2019, will be shut down in November after nearly six years of operation.

How to connect wifi on Panasonic Smart TV

How to connect wifi on Panasonic Smart TV

Most Panasonic smart TVs support wifi connection so that users can use and experience many useful features, programs and information not only domestically but also abroad.

How to connect wifi for LG Smart TV

How to connect wifi for LG Smart TV

Connecting wifi to LG Smart TV is not too difficult, you just need to follow 4 steps according to the instructions in our article to succeed.