Hardware-accelerated global illumination by image space photon mapping

Morgan McGuire, David Luebke2009 · DOI

TL;DR

This paper introduces Image Space Photon Mapping (ISPM), a novel technique that leverages GPU rasterization to dramatically accelerate the computationally intensive initial and final photon bounces in traditional photon mapping. This allows for high-quality global illumination to be rendered at interactive rates, bridging the gap between offline rendering quality and real-time application performance.

What Problem Does This Paper Address?

Accurate global illumination, which simulates how light bounces off surfaces to illuminate a scene, is crucial for photorealistic rendering in fields like film, games, and architectural visualization. Traditional methods like pure ray/photon tracing offer high accuracy but are prohibitively slow for real-time applications. Conversely, existing GPU-accelerated techniques often sacrifice accuracy and generality for speed. This paper tackles the challenge of achieving both high-quality global illumination and interactive frame rates by re-imagining key parts of the photon mapping algorithm for GPU acceleration.

Methods

ISPM builds upon the established photon mapping technique but recasts its most expensive stages as image-space operations. The core innovations are:

  • Bounce Map: The initial photon bounce, which is computationally demanding due to the sheer number of photons emitted, is now handled by rasterizing a "bounce map" on the GPU. This map stores information about photons after their first bounce, effectively pre-computing this stage.
  • Photon Volumes: The final photon bounce, where radiance is estimated at each pixel by gathering photons, is accelerated by rasterizing "photon volumes" on the GPU. These volumes represent the influence of individual photons and are filtered to reconstruct indirect illumination. This replaces the traditional CPU-based k-d tree gathering.
  • Image-Space Operations: By treating these steps in image space (either light space for bounce maps or screen space for photon volumes), the algorithm can exploit the massive parallelism of modern GPUs.
  • Joint Bilateral Upsampling (Optional): To further boost performance, an optional step uses joint bilateral filtering to upsample sparse indirect illumination, trading a slight loss in consistency for significant speed gains.

Datasets

The paper evaluates ISPM on several scenes, including:

  • A Cornell box with various objects (cow, glass sphere, lights).
  • A reflective ring scene to demonstrate caustics.
  • The "NS2 scene" (from the Natural Selection 2 game), featuring dynamic characters and level geometry.
  • The "Ironworks map" (from Quake Live), specifically its water surfaces.
  • A complex "Sponza Atrium" scene.

These are described as representative of game assets and complex environments, rather than formal datasets.

Key Insights and Ideas

  • The Power of Image Space for Photon Mapping: The most significant insight is that the initial and final photon bounces, often bottlenecks in traditional methods, can be efficiently computed using GPU rasterization techniques by reformulating them in image-space projections.
  • Bounce Maps as a GPU-Friendly First Bounce: Rasterizing a bounce map for the first photon bounce is a clever way to offload a massive computation to the GPU, significantly reducing the number of photons that need to be processed by the CPU in later stages.
  • Photon Volumes for Efficient Final Gathering: Using rasterized photon volumes instead of k-d tree gathering for the final radiance estimate allows for direct integration with deferred shading pipelines and leverages GPU fill rate effectively.
  • Balancing Accuracy and Performance: The optional subsampling and bilateral filtering demonstrate a practical approach to achieving interactive rates by allowing users to trade off perfect consistency for speed, a common requirement in real-time graphics.

Key Results

  • Interactive Frame Rates: ISPM achieves high-quality global illumination at interactive rates, with results up to 26 Hz at 1920x1080 resolution for complex scenes.
  • Significant Speedup: Compared to traditional CPU-based photon mapping, ISPM offers dramatic performance improvements, with some comparisons showing speedups of over 100x.
  • High-Quality Illumination: The method preserves the accuracy of photon mapping, capturing effects like caustics, diffuse color bleeding, and contact shadows.
  • Scalability: The algorithm scales well with the number of CPU cores for tracing and exhibits predictable behavior with GPU fill rate limitations.

Limitations and Future Work

  • Point Light Sources: ISPM currently assumes point light sources, which can only approximate small area lights. Extending it to handle true area lights is a key area for future work.
  • Translucent/Refractive Surfaces: While ISPM can trace photons through these surfaces, accurately estimating radiance for more than one point per pixel requires expensive depth peeling, limiting its application for complex translucent foreground objects.
  • Pinhole Camera Model: The final bounce estimation relies on a pinhole camera model.
  • CPU Photon Tracing: The current implementation still uses the CPU for tracing photons beyond the initial bounce, introducing synchronization constraints and readback penalties. Moving this to the GPU is a planned improvement.
  • Potential for Artifacts: The optional subsampling step sacrifices perfect consistency, and clipping of photon volumes near surfaces can cause minor artifacts.

Future work includes moving photon tracing to the GPU, exploring multi-GPU implementations, and extending support for area lights and more complex translucent materials.

Summary updated

Abstract

We describe an extension to photon mapping that recasts the most expensive steps of the algorithm -- the initial and final photon bounces -- as image-space operations amenable to GPU acceleration. This enables global illumination for real-time applications as well as accelerating it for offline rendering.
BibTeX
@misc{mcguire2009hardware,
  author = {Morgan McGuire and David Luebke},
  title = {{Hardware-accelerated global illumination by image space photon mapping}},
  year = {2009},
  doi = {10.1145/1572769.1572783},
}

Loading related content...

Figure