Standardized Data-Parallel Rendering Using ANARI

Qi Wu, Ingo Wald, Stefan Zellmann, Jefferson Amstutz, Qi Wu 0015, Kevin S. Griffin, Milan Jaros, Stefan Wesner

TL;DR

This paper introduces a new paradigm for data-parallel rendering within the ANARI API, enabling advanced rendering techniques like path tracing in scientific visualization tools. By defining a "data-parallel ANARI" convention, the authors bridge the gap between existing ANARI implementations and the demands of large-scale, distributed scientific visualization.

What Problem Does This Paper Address?

Scientific visualization (sci-vis) tools are increasingly adopting the ANARI API for its promise of portable, cross-platform 3D rendering. However, ANARI, as it stands, is primarily designed for single-rank (non-parallel) rendering. This creates a significant challenge for large-scale sci-vis applications that rely on distributed, data-parallel rendering across multiple GPUs or compute nodes. Traditional approaches for data-parallel rendering in sci-vis often resort to image compositing, which severely limits the types of rendering effects that can be achieved, particularly global effects like shadows and ambient occlusion. This paper addresses this gap by proposing a standardized way to express data-parallel rendering semantics within the existing ANARI API, allowing for more sophisticated rendering without requiring a completely new API.

Methods

The core contribution is a paradigm for data-parallel ANARI (DP-ANARI). This isn't a new API, but rather a set of conventions for how existing ANARI API calls are interpreted in a distributed context. The key ideas are:

  • Globally Consistent Objects: Certain ANARI objects, like ANARIFrame and ANARIWorld, are treated as global entities, requiring all participating ranks to construct them in the same order. Parameters for ANARIFrame, ANARIRenderer, and ANARICamera must also be identical across ranks for consistent output.
  • Locally Defined Objects: Most scene elements (geometries, materials, volumes, etc.) are defined locally on each rank but are still visible globally for rendering.
  • Rank 0 Compositing: For simplicity and ease of integration, the paradigm designates Rank 0 as the primary rank responsible for collecting and presenting the final rendered frame. Other ranks render their local scene data, and Rank 0 handles the final compositing.
  • Two Implementations:
    • ANARI-Composite: This device acts as a "pass-through" to an existing ANARI renderer. It handles local rendering and then uses a deep compositing library (deepComp) to combine results from different ranks. This approach is easy to implement and allows existing ANARI renderers to be used in a data-parallel fashion, albeit with compositing limitations.
  • Barney and (B)ANARI: This implementation leverages the Barney project, a data-parallel path tracing system. It directly implements DP-ANARI semantics, enabling true data-parallel path tracing with global illumination effects.

Datasets

The paper does not focus on specific datasets for training or evaluation in the machine learning sense. Instead, it uses various large-scale scientific visualization datasets to demonstrate the capabilities of their DP-ANARI paradigm. These include:

  • Roughly one billion color-mapped spheres.
  • A 500GB DNS (Direct Numerical Simulation) dataset.
  • An iso-surface rendered during an in-situ simulation.
  • An airplane dataset.
  • Volumetric data (e.g., Q-criterion vortex field, thunderstorm data).
  • Data from simulation codes like NekRS and S3D.

The paper emphasizes that the paradigm is designed to work with existing data formats and visualization pipelines, rather than requiring new benchmarks.

Key Insights and Ideas

  • ANARI's Flexibility: The paper demonstrates that ANARI's existing API, with a carefully defined set of semantics, can be extended to support data-parallel rendering without requiring a new API. This is a significant advantage for adoption.
  • Bridging the Compositing Gap: The core problem addressed is the limitation of traditional image compositing in data-parallel rendering. DP-ANARI, especially with path tracing implementations, allows for global effects that are impossible with simple compositing.
  • "Normative Pressure" for Adoption: The authors argue that adoption will be driven by a combination of compelling device implementations and applications that demand these advanced features, creating a virtuous cycle.
  • Ease of Integration: The proposed paradigm is designed to be relatively easy to integrate into existing applications and renderers, with a "pass-through" compositing device serving as a low-barrier entry point.
  • Data-Parallel Path Tracing is Achievable: The Barney/(B)ANARI implementation shows that true data-parallel path tracing, with its superior rendering quality and global effects, is feasible within the ANARI framework.

Key Results

The paper presents several proof-of-concept integrations and demonstrations:

  • Two DP-ANARI Implementations: The ANARI-Composite and Barney/(B)ANARI devices were developed and demonstrated.
  • Integration into Sci-Vis Tools: The paradigm was integrated into mini-apps and prototypes for ParaView, VisIt/LibSim, and Ascent, showcasing its applicability to real-world scientific visualization workflows.
  • Visual Demonstrations: Figures in the paper showcase the visual improvements achieved with DP-ANARI, particularly highlighting the difference between local shading and path tracing with global effects (e.g., shadows, ambient occlusion) on large datasets.
  • Ease of Adoption: The authors emphasize that integrating the DP-ANARI paradigm into existing applications requires minimal changes, often involving setting up the data-parallel device and then using standard ANARI calls.

Limitations and Future Work

  • Formalization of the Paradigm: The DP-ANARI paradigm is currently a convention. The authors suggest that formalizing it within the ANARI specification would be beneficial.
  • Device Implementation Gaps: While Barney/(B)ANARI is a powerful implementation, it doesn't yet support the full range of ANARI data types. Future work involves expanding these implementations.
  • Application Adoption: The primary challenge remains getting major sci-vis tools like ParaView and VisIt to fully adopt this paradigm. This requires continued effort from both application developers and device implementers.
  • Scene/Data Partitioning: The paper acknowledges that how scenes are partitioned across ranks is a critical issue for data-parallel rendering, and suggests that applications could communicate partitioning requirements to devices via parameters.
  • Compositing Limitations: While the ANARI-Composite device overcomes some IceT limitations, it still relies on compositing and cannot produce guaranteed-correct shadows or path tracing.

The authors envision future work focusing on broader adoption, further development of ANARI device implementations, and exploring more sophisticated scene partitioning strategies.

Summary updated

BibTeX
@inproceedings{wu2024standardized,
  author = {Qi Wu and Ingo Wald and Stefan Zellmann and Jefferson Amstutz and Qi Wu and Kevin S. Griffin and Milan Jaros and Stefan Wesner},
  title = {{Standardized Data-Parallel Rendering Using ANARI}},
  booktitle = {Ldav},
  year = {2024},
  doi = {10.1109/ldav64567.2024.00013},
}
Figure