Cinema Darkroom: A Deferred Rendering Framework for Large-Scale Datasets

Jonas Lukasczyk, Christoph Garth, Matthew Larsen, Wito Engelke, Ingrid Hotz, David H. Rogers, James P. Ahrens, Ross Maciejewski

Introduction

Cinema Darkroom (CD) is an open-source framework that brings the flexibility of modern game engine rendering to massive scientific datasets. By storing "Geometry Buffers" (G-Buffers) instead of final images during a simulation, researchers can interactively adjust lighting, color maps, and effects like ambient occlusion after the simulation is finished, without needing access to the original supercomputer-scale raw data.

The Bandwidth Bottleneck in Supercomputing

In the world of supercomputing, we have reached a "bandwidth bottleneck." While simulations can calculate physics at incredible speeds, moving that data to storage is painfully slow. To solve this, researchers often use in situ visualization, where images are rendered while the simulation is still running.

However, traditional in situ visualization is "lossy" in terms of exploration: once an image is rendered, you can't change the camera angle, the color scale, or the lighting. If you realize later that a different color map would have revealed a hidden feature, you're out of luck unless you re-run the entire expensive simulation. The authors address this by decoupling the expensive geometry processing from the creative shading process.

The Cinema Darkroom Workflow

The authors propose a deferred rendering workflow, drawing an analogy to analog photography: a scene is "captured" on film (in situ) and "developed" later in a darkroom (post hoc).

  1. In Situ Generation (The "Film"): A C++ module (integrated into the Topology ToolKit) runs alongside the simulation. Instead of saving a standard RGB image, it saves a G-Buffer. This is a stack of images containing raw data for every pixel, such as the distance to the camera (depth) and the specific scientific value (e.g., temperature or pressure) at that point.
  2. Post Hoc Shading (The "Darkroom"): A web-based tool (built with JavaScript and WebGL) allows users to load these G-Buffers. Because the tool knows the depth and camera parameters, it can mathematically reconstruct 3D surfaces and apply advanced lighting effects in real-time.
  3. Node-Based Pipeline: The interface uses a visual graph editor (similar to Blender or Unreal Engine). Users connect "nodes" to apply filters like SSAO (Screen Space Ambient Occlusion), SSDoF (Screen Space Depth of Field), and interactive color mapping.
The Cinema Darkroom node-based pipeline interface allows users to interactively compose rendering effects and color maps.

Key Results and Insights

The framework was evaluated on several complex, real-world scientific datasets, including the Richtmyer-Meshkov Instability (RMI) and Inertial Confinement Fusion (ICF).

  • Decoupling Complexity: Rendering performance in the "Darkroom" depends only on the image resolution, not the complexity of the original data. This allows a laptop to interactively render scenes that originally required a supercomputer.
  • Storage Efficiency: For the ICF dataset, storing G-Buffers was roughly 20x smaller than storing the original unstructured quad mesh, while providing nearly the same level of visual flexibility.
  • Interactive Exploration: The system achieves interactive frame rates for post-processing effects on datasets that are otherwise too large to load into memory on standard workstations.
Interactive exploration of the ICF dataset showing different cycles and color maps applied post-hoc.

Limitations and Future Work

Currently, the framework is limited to opaque surfaces and cannot handle volume rendering because G-Buffers only store the "first hit" of a ray. Additionally, the current SSAO implementation can produce visual artifacts when applied to point clouds or particles. Future directions include integrating more advanced image-based techniques like Line Integral Convolution and specialized SSAO algorithms for particles.

Summary updated

BibTeX
@inproceedings{lukasczyk2020cinema,
  author = {Jonas Lukasczyk and Christoph Garth and Matthew Larsen and Wito Engelke and Ingrid Hotz and David H. Rogers and James P. Ahrens and Ross Maciejewski},
  title = {{Cinema Darkroom: A Deferred Rendering Framework for Large-Scale Datasets}},
  booktitle = {LDAV},
  year = {2020},
  doi = {10.1109/ldav51489.2020.00011},
}
Figure