Interactive shadow generation in complex environments

Naga K. Govindaraju, Brandon Lloyd, Sung-Eui Yoon, Avneesh Sud, Dinesh ManochaACM Trans. Graphics 2003

TL;DR

This paper introduces a novel hybrid algorithm for generating sharp, hard-edged shadows in complex 3D environments at interactive frame rates. By combining object-precision shadow polygon generation with image-precision shadow maps, and employing efficient visibility culling techniques, they achieve significantly improved visual quality and performance compared to existing methods.

What Problem Does This Paper Address?

Generating realistic shadows in complex 3D environments is a long-standing challenge in computer graphics. Traditional methods like shadow maps suffer from aliasing artifacts, especially in scenes with millions of polygons and varying depths, making them unsuitable for interactive applications like walkthroughs. Shadow volumes, while producing sharp edges, become computationally prohibitive for large models due to the sheer number of generated polygons. This paper aims to bridge this gap by providing a method that delivers the visual fidelity of object-precision techniques with the speed of image-precision methods, enabling interactive shadow generation in highly detailed scenes.

Methods

The authors propose a four-stage hybrid approach:

  1. Potentially Visible Set (PVS) Computation: They enhance existing PVS computation techniques by incorporating hierarchical representations (LODs) and image-space occlusion queries. A key innovation is a sub-object hierarchy within LODs, allowing for more granular visibility culling and a significantly smaller PVS. This stage is crucial for reducing the geometric complexity processed in subsequent steps.
  2. Cross-Culling: This novel step involves computing visibility from both the eye-view (PVSE) and the light-view (PVSL). By comparing these two PVSs, they identify a reduced set of "shadow-casters" (SC) and "shadow-receivers" (SRP) that are truly relevant for shadow generation, further pruning the scene.
  3. Shadow Generation: They use a hybrid strategy here. For areas where shadow map aliasing would be visually significant, they generate object-precision "shadow-polygons" by clipping SRP against shadow frusta formed by SC. For other areas, they fall back to using a shadow map. This selective approach balances quality and performance.
  4. Rendering: The final image is rendered by combining the object-precision shadow polygons (rendered with ambient lighting) and the shadow map.

To achieve interactive rates, they also propose a process-parallel architecture that distributes computation across multiple GPUs and PCs, introducing a one-frame latency.

Datasets

The paper evaluates their algorithm on three complex models:

  • A power plant model (12.7 million triangles)
  • A Double Eagle tanker model (82 million triangles)
  • A replicated house model (1.3 million triangles)

These models are representative of complex architectural and industrial scenes. No new benchmarks were introduced; rather, the evaluation focuses on demonstrating performance and quality on existing complex datasets.

Key Insights and Ideas

  • Hybridization is Key: The core insight is that combining the strengths of object-precision (sharpness) and image-precision (speed) methods is essential for interactive shadow generation in complex scenes.
  • PVS is Crucial for Efficiency: A compact PVS, achieved through improved culling and LOD management, is fundamental to making subsequent object-precision steps feasible.
  • Cross-Culling for Targeted Shadowing: Identifying only the truly relevant shadow-casters and receivers through cross-culling significantly reduces the computational burden of shadow polygon generation.
  • Selective Shadow Polygon Generation: Generating shadow polygons only where they provide a significant visual improvement (i.e., where shadow maps would alias badly) is a smart trade-off for maintaining interactivity.
  • Parallelism for Performance: Distributing the computation across multiple processors is necessary to handle the complexity of these scenes at interactive frame rates.

Key Results

The algorithm achieves interactive frame rates of 7-25 frames per second on complex models with millions of triangles, using a three-PC system with NVIDIA GeForce 4 cards. They demonstrate significantly sharper shadow edges and reduced aliasing compared to pure shadow map approaches. For instance, the power plant model runs at an average of 10 fps, and the tanker model at 7 fps. The PVS computation with sub-object culling reduces triangle counts by an order of magnitude, and cross-culling further reduces the sets of shadow-casters and receivers to a few thousand triangles.

Limitations and Future Work

  • Limitations:
    • The algorithm currently only supports hard shadows from point and directional light sources.
  • It assumes high coherence between successive eye and light views; drastic motion can lead to increased frame times.
  • LOD selection can introduce visual artifacts and inaccurate shadow boundaries, though they propose methods to mitigate this.
  • Very small objects or surfaces nearly perpendicular to the light view might be missed by occlusion queries, leading to misclassified visibility.
  • For highly tessellated curved surfaces, object-space shadow polygon calculation might become a bottleneck.
  • Future Work:
    • Extend to handle soft shadows from area light sources.
  • Support omni-directional or multiple light sources (requiring additional processors).
  • Develop an out-of-core system to handle scenes that don't fit entirely in memory.
  • Explore view-dependent simplification instead of static LODs to reduce popping artifacts.

Summary updated

BibTeX
@article{govindaraju2003interactive,
  author = {Naga K. Govindaraju and Brandon Lloyd and Sung-Eui Yoon and Avneesh Sud and Dinesh Manocha},
  title = {{Interactive shadow generation in complex environments}},
  journal = {ACM Trans. Graphics},
  year = {2003},
  doi = {10.1145/882262.882299},
}
Figure