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.

How to get beautiful nails quickly

How to get beautiful nails quickly

You want to have a beautiful, shiny, healthy nail quickly. The simple tips for beautiful nails below will be useful for you.

The best laptops for students in 2025

The best laptops for students in 2025

Students need a specific type of laptop for their studies. It should not only be powerful enough to perform well in their chosen major, but also compact and light enough to carry around all day.

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.

How to check RAM and check RAM errors on your computer with the highest accuracy rate

How to check RAM and check RAM errors on your computer with the highest accuracy rate

As you know, RAM is a very important hardware part in a computer, acting as memory to process data and is the factor that determines the speed of a laptop or PC. In the article below, WebTech360 will introduce you to some ways to check for RAM errors using software on Windows.

Top 5 best automatic home coffee makers

Top 5 best automatic home coffee makers

The automatic home coffee maker is a modern and professional product, bringing you and your family delicious cups of coffee with just a few quick steps.

Difference between regular TV and Smart TV

Difference between regular TV and Smart TV

Smart TVs have really taken the world by storm. With so many great features and the ability to connect to the Internet, technology has changed the way we watch TV.

Why doesnt the freezer have a light but the refrigerator does?

Why doesnt the freezer have a light but the refrigerator does?

Refrigerators are familiar appliances in families. Refrigerators usually have 2 compartments, the cool compartment is spacious and has a light that automatically turns on every time the user opens it, while the freezer compartment is narrow and has no light.

2 Ways to Fix Network Congestion That Slows Down Wi-Fi

2 Ways to Fix Network Congestion That Slows Down Wi-Fi

Wi-Fi networks are affected by many factors beyond routers, bandwidth, and interference, but there are some smart ways to boost your network.

How to Downgrade from iOS 17 to iOS 16 without Losing Data using Tenorshare Reiboot

How to Downgrade from iOS 17 to iOS 16 without Losing Data using Tenorshare Reiboot

If you want to go back to stable iOS 16 on your phone, here is the basic guide to uninstall iOS 17 and downgrade from iOS 17 to 16.

What happens to the body when you eat yogurt every day?

What happens to the body when you eat yogurt every day?

Yogurt is a great food. Is it good to eat yogurt every day? What will happen to your body when you eat yogurt every day? Let's find out together!

Which type of rice is best for health?

Which type of rice is best for health?

This article discusses the most nutritious types of rice and how to maximize the health benefits of whichever rice you choose.

How to wake up on time in the morning

How to wake up on time in the morning

Establishing a sleep schedule and bedtime routine, changing your alarm clock, and adjusting your diet are some of the measures that can help you sleep better and wake up on time in the morning.

Rent Please! Landlord Sim Tips for Beginners

Rent Please! Landlord Sim Tips for Beginners

Rent Please! Landlord Sim is a simulation mobile game on iOS and Android. You will play as a landlord of an apartment complex and start renting out an apartment with the goal of upgrading the interior of your apartments and getting them ready for rent.

Latest Bathroom Tower Defense Codes and How to Enter Codes

Latest Bathroom Tower Defense Codes and How to Enter Codes

Get Bathroom Tower Defense Roblox game codes and redeem them for exciting rewards. They will help you upgrade or unlock towers with higher damage.

Structure, symbols and operating principles of transformers

Structure, symbols and operating principles of transformers

Let's learn about the structure, symbols and operating principles of transformers in the most accurate way.