LearnViz CompSci
Home / Learn / Graphics, Vision & Media / Ray Tracing

Intermediate Topic 25 of 49 Graphics, Vision & Media

Ray Tracing

Simulating light rays to produce realistic images.

How it works

Ray tracing renders images by simulating light paths: for each pixel, a ray is cast from the camera into the scene, intersected with geometry, and at the hit point additional rays are traced toward lights for shadows and in reflection and refraction directions, recursively, to compute color. It naturally produces accurate shadows, reflections and refractions. Acceleration structures such as bounding volume hierarchies make intersection tests efficient. Path tracing extends it with random sampling of light bounces for global illumination, and denoisers clean up noise.

Where it is used

Film and animation rendering, architectural visualization, product design and now real-time effects on GPUs with dedicated ray-tracing hardware use ray tracing, often combined with rasterization.

Common pitfall

It is computationally expensive, with noise from limited samples and the need for denoising. Self-intersection artifacts, called shadow acne, occur when secondary rays hit the surface they start from, fixed with small offsets. Floating-point robustness and the choice of termination depth matter. Build a good acceleration structure, sample importantly and balance quality and frame time in real-time uses.

Where it fits in the course

Ray Tracing is topic 25 of 49 in Graphics, Vision & Media, rated Intermediate. It follows Shaders. The next topic is Global Illumination.

Practice and explore

How to study this topic

  1. Read the explanation above and restate the definition in your own words.
  2. Open the interactive lesson and answer its mini quiz.
  3. Read the common pitfall, then write a short example that avoids it.
  4. Check your understanding in the Graphics, Vision & Media quiz, and revisit the topic if you miss a question.

Frequently asked questions

What is Ray Tracing?
Simulating light rays to produce realistic images. It belongs to Graphics, Vision & Media and is an intermediate-level topic.
Where do people use Ray Tracing?
Film and animation rendering, architectural visualization, product design and now real-time effects on GPUs with dedicated ray-tracing hardware use ray tracing, often combined with rasterization.
What is the most common mistake with Ray Tracing?
It is computationally expensive, with noise from limited samples and the need for denoising.
What should I learn before this topic?
Start with Shaders, the topic just before it in Graphics, Vision & Media.
How can I practice it?
Answer the mini quiz in the interactive lesson, then take the Graphics, Vision & Media quiz.
Is Ray Tracing hard to learn?
It is an Intermediate topic. Be comfortable with the Beginner topics in this area first, then read the common pitfall carefully, since it is where most mistakes happen.
How long does it take to learn Ray Tracing?
Most learners can read the explanation and finish the interactive lesson in under an hour. Fluency comes from applying the idea, so plan a few short practice sessions with the quiz.
Which topics are related to Ray Tracing?
Shaders, Global Illumination, Texture Mapping are closely connected. The full list is in the related topics section of this page.
What should I study after Ray Tracing?
Continue with Global Illumination, the next topic in Graphics, Vision & Media.

Related topics