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
- Open the interactive lesson, with a mini quiz.
- Take the Graphics, Vision & Media quiz.
How to study this topic
- Read the explanation above and restate the definition in your own words.
- Open the interactive lesson and answer its mini quiz.
- Read the common pitfall, then write a short example that avoids it.
- 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?
Where do people use Ray Tracing?
What is the most common mistake with Ray Tracing?
What should I learn before this topic?
How can I practice it?
Is Ray Tracing hard to learn?
How long does it take to learn Ray Tracing?
Which topics are related to Ray Tracing?
What should I study after Ray Tracing?
Related topics
- Shaders (Graphics, Vision & Media)
- Global Illumination (Graphics, Vision & Media)
- Texture Mapping (Graphics, Vision & Media)
- Bézier Curves and Splines (Graphics, Vision & Media)
- Tracing with OpenTelemetry (DevOps & Tooling)
- Distributed Tracing (Distributed Systems & Cloud)