Hierarchical Image-Based Rendering using Texture Mapping Hardware

Nelson Max, Oliver Deussen, Brett Keating

Introduction

Presented at the 1999 Eurographics Workshop on Rendering, this research marks a significant milestone in computer graphics: the creative repurposing of fixed-function hardware to perform tasks beyond its original design. By leveraging the standard texture mapping units of late-90s GPUs, the authors developed a hierarchical image-based rendering (IBR) system capable of visualizing massive, complex scenes—such as entire forests—with a 25x speedup over traditional polygonal rendering.

The Challenge: Complexity vs. Performance

In the late 1990s, rendering scenes containing millions of polygons, such as a forest with individual leaves and twigs, was prohibitively slow for interactive applications. While Image-Based Rendering (IBR) emerged as a potential solution by reprojecting precomputed 2D images instead of raw geometry, it faced two primary hurdles:

  1. Software Bottlenecks: Pixel-by-pixel reprojection in software was computationally expensive.
  2. Static Lighting: "Baked" images could not easily adapt to dynamic lighting or object rotation without visual artifacts.

Methodology

The proposed system employs a hierarchical approach, dynamically choosing between raw polygons for close-up objects and reprojected images for distant ones.

1. The Six-View Representation

To maintain visual fidelity from any angle, the system precomputes six orthogonal views for every sub-object (e.g., a tree branch). This cube-map-like setup ensures that a high-quality, non-distorted image is always available for reprojection regardless of the viewer's orientation.

2. Hardware-Accelerated Reprojection

The authors offloaded the reprojection process to the GPU's texture mapping hardware. By storing depth information in the texture's alpha channel and utilizing the alpha test, they could render objects in "slabs." This technique preserved the 3D structure during reprojection without the need for complex software-based Z-buffering.

3. The Color Matrix Shading Trick

The most innovative technical contribution is the use of the OpenGL color matrix for dynamic shading.

  • Normal Mapping: Surface normals ($N_x, N_y, N_z$) are stored directly in the RGB channels of a secondary texture.
  • Hardware Rotation: The color matrix—originally designed for color space conversions—is repurposed to perform 3D rotations on these normals in hardware.
  • Dynamic Lighting: This allows the system to calculate correct shading based on the object's current orientation and light sources entirely within the graphics pipeline.

Results and Performance

The system was tested using complex procedural models, including maple and oak trees and a massive forest scene containing over 17.2 million polygons across 955,000 sub-objects.

  • Efficiency: A forest scene that required 20 minutes to render using traditional polygonal methods was rendered in just 46 seconds.
  • Memory Management: Through the use of run-length encoding, the precomputed textures for the entire forest required only 15.4 megabytes, making the approach feasible for contemporary hardware.
  • Adaptive Fidelity: The hierarchy automatically transitions to higher-resolution images or raw geometry as the viewer approaches an object, maintaining visual consistency.

Limitations and Future Directions

Despite its success, the method faced several constraints typical of the era:

  • Texture Bandwidth: The primary performance bottleneck was the latency involved in loading numerous textures into the graphics card's memory.
  • Quantization: Storing depth in 8-bit or 12-bit alpha channels occasionally led to "gaps" in geometry when viewed at extreme angles.
  • Normal Constraints: The system struggled with thin, two-sided objects (like leaves) because the hardware could not easily flip normal vectors based on view direction.

This work demonstrated that with clever engineering, "fixed" hardware could be bent to solve complex problems in real-time visualization, paving the way for the more flexible programmable pipelines common today.

Summary updated

BibTeX
@inproceedings{max1999hierarchical,
  author = {Nelson Max and Oliver Deussen and Brett Keating},
  title = {{Hierarchical Image-Based Rendering using Texture Mapping Hardware}},
  booktitle = {Rendering Techniques},
  year = {1999},
  doi = {10.1007/978-3-7091-6809-7\_6},
}
Figure