Learn AI, Data Science & Business — Earn Certificates That Get You Hired
Power BI Fundamentals - Create visualizations and dashboards from scratch
Overview
Build a Learning Habit
Download Class Central's free printable study calendar
Download for Free
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