Introduction
In the field of surgical planning, Virtual Reality (VR) provides an intuitive environment for navigating complex three-dimensional anatomical structures. To maintain the highest level of detail, researchers often prefer Direct Volume Rendering (DVR) over traditional mesh-based techniques. DVR preserves raw volumetric data from CT or MRI scans, avoiding the information loss associated with converting data into simplified triangle meshes.
However, DVR is computationally intensive. While rendering a single volume is standard, rendering multiple independent, intersecting volumes—such as individual vertebrae in a spinal column or bone fragments in a complex fracture—presents a significant challenge. Traditional single-pass multi-volume rendering often leads to complex GPU shader code and performance-degrading "branching." In VR, maintaining a frame rate above 90 frames per second (FPS) is critical to prevent motion sickness. This paper presents a high-performance multi-pass ray-marching technique that enables real-time interaction with dozens of independent medical volumes.
Methodology
The proposed system utilizes a multi-pass rendering approach integrated into the Unity Engine, prioritizing simplicity and GPU efficiency to meet VR performance requirements.
Ad Hoc Segmentation and Volume Extraction
To facilitate surgical planning, users can interactively segment regions of interest. Using motion-tracked VR controllers, a surgeon can "paint" specific anatomical structures (e.g., a single bone). The system then extracts these regions into independent 3D textures, allowing each segment to be manipulated, rotated, or hidden individually.
Depth Buffer Occlusion
To manage the spatial relationship between overlapping volumes without complex single-pass logic, the system leverages the camera's depth buffer. Each volume is rendered sequentially. During a pass, the ray-marching shader calculates the distance to the first visible voxel and writes this value to the depth buffer. Subsequent rendering passes read this buffer to "clip" rays that would otherwise pass through foreground objects, ensuring correct occlusion.
Performance Optimizations
Two key optimizations ensure high frame rates:
- Screen-Space Bounding Boxes: The system calculates a 2D bounding rectangle for each 3D volume on the screen. The expensive ray-marching shader is only executed for pixels within these rectangles, significantly reducing the GPU workload.
- Early Ray Termination: Rays are stopped immediately upon hitting an opaque surface, a standard DVR optimization that further conserves processing power.
Datasets and Experimental Setup
The system was evaluated using three anonymized CT datasets representing common surgical scenarios:
- Scoliosis: A complex case involving 21 individual volumes (20 vertebrae plus the clavicles/scapula).
- Aneurysm: A 2-volume setup simulating a "Sylvian keyhole" approach for neurosurgery.
- Fracture: A skull with a zygomaticomaxillary complex fracture, segmented into 6 distinct bone fragments.
Key Results
Testing was conducted on a workstation equipped with an Nvidia GeForce RTX 4080 and an HP Reverb G2 headset.
- Performance: In the most demanding "Scoliosis" scenario (21 volumes), the system achieved 122 FPS with dynamic lighting and 214 FPS without. This comfortably exceeds the 90 Hz threshold required for a smooth VR experience.
- Clinical Utility: The ability to move and rotate individual segments in real-time enables "virtual osteotomy," where surgeons can simulate the repositioning of bone fragments or vertebrae before entering the operating room.
Discussion and Limitations
While the depth buffer approach is highly efficient for opaque structures, it currently struggles with semi-transparent overlapping volumes. Because the buffer only stores the closest hit, it cannot easily perform the complex blending required for multiple layers of transparency. Additionally, while the system is highly performant on desktop GPUs, further optimization is needed for standalone mobile VR headsets.
Future work will focus on "baking" segment removals into original volume data to skip empty space more efficiently and conducting formal clinical studies to quantify the impact of this technology on surgical outcomes.
Summary updated