Caustic spot light for rendering caustics

Xinguo Liu, Zhao Dong, Hujun Bao, Qunsheng PengThe Visual Computer 2008

Abstract

Caustics are complex light patterns formed by the focusing of rays through refractive or reflective media. While essential for visual realism, they are computationally expensive to simulate in real-time. This paper introduces Caustic Spot Lights (CSLs), an intermediate representation that approximates the light field exiting a caustic object as a small set of specially parameterized spot lights. This approach enables interactive rendering of caustics on non-diffuse surfaces with dynamic lighting and moving objects.

Introduction

The shimmering patterns of light known as caustics are a hallmark of high-quality rendering but present a significant challenge for real-time applications. Traditional global illumination techniques, such as photon mapping or bidirectional ray tracing, require simulating millions of light paths, making them too slow for interactive use. Existing real-time approximations often impose restrictive constraints, such as static geometry, fixed lighting, or perfectly diffuse receiver surfaces.

The authors propose a "middle ground" solution: a simplified light model that retains the accuracy of global illumination while operating at the speed required for modern graphics hardware. By compressing the complex light field into a handful of "smart" light sources, the system achieves a balance between performance and visual fidelity.

Methodology

The core of the proposed method is the Caustic Spot Light (CSL). The rendering process is divided into two distinct phases:

Pre-rendering Phase

First, millions of rays are traced through a "caustic object" (e.g., a glass bunny or skull). These rays are then grouped into bundles using a 3D grid-based clustering algorithm (3D DDA). Each bundle is parameterized into a CSL using a specific mathematical function: $f(r) = \alpha / (1 + \beta r)$. Unlike standard computer graphics spot lights that assume a single focal point, this parameterization allows a single CSL to accurately represent how rays converge or diverge after passing through complex geometry. Finally, the energy distribution of these rays is stored in a 2D "light plane" texture.

A glass bunny model exhibiting complex caustic patterns on a wooden surface, rendered using the Caustic Spot Light method.

Rendering Phase

At runtime, the GPU performs a multipass rendering process, executing one pass for each active CSL. A compact pixel shader evaluates the light contribution for every pixel on the scene's surfaces. Because CSLs store both light intensity and directional information, the system can render caustics on shiny, non-Lambertian materials, a significant improvement over many previous real-time methods. To handle dynamic lighting, the system interpolates between pre-computed CSL sets mapped to a subdivided icosahedron.

Results and Evaluation

The method was evaluated using several standard 3D meshes: a Bunny (35k vertices), a Head (33k vertices), a Skull (20k vertices), and a Bird (48k vertices).

Performance and Efficiency

On mid-2000s hardware (GeForce 6800), the system achieved frame rates of 18–20 FPS for complex scenes. The compression achieved by the CSL representation is remarkable; for most objects, only approximately 8 CSLs per light direction were required to capture 95% of the total ray-traced energy.

Visual Fidelity

Qualitative comparisons demonstrate that CSL rendering closely approximates high-quality offline ray tracers like POV-Ray. The method successfully captures the sharp intensity peaks and soft gradients characteristic of realistic caustics.

Comparison of caustic rendering across four test meshes: Head, Bunny, Skull, and Bird. The side-by-side images demonstrate the visual fidelity of Caustic Spot Lights compared to high-quality offline rendering.

Discussion

Key Insights

The success of the CSL approach stems from the use of an effective intermediate representation. By focusing on the geometric properties of how rounded objects focus light—the "moving point" parameterization—the authors created a model that is far more efficient than generic light approximations. Furthermore, the inclusion of directional awareness allows for view-dependent effects, such as caustic reflections on metallic floors, which greatly enhances immersion.

Limitations

Despite its strengths, the current model has limitations. It does not natively handle "caustic shadows" (where secondary objects block the caustic light). Additionally, the CSL parameterization is optimized for objects that focus light toward points; it struggles with shapes that focus light into lines (like cylinders). Finally, the pre-computation required for dynamic lighting can consume significant VRAM (approximately 100MB in tests), which was a major constraint for contemporary hardware.

Summary updated

BibTeX
@article{liu2008caustic,
  author = {Xinguo Liu and Zhao Dong and Hujun Bao and Qunsheng Peng},
  title = {{Caustic spot light for rendering caustics}},
  journal = {The Visual Computer},
  year = {2008},
  doi = {10.1007/s00371-008-0229-9},
}
Figure