Geometry Textures

Rodrigo Toledo, Bin Wang, Bruno LévyProceedings - Brazilian Symposium on Computer Graphics and Image Processing/Proceedings 2007 · DOI

This paper, presented at SIBGRAPI 2007, introduces a clever shift in how we think about 3D rendering. Instead of struggling to push millions of tiny triangles through the GPU's vertex pipeline, the authors propose treating the entire object as a collection of "Geometry Textures"—essentially turning 3D shapes into 2D height maps that the GPU can process much more efficiently at the pixel level.

TL;DR

"Geometry Textures" replaces traditional triangle-based rendering for highly complex models with a set of height maps rendered via GPU ray-casting. By shifting the computational burden from the vertex pipeline to the pixel pipeline, the method achieves a "natural" Level of Detail (LOD) where performance scales with screen size rather than geometric complexity.

What Problem Does This Paper Address?

In 2007 (and still today), models with millions of triangles posed a significant challenge. When triangles become smaller than a single pixel, the GPU's vertex pipeline becomes a massive bottleneck. Traditional acceleration methods like mesh simplification or manual LODs are effective but often complex to implement and can lead to visual "popping" artifacts.

The authors identify that for highly tessellated models, the distinction between "macrostructure" (the overall shape) and "mesostructure" (fine surface detail) disappears. They propose using mesostructure rendering techniques—specifically height-map-based relief mapping—to represent the entire object.

Methods

The core of the approach is a two-stage process: Conversion and Rendering.

1. Conversion (Preprocessing)

The input mesh is decomposed into a set of "charts" (patches).

  • Partitioning: The authors compare two methods: Periodic Global Parameterization (PGP) and Variational Shape Approximation (VSA). They conclude that VSA is superior because it minimizes "folding" (where the geometry overlaps itself from the height map's perspective), which is critical for accurate reconstruction.
  • Map Extraction: For each chart, they use PCA to determine an optimal bounding box and then "bake" the geometry into three 2D textures: a height map, a color map, and a normal map.

2. Rendering (GPU Ray-casting)

Instead of drawing triangles, the GPU renders the faces of the bounding boxes (proxies). A fragment shader then performs ray-casting inside these boxes to find the intersection with the height map.

  • Two-step Searching: To ensure both speed and accuracy, the shader first performs a linear search to find the approximate intersection interval, followed by a binary search to pinpoint the exact surface.
  • Balancing: A key innovation is adjusting the ratio of linear to binary steps based on the viewing angle. If you are looking straight down at a surface, you need fewer linear steps; if you are looking at a profile, you need more to avoid missing the "silhouette."

Datasets

The authors evaluated their method using classic high-resolution meshes:

  • Stanford Bunny: 69,451 triangles.
  • Buffle (Buffalo): 117,468 triangles.
  • Dragon: 871,414 triangles.

Key Insights and Ideas

  • The Vertex-to-Pixel Shift: By moving the workload to the fragment shader, the rendering time becomes proportional to the number of pixels covered on screen. This creates an automatic LOD: as an object moves further away and occupies fewer pixels, it naturally requires less computation.
  • VSA for Geometry: While PGP is more memory-efficient for texture packing, the authors found that VSA's ability to cluster triangles with similar normals is essential for creating height maps that don't "fold" or break.
  • Compatibility: Because the fragment shader outputs correct depth information to the z-buffer, these geometry textures can be seamlessly mixed with standard polygonal objects in a scene, supporting proper self-occlusion and shadows.

Key Results

  • Performance: For the 871k-triangle Dragon, the method outperformed traditional Vertex Buffer Objects (VBO) when the model occupied a smaller portion of the screen (roughly less than 200,000 pixels).
  • Quality: At a resolution of $256 \times 256$ per texture, the reconstructed model is visually indistinguishable from the original high-poly mesh, even at the silhouettes.
  • Memory: The Dragon model required about 20MB of texture memory at $256^2$ resolution, compared to 13.3MB for the raw mesh data. While the memory footprint is slightly higher, the trade-off is a more stable frame rate for complex scenes.

Limitations and Future Work

  • The Pixel Bottleneck: If a Geometry Texture object is zoomed in to fill the entire screen, the fragment shader becomes a bottleneck, and performance may drop below traditional triangle rendering.
  • Complex Conversion: The preprocessing pipeline (partitioning, PCA, baking) is sophisticated and must be done offline.
  • Future Directions: The authors suggest applying image-processing filters (like blurs or sharpening) directly to the geometry textures to "smooth" or "stylize" 3D geometry in real-time. They also propose "Multilayer height-maps" to handle more complex, overlapping topologies without needing as many individual charts.

Summary updated

Abstract

In highly tessellated models, triangles are very small compared to the entire object, representing at the same time its macro- and mesostructures. The main idea in this work is to use a visualization algorithm that is adequate to mesostructure but applied to the whole object. Tessellated models are converted into geometry textures, a geometric representation for surfaces based on height maps. In rendering time, the fine-scale details are reconstructed with LOD speed-up while preserving original quality.
BibTeX
@inproceedings{toledo2007geometry,
  author = {Rodrigo Toledo and Bin Wang and Bruno Lévy},
  title = {{Geometry Textures}},
  booktitle = {Proceedings - Brazilian Symposium on Computer Graphics and Image Processing/Proceedings},
  year = {2007},
  doi = {10.1109/sibgra.2007.4368171},
}

Loading related content...

Figure