Imperfect shadow maps for efficient computation of indirect illumination

Tobias Ritschel, Thorsten Grosch, Min H. Kim, Hans-Peter Seidel, Carsten Dachsbacher, Jan Kautz

TL;DR

This paper introduces "Imperfect Shadow Maps" (ISMs) as a novel technique to significantly accelerate real-time global illumination rendering. By using low-resolution, approximate visibility information derived from simplified scene representations, ISMs enable dynamic scenes with complex indirect lighting to be rendered at interactive frame rates, achieving results comparable to slower, more accurate methods.

What Problem Does This Paper Address?

Rendering realistic global illumination (GI), which accounts for how light bounces off surfaces to illuminate other surfaces, is computationally very expensive. This is especially true for interactive applications like video games or simulations where scenes need to be updated in real-time. A major bottleneck in GI computation is determining visibility – whether one point in the scene can "see" another, which is crucial for calculating how light travels. Traditional methods use accurate ray-casting or high-resolution shadow maps, which are too slow for dynamic scenes with complex geometry and lighting. While some approximations exist, this paper tackles the challenge of achieving real-time GI for fully dynamic scenes by finding a way to approximate visibility efficiently without sacrificing too much visual quality.

Methods

The core innovation is the Imperfect Shadow Map (ISM). Instead of generating high-resolution, accurate shadow maps, ISMs are low-resolution shadow maps created from a simplified, point-based representation of the 3D scene. This point representation is generated by randomly sampling points on the scene's triangles.

Here's a breakdown of the key steps:

  • Scene Preprocessing: The 3D scene is converted into a sparse set of points. Each point stores its position, barycentric coordinates, and triangle index, allowing for dynamic scene updates.
  • ISM Creation: For each "Virtual Point Light" (VPL) – which represents a point emitting indirect light – an ISM is generated. This involves "splatting" the point representation into a low-resolution depth buffer. The size of the splat is based on the distance to the VPL. Parabolic maps are used to capture a full hemisphere of depth information.
  • Pull-Push Pass: To mitigate holes and incorrect depth values in the ISMs caused by the sparse point sampling, a "pull-push" operation is applied. This process uses image pyramids to fill holes and reconstruct a more sensible depth map, significantly improving the quality of the ISMs.
  • Global Illumination Computation: The method builds upon the "instant radiosity" (IR) framework, where indirect lighting is simulated using VPLs. ISMs are used to determine the visibility of these VPLs, replacing costly accurate visibility queries. Hundreds of ISMs can be rendered efficiently on modern GPUs.
  • Multiple Bounces: The technique is extended to handle multiple bounces of indirect light by using "Imperfect Reflective Shadow Maps" (IRSMS), which store indirect illumination instead of depth.

Datasets

The paper evaluates its method on several scenes, including:

  • Sponza: A common architectural scene used for rendering benchmarks.
  • Industry Scene: A scene with various objects and complex lighting.
  • Horse Scene: A dynamic scene featuring an animated character.
  • Palazzo: A large, complex architectural scene.

These scenes are used to compare the proposed method against reference GPU solutions and path-traced images. No new datasets or benchmarks were introduced.

Key Insights and Ideas

  • Visibility Approximation is Sufficient for Indirect Illumination: The most crucial insight is that indirect illumination, which is often smooth and diffuse, does not require the same level of visibility accuracy as direct lighting. Errors in visibility for indirect light are less noticeable and can be masked by the summation of contributions from many VPLs.
  • Imperfect Shadow Maps are a Viable Alternative: ISMs, despite their inaccuracies, provide a computationally cheap way to approximate visibility. The pull-push pass significantly improves their quality, making them suitable for real-time GI.
  • Real-time GI for Dynamic Scenes is Achievable: The combination of ISMs and instant radiosity effectively overcomes the performance limitations that previously prevented real-time GI in fully dynamic scenes.
  • Scalability with Scene Complexity: The method's performance is largely independent of the scene's polygon count, as the point-based representation decouples geometry complexity from the rendering cost of ISMs.

Key Results

  • Significant Speedup: The proposed method achieves frame rates approximately 10 times faster than reference GPU solutions using accurate shadow maps. For example, rendering the Sponza scene with ISMs can reach 15.1 fps at 640x480, while accurate shadow maps achieve only 8.6 fps at 1280x1024.
  • Comparable Visual Quality: Renderings produced by ISMs are visually very similar to those from accurate shadow maps and path tracing, with only minor differences in indirect shadow softness or occasional light leaks (which are largely mitigated by the pull-push pass).
  • Dynamic Scenes Supported: The method fully supports dynamic geometry, materials, and lights.
  • Multiple Bounces: The technique can render scenes with one, two, or even three bounces of indirect illumination at interactive rates.
  • Efficiency of ISM Creation: Hundreds of ISMs can be computed very efficiently on modern GPUs, often in a single pass.

Limitations and Future Work

  • Parameter Tuning: The method is not fully automatic; users need to choose parameters like the number of point samples, ISM resolution, and shadow bias. The authors provide empirical guidelines for these parameters.
  • Low-Frequency Indirect Shadows: ISMs, due to their low resolution, may not resolve fine details in indirect shadows, especially for small or thin objects.
  • Potential for Artifacts: Like other instant radiosity methods, insufficient VPLs can lead to temporal flickering. Shadow biasing can also cause light leaking, though this is often manageable.
  • Future Work: The authors suggest reducing the number of required point samples, exploring VPL clustering for further scalability, and potentially distributing point samples more intelligently to nearby ISMs. They also note that while their current implementation is limited to diffuse and slightly glossy materials, other VPL generation techniques could extend this.

Summary updated

Abstract

We present a method for interactive computation of indirect illumination in large and fully dynamic scenes based on approximate visibility queries. While the high-frequency nature of direct lighting requires accurate visibility, indirect illumination mostly consists of smooth gradations, which tend to mask errors due to incorrect visibility. We exploit this by approximating visibility for indirect illumination with imperfect shadow maps---low-resolution shadow maps rendered from a crude point-based representation of the scene. These are used in conjunction with a global illumination algorithm based on virtual point lights enabling indirect illumination of dynamic scenes at real-time frame rates. We demonstrate that imperfect shadow maps are a valid approximation to visibility, which makes the simulation of global illumination an order of magnitude faster than using accurate visibility.
BibTeX
@article{ritschel2008imperfect,
  author = {Tobias Ritschel and Thorsten Grosch and Min H. Kim and Hans-Peter Seidel and Carsten Dachsbacher and Jan Kautz},
  title = {{Imperfect shadow maps for efficient computation of indirect illumination}},
  journal = {ACM Trans. Graphics},
  year = {2008},
  doi = {10.1145/1409060.1409082},
}

Loading related content...

Figure