TL;DR
This paper introduces a novel GPU-based terrain rendering system that achieves high-speed, on-the-fly decompression of compressed terrain data. By storing compressed terrain data directly on the GPU and performing decompression within the graphics pipeline, the system overcomes traditional I/O bottlenecks and enables interactive visualization of massive terrain datasets.
What Problem Does This Paper Address?
The increasing availability of high-resolution terrain data from sources like SAR and LIDAR presents a significant challenge for interactive visualization. While data sizes have exploded, disk and main memory access speeds haven't kept pace, making data transfer a major bottleneck. Existing approaches often compress terrain data for storage and I/O efficiency, but typically rely on the CPU for decompression, which can introduce latency and consume valuable CPU resources. This paper addresses the need for a more integrated and efficient solution where decompression happens directly on the GPU, eliminating the CPU-to-GPU transfer bottleneck and enabling truly real-time rendering of massive, detailed terrains.
Methods
The core of this work lies in a novel GPU-based decompression and rendering pipeline. The authors developed a streaming geometry compression codec for multiresolution, uniformly-gridded, triangular terrain patches. This codec uses a combination of:
- Lossless Compression: Linear prediction and residual coding are employed for the full-resolution terrain data. A key innovation here is an "optimized linear predictor" that reduces mathematical operations for raster-scan arrangements.
- Lossy Compression (Optional): For coarser levels of the multiresolution hierarchy, where some data loss is already inherent, the system allows for adaptive, per-patch quantization. This is crucial for achieving higher compression ratios while maintaining seamless terrain tessellations.
- GPU Decompression: The decompression process is designed to run entirely within a GPU geometry program. This involves reading variable-rate bitstreams, performing predictions and residual decoding, and outputting decompressed height values. The GPU kernel is optimized to be branch-free and conditional-free, maximizing parallel execution.
- Rendering Pipeline: The system integrates this decompression into a three-stage pipeline: adapt (determining the visible terrain cut), decode (on the GPU), and draw (rendering the decompressed geometry). Notably, the decompressed height data is used to generate geometry and texture coordinates on the fly, and normals can also be computed within the GPU pipeline.
Datasets
The authors evaluated their system using four large terrain datasets:
- Hawaii: A slightly cropped and padded version of the Big Island.
- Puget Sound: A benchmark dataset from Georgia Tech.
- Pacific Northwest: A region covering approximately 41-48N latitude, 118-125W longitude.
- CalNev: The California and Nevada states, covering the area 32.5-42N, 114-124W.
These datasets are described as being derived from sources like SRTM (Shuttle Radar Topography Mission) and are noted for their high resolution. The paper also mentions that some simple hole filling was performed on the Pacific Northwest and CalNev datasets.
Key Insights and Ideas
- GPU-Native Decompression is Key: The most significant insight is that by performing decompression directly on the GPU, the system bypasses the traditional CPU-to-GPU bottleneck, which is a major limitation in rendering large datasets.
- Variable-Rate Bitstream Decoding on GPU: Designing a GPU kernel that can efficiently handle variable-rate bitstreams (as opposed to fixed-rate) is a non-trivial but crucial achievement for this approach.
- Lossless Compression for Terrain is Feasible and Beneficial: While lossy compression is common, the paper demonstrates that a fast, lossless compression scheme for terrain is achievable and valuable, especially for applications requiring precise data.
- Adaptive Lossy Compression for Multiresolution: The ability to apply adaptive, per-patch quantization to coarser levels of the multiresolution hierarchy is essential for balancing compression ratios and visual quality, while still ensuring crack-free terrain.
- No Cache Maintenance for Decoded Geometry: The authors found that for their prototype, it was acceptable to decode all visible terrain geometry every frame without maintaining a cache of decoded geometry, simplifying the implementation and still achieving good performance.
Key Results
- Compression Ratios: The geometry compression on the multiresolution hierarchy achieved compression ratios of 3:1 to 12:1. For lossless compression of regular grids with partially missing data, they observed ratios as high as 30:1.
- Decoding Throughput: The GPU decoder demonstrated consistently high decoding throughput, reaching over 2 billion triangles per second in some scenarios. The system's decoding rates were found to be 3-4 times faster than the drawing rates.
- Performance Tiers: Decoding throughput was observed to fall into distinct performance tiers, largely determined by the number of bytes output per patch by the geometry program.
- Quantization Benefits: Quantization of upper hierarchy levels significantly improved compression ratios (e.g., from 4.70 to 3.45 bits/vertex for Puget Sound at q=25%) with only a modest increase in the number of rendered triangles.
Limitations and Future Work
- Prototype System: The authors acknowledge that their system is a prototype and that a larger-scale rendering system would benefit from data caches on both the CPU and GPU for managing memory locality of massive, out-of-core data.
- Generalizing Mesh Topologies: Future work could expand the method to handle more general mesh topologies beyond uniformly-gridded terrains.
- Multi-channel Geometry Images: Extending the approach to multi-channel geometry images is also suggested as a future research direction.
- Hardware Limitations: The current geometry program output limitations on GPUs can restrict the size of patches that can be processed, although the authors note that newer hardware has improved this.
Summary updated