DiagSplit: parallel, crack-free, adaptive tessellation for micropolygon rendering

Matthew Fisher, Kayvon Fatahalian, Solomon Boulos, Kurt Akeley, William R. Mark, Pat HanrahanACM Trans. Graphics 2009

TL;DR

This paper introduces DiagSplit, a novel parallel algorithm for adaptively tessellating complex surfaces into high-quality, crack-free micropolygon meshes. DiagSplit achieves this by allowing splits along non-isoparametric directions and using a flexible dicing scheme, enabling it to produce better quality and more efficient tessellations than existing parallel methods, while remaining parallelizable.

What Problem Does This Paper Address?

In computer graphics, achieving high realism often requires representing surfaces with extremely fine geometric detail, down to millimeter-scale features. Directly modeling these surfaces with polygons would result in millions or even billions of triangles, making rendering computationally infeasible. A common approach is to use analytic surface descriptions (like parametric or subdivision surfaces) and then "tessellate" them into a polygon mesh for rendering.

The challenge lies in creating this tessellation adaptively. A static tessellation might use too few polygons in areas of high detail or near the camera (leading to visual artifacts like "jaggies" or "popping") or too many polygons in simpler areas (leading to wasted computation). Adaptive tessellation aims to generate just enough polygons to accurately represent the surface at the current view, balancing visual quality with rendering performance.

Furthermore, for real-time rendering pipelines, especially those using micropolygon rendering (where polygons can be smaller than a pixel), this tessellation needs to be:

  1. Adaptive: Adjusting polygon density based on surface complexity and screen space.
  2. Crack-free: Ensuring that adjacent polygons perfectly align to avoid visual gaps or "holes" in the rendered surface.
  3. Parallelizable: Capable of being processed efficiently across multiple CPU cores or GPU threads for high throughput.

Existing methods often struggle to achieve all three simultaneously. For instance, some parallel methods might produce cracks, while highly adaptive methods might not be easily parallelizable. This paper tackles the problem of creating a tessellation that is adaptive, crack-free, and parallel, specifically for micropolygon rendering.

Methods

The core contribution of DiagSplit is a modification of the well-established "Split-Dice" tessellation framework, inspired by techniques used in offline renderers like Pixar's Reyes.

Here's a breakdown of their approach:

  • Split-Dice Framework: This involves two main phases:
  • Split: Recursively subdividing a surface patch into smaller subpatches. This is where adaptivity is introduced, allowing more subdivisions in areas of high detail or near the camera.
  • Dice: Uniformly tessellating each subpatch into a grid of micropolygons.
  • Key Innovations in DiagSplit:
    • Non-Isoparametric Splits: Traditional Split-Dice algorithms split patches along lines defined by the surface's parametric coordinates (isoparametric lines). DiagSplit allows splits along non-isoparametric directions. This is crucial for preventing cracks when the surface's displaced position deviates significantly from its parametric structure, especially when dealing with displacement mapping. These non-isoparametric splits are only used when necessary to avoid cracks.
  • Edge Tessellation Factors (T function): DiagSplit introduces a function T that determines how an edge of a subpatch should be tessellated. This function samples the surface along the edge and estimates the required tessellation rate to ensure no micropolygon segment exceeds a target screen-space length. It can either return a uniform tessellation factor or signal that a non-uniform tessellation (requiring a split) is needed.
  • EDGEDICE Dicing: DiagSplit uses a dicing scheme (similar to D3D11's EDGEDICE) that allows different tessellation factors for each edge of a subpatch. This is essential for stitching the interior tessellation to the edge tessellation determined by T, ensuring continuity.
  • Interior Area Scaling: To achieve micropolygons of a consistent target area (e.g., 0.5 pixels), DiagSplit adjusts an interior scaling parameter (S) during the dicing phase. This helps to avoid both overtessellation (wasted polygons) and undertessellation (poor quality) by ensuring triangle areas are more uniform across the subpatch, even if the subpatch has a poor aspect ratio.

By combining these elements, DiagSplit can adapt to surface complexity, avoid cracks by allowing flexible splits, and remain parallelizable because each subpatch can be processed independently.

Datasets

Not discussed in the paper. The paper uses various scenes (LONGPLANE, BIGGUY, MONSTERFROG, BUMPY, ZONEPLATE, COLUMNS, ZINKIA) for evaluation, which appear to be standard computer graphics test scenes or models.

Key Insights and Ideas

  • Non-isoparametric splits are key to crack-free tessellation with displacement: The paper highlights that relying solely on isoparametric splits is insufficient when surfaces are heavily displaced. Allowing splits along arbitrary directions in the parametric domain is a critical step towards robust, crack-free tessellation in such scenarios.
  • Edge-based tessellation decisions are sufficient for parallelization: By making tessellation decisions for edges based only on local information (using the T function), DiagSplit avoids complex inter-subpatch dependencies that would hinder parallel processing. This is a significant departure from some older methods that required stitching information from neighboring subpatches.
  • Micropolygon rendering demands different tessellation strategies: Unlike methods aiming for the minimum number of large polygons, DiagSplit focuses on producing a dense mesh of small polygons. This requires careful control over screen-space coverage and triangle area to avoid aliasing artifacts and ensure efficient per-vertex shading.
  • Adaptive tessellation can significantly reduce rendering cost: By avoiding overtessellation, DiagSplit reduces the number of polygons that need to be processed by later stages of the rendering pipeline (like shading and rasterization), leading to substantial performance gains, especially for complex scenes or expensive shaders.

Key Results

  • Improved Quality: DiagSplit produces tessellations that are consistently as good as or better than alternative approaches in terms of visual quality, particularly in scenes with high frequency detail or significant displacement. Images show fewer areas of overtessellation (red) and undertessellation (blue) compared to other methods.
  • Crack-Free Meshes: The algorithm successfully generates crack-free meshes, a critical requirement for high-quality rendering.
  • Parallel Performance: DiagSplit is designed for parallel execution and scales well on multi-core CPUs. The paper reports tessellation rates of up to 129.9M micropolygons per second on an 8-core CPU.
  • Efficiency: For non-displaced surfaces, the overhead of DiagSplit's adaptive tessellation is relatively low (around 14% of total tessellation time), and this overhead is justified by the significant downstream performance benefits from reduced polygon counts.
  • Comparison to Alternatives:
    • NOSPLIT (D3D11-like): Often results in overtessellation and undertessellation, especially with perspective foreshortening.
  • BINSPLIT (Binary dicing): Leads to severe overtessellation due to rounding dicing factors to powers of two, generating 2.1x to 3.0x more vertices than DiagSplit.
  • ISOSPLIT (Reyes-like): Produces comparable quality to DiagSplit on non-displaced surfaces but struggles with displacement mapping, often undertessellating.

Limitations and Future Work

  • Parametrically-Evaluable Surfaces: DiagSplit currently requires surfaces to be parametrically evaluable. While this is common for many modern graphics surfaces, it's a limitation for arbitrary meshes. The authors note that research into approximating subdivision surfaces with bicubic patches is expanding the set of surfaces that can be efficiently evaluated.
  • Bounding Box Computation: Non-isoparametric domains generated by DiagSplit complicate the efficient computation of subpatch bounding boxes, requiring more complex methods than for standard Bezier patches.
  • Future Work:
    • End-to-End Pipeline Integration: The authors suggest that while DiagSplit is a significant step, further work is needed to optimize the entire micropolygon rendering pipeline, including culling, shading, and efficient parallelization of rasterization.
  • Adaptive Edge Sampling: Investigating irregular or adaptive sampling techniques for the T function could potentially improve quality further, though the current N=4 sampling provides a good balance of cost and quality.
  • More Realistic Shading: The performance evaluation was done with a simple Phong model. More complex shaders and rasterization techniques (like motion blur and defocus) would further highlight the benefits of efficient tessellation.

Summary updated

BibTeX
@article{fisher2009diagsplit,
  author = {Matthew Fisher and Kayvon Fatahalian and Solomon Boulos and Kurt Akeley and William R. Mark and Pat Hanrahan},
  title = {{DiagSplit: parallel, crack-free, adaptive tessellation for micropolygon rendering}},
  journal = {ACM Trans. Graphics},
  year = {2009},
  doi = {10.1145/1618452.1618496},
}
Figure