scenery: Flexible Virtual Reality Visualization on the Java VM

Ulrik Günther, Tobias Pietzsch, Aryaman Gupta, Kyle I. S. Harrington, Pavel Tomancak, Stefan Gumhold, Ivo F. Sbalzarini

Introduction

Modern biological imaging, particularly lightsheet microscopy, is currently undergoing a data explosion. Spatiotemporal volumetric datasets now frequently reach terabyte scales, far exceeding the standard RAM or graphics memory (VRAM) of typical workstations. While visualization is essential for debugging analysis pipelines and understanding complex biological structures, researchers often face a dilemma: use powerful but proprietary "black-box" software, or open-source tools that lack native Virtual Reality (VR) support or struggle with massive datasets.

Furthermore, while much of the biological imaging ecosystem (such as Fiji/ImageJ) is built on the Java Virtual Machine (JVM), high-performance, VR-ready rendering has historically been difficult to implement natively in this environment. To bridge this gap, we present scenery, an open-source, high-performance visualization framework designed specifically for the JVM.

System Architecture and Design

Developed in Kotlin, scenery prioritizes five core design goals: robust VR/AR support, out-of-core rendering, a developer-friendly API, cross-platform compatibility, and easy embeddability.

The scenery architecture utilizes a central Hub to manage loosely coupled subsystems, including Vulkan/OpenGL renderers and various input handlers.

At its core, the framework employs a loosely coupled "Hub" architecture. This design organizes subsystems—such as rendering, input, and statistics—into independent modules that communicate through the Hub. This modularity allows components to be tested in isolation and makes the framework highly extensible.

One of the most significant technical milestones of scenery is its integration of the Vulkan API on the JVM. By providing low-overhead access to the GPU, Vulkan enables the high frame rates necessary for a comfortable VR experience, effectively debunking the notion that the JVM is too slow for real-time, high-end graphics.

Handling Massive Datasets: Out-of-Core Rendering

To visualize datasets that cannot fit into memory, scenery implements an Out-of-Core Rendering (OOCR) system. It utilizes a pyramidal data structure, loading only the specific "tiles" required for the user's current view into a GPU cache. A 3D lookup texture maps these tiles, allowing for smooth raycasting even when the underlying dataset is massive.

The system prioritizes interactivity over visual perfection; if a high-resolution tile is not loaded in time, the renderer gracefully falls back to a lower-resolution version. This ensures a consistent frame rate, which is vital for preventing motion sickness in immersive environments.

Key Results and Applications

The framework's capabilities were demonstrated using several high-resolution biological datasets, most notably an 8TB multi-angle time-series of a Drosophila melanogaster (fruit fly) embryo.

A researcher interacting with a large-scale volumetric dataset in an immersive environment, demonstrating the framework's utility for spatial data exploration.

In a study involving eight microscopy experts, users reported significantly improved spatial perception and control in VR compared to traditional 2D interfaces. The system achieved a low Simulator Sickness Questionnaire (SSQ) score of 6.2, confirming its suitability for professional use. Beyond microscopy, scenery was applied to agent-based simulations, where it increased the number of simultaneously visualizable autonomous agents by a factor of ten.

Conclusion and Future Work

scenery demonstrates that the JVM is a viable and powerful platform for cutting-edge scientific visualization. By lowering the barrier for researchers to write custom shaders and providing a robust pipeline for terabyte-scale data, it fills a critical gap in the open-source software landscape. Future developments will focus on extending out-of-core support to mesh data, integrating advanced volume rendering algorithms like Monte Carlo path tracing, and maturing the framework's experimental Augmented Reality (AR) capabilities.

Summary updated

BibTeX
@inproceedings{gunther2019scenery,
  author = {Ulrik Günther and Tobias Pietzsch and Aryaman Gupta and Kyle I. S. Harrington and Pavel Tomancak and Stefan Gumhold and Ivo F. Sbalzarini},
  title = {{scenery: Flexible Virtual Reality Visualization on the Java VM}},
  booktitle = {IEEE vis (short Papers)},
  year = {2019},
  doi = {10.1109/visual.2019.8933605},
}
Figure