From Rayleigh scattering and rainbow arcs to ray-traced reflections and GLSL shader tricks — explore how light bends, scatters and glows in real time.
Optics is the branch of physics that studies how light behaves — how it reflects, refracts, diffracts, scatters and interferes as it travels through lenses, mirrors, prisms, water droplets and the atmosphere. With each interactive Optics simulation here you can adjust angles, wavelengths and refractive indices in real time and watch the laws of light respond, from Snell's law and total internal reflection to Fresnel reflectance and wave interference. You will learn the geometric and wave models that explain rainbows, blue skies, optical fibres, holograms and diffraction gratings. These browser-based tools turn abstract equations into something you can see and manipulate, making Optics intuitive for students, teachers, engineers and anyone curious about why light does what it does.
Click any card to open the simulation live in your browser
Physics behind the simulations
Articles and tutorials about the algorithms in this category
Ray tracing, diffraction, interference, and atmospheric optics — visualised
Optics simulations model how light behaves as both a wave and a ray. Ray-tracing engines trace thousands of photon paths through lens systems, computing refraction with Snell's law and reflection with Fresnel coefficients. The double-slit wave simulation shows how coherent monochromatic waves produce interference fringes, and how adding more slits sharpens the pattern toward a diffraction grating spectrum.
Atmospheric optics simulations reproduce rainbows by ray-tracing sunlight through spherical water droplets and computing the angular distribution of wavelength-dependent refraction. Rayleigh scattering explains the blue sky and red sunset from first principles. These visualisations cover the same ground as university-level physical optics and geometric optics courses, making abstract wave phenomena directly observable and manipulable.
Each simulation in this category is built with accuracy and interactivity in mind. The underlying mathematical models are the same ones used in academic research and professional engineering — just made accessible through a web browser. Changing parameters in real time and observing the results is one of the most effective ways to build intuition for complex scientific and engineering concepts.
Topics and algorithms you'll explore in this category
Five quick questions to check your understanding of light and optics
Common questions about this simulation category
Every Optics simulation in this collection runs free in your browser, letting you learn Optics online without any downloads or accounts. Each interactive Optics model is built on the real physics of light — Snell's law, Fresnel coefficients, diffraction and Rayleigh scattering — so adjusting wavelength, angle or refractive index gives instantly accurate results. These visualisations underpin real-world applications such as fibre-optic communications, where total internal reflection guides light along glass cables across continents. Whether you are revising for a physics exam, preparing a lesson or exploring how lenses, rainbows and holograms work, this interactive Optics model library makes the science of light tangible, hands-on and easy to understand at your own pace.