Ray by Day JS
Day 9 - Classical Optics - The Nature of Light
This page is still under construction, but here's an overview of the key concepts introduced today:
Light is a form of electromagnetic radiation that plays a central role in both our everyday experience and in the field of computer graphics. Before we explore how light is modeled in CGI, it's helpful to understand a few essential facts about real, physical light.
- The Speed of Light
Light travels at an extraordinary speed—known as "the speed of light in vacuo." In vacuo means "in a vacuum," or in empty space, where nothing slows light down. The speed of light in a vacuum is exactly 299,792,458 meters per second (about 186,282 miles per second). This value is not just a measurement—it's the foundation for the modern definitions of the meter in the International System of Units (SI). In other words, our standard distance is based on this precise speed.
- Frequency, Wavelength, and Color
Light can be described as a wave, characterized by wavelength (the distance between two consecutive peaks, measured in nanometers) and frequency (the number of wave cycles per second, measured in Hertz). These are related by the equation: speed = wavelength × frequency
. The color of visible light is determined by its wavelength or frequency; for example, red light has a longer wavelength and lower frequency than blue light.
- The Spectrum of Light
While "light" often refers to what we can see, electromagnetic radiation spans a vast range. Visible light is just a small slice, with wavelengths from about 380 nm (violet) to 750 nm (red). Beyond visible light are infrared, ultraviolet, radio waves, X-rays, and more.
- The Nature of Light
Light is a form of electromagnetic radiation, which means it is a wave of energy that travels through space. It is characterized by its wavelength (the distance between two consecutive peaks) and frequency (the number of wave cycles per second). The speed of light is constant, and the relationship between wavelength, frequency, and speed is given by the equation: speed = wavelength × frequency
. The color of visible light is determined by its wavelength or frequency; for example, red light has a longer wavelength and lower frequency than blue light. In short: the higher the frequency, the shorter the wavelength.
Key Behaviors of Light
- Travel in a Straight Line (Rectilinear Propagation): In a uniform medium, light travels in straight lines. This is the foundation for the "ray" model used in many optical applications. Caveat: This straight-line behavior can break down at very small scales or when light encounters obstacles, leading to effects like diffraction and scattering.
- Reflection: When light encounters a surface, it can bounce off. The angle of incidence equals the angle of reflection. Ray tracing is particularly well-suited to modeling reflection, making it possible to simulate mirrors and shiny surfaces with high realism.
- Refraction: As light passes from one medium to another (such as air to water), it bends due to a change in speed. This is called refraction. Ray tracing can also model refraction effectively, allowing for realistic rendering of glass, water, and other transparent materials.
- Diffraction: When light passes by the edge of an object or through a small opening, it bends and spreads out. This effect is called diffraction. Ray tracing is not well-suited to modeling diffraction, as this phenomenon arises from the wave nature of light and requires different computational techniques.
- Scattering: Light can be redirected in many directions when it interacts with small particles or irregularities in a medium. Scattering, such as the blue color of the sky, is also challenging to model accurately with basic ray tracing and often requires additional or alternative methods. (There are, however, some "cheating" approximations that can be applied in ray tracing.)
- Polarization: Light waves can oscillate in particular directions. Polarization describes the orientation of these oscillations and is important in many optical technologies.
- Interference: When two or more light waves overlap, they can combine to form patterns of constructive and destructive interference, leading to colorful effects like those seen in soap bubbles.
Quantum Effects and the Limits of the Ray Model[1]
Many of these behaviors—especially diffraction, interference, and even aspects of reflection and refraction—are governed by the quantum nature of light. Light exhibits both wave-like and particle-like properties (wave-particle duality), and its behavior at very small scales is described by quantum mechanics.
- At human scales, light often behaves like rays, which is why the ray model works well for most everyday optics and computer graphics.
- At microscopic or nanoscopic scales, the ray model breaks down, and wave or quantum models are needed to accurately describe light's behavior.