Class Central is learner-supported. When you buy through links on our site, we may earn an affiliate commission.

YouTube

I Tried Ray-Tracing Glass and Rainbows

Sebastian Lague via YouTube

Overview

Coursera Flash Sale
40% Off Coursera Plus for 3 Months!
Grab it
Explore advanced ray-tracing techniques through hands-on coding to render realistic glass materials, caustics, and rainbow effects in this 41-minute programming tutorial. Learn to implement glass rendering with proper refraction and reflection, troubleshoot common bugs including NaN (Not a Number) errors, and add light absorption for more realistic materials. Discover how to create frosted glass effects and test implementations with glass ball renders. Compare stack-based versus stochastic approaches for ray-tracing calculations, then dive into visualizing caustics including cardioid and water caustic patterns. Master rainbow rendering through spectral light simulation and conduct experiments with spectral rendering techniques. Follow along with practical coding examples that demonstrate the mathematical principles behind light behavior, refraction indices, and optical phenomena while building a functional ray-tracer capable of producing photorealistic glass and optical effects.

Syllabus

00:00 Intro
02:02 Glass
04:58 Glass Bugs
09:04 NaNs
11:51 Absorption
13:49 Frosted Glass
15:44 Glass Ball Test
21:14 Stack versus Stoch
22:55 Visualizing Caustics
25:42 Cardioid Caustic
27:04 Water Caustic
32:24 Rainbow
36:01 Spectral Experiment
40:46 Outro

Taught by

Sebastian Lague

Reviews

Start your review of I Tried Ray-Tracing Glass and Rainbows

Never Stop Learning.

Get personalized course recommendations, track subjects and courses with reminders, and more.

Someone learning on their laptop while sitting on the floor.