Online Photon Guiding with 3D Gaussians for Caustics Rendering

Jiawei Huang, Hajime Tanaka, Taku Komura, Yoshifumi Kitamura · DOI

Abstract

In production rendering systems, caustics are typically rendered via photon mapping and gathering, a process often hindered by insufficient photon density. In this paper, we propose a novel photon guiding method to improve the photon density and overall quality for caustic rendering. The key insight of our approach is the application of a global 3D Gaussian mixture model, used in conjunction with an adaptive light sampler. This combination effectively guides photon emission in expansive 3D scenes with multiple light sources. By employing a global 3D Gaussian mixture, our method precisely models the distribution of the points of interest. To sample emission directions from the distribution at any observation point, we introduce a novel directional transform of the 3D Gaussian, which ensures accurate photon emission guiding. Furthermore, our method integrates a global light cluster tree, which models the contribution distribution of light sources to the image, facilitating effective light source selection. We conduct experiments demonstrating that our approach robustly outperforms existing photon guiding techniques across a variety of scenarios, significantly advancing the quality of caustic rendering.

Introduction

Caustics—the intricate patterns of light formed by reflection or refraction through curved surfaces—are a hallmark of realistic rendering but remain computationally expensive to produce. Traditional photon mapping techniques often suffer from low efficiency in complex scenes, where the majority of emitted photons fail to reach the camera or contribute to visible caustics. This results in noisy, splotchy images that require excessive sampling to resolve.

Existing photon guiding methods attempt to learn optimal emission directions using 2D maps. However, these methods frequently encounter the "parallax issue": for physical area lights, the ideal direction to shoot a photon changes depending on its starting position on the light source. This paper introduces a framework that shifts from 2D directional maps to a global 3D spatial representation, effectively solving the parallax problem and drastically increasing photon density.

Methodology

The proposed framework moves beyond simple directional guiding by modeling the 3D locations of "points of interest"—the initial hit points of photons that eventually contribute to visible caustics.

Algorithm flowchart showing the iterative photon and path tracing passes.

3D Gaussian Mixture Model (GMM)

Instead of recording directions, the system learns a mixture of 3D Gaussians representing the spatial distribution of target regions. This spatial awareness allows a single global model to provide accurate guidance regardless of the photon's origin point.

Novel Directional Transform

The core mathematical contribution is a closed-form probability density function (PDF) that transforms a 3D spatial Gaussian into a directional distribution from any observation point. This ensures that guidance automatically adjusts for parallax based on the photon's starting position on an area light.

Adaptive Light Sampling and Initialization

To handle scenes with numerous light sources, the method employs a binary tree-based sampler that learns which lights are most productive for caustics. Additionally, a robust initializer uses the scene's actual geometry to pre-seed the GMM via k-means clustering, eliminating the slow "warm-up" phase typical of learning-based methods.

Results and Discussion

The method was evaluated against industry standards, including 2D Histograms (H2D), von Mises-Fisher (vMF) distributions, and Markov Chain Monte Carlo (MCMC) photon sampling, across diverse benchmark scenes such as Bistro, Kitchen, and SunTemple.

Comparison of rendering methods on the Ring scene, showing visual quality and quantitative metrics.

In the Ring scene (pictured above), the proposed method achieved a Mean Square Error (MSE) of 0.26, outperforming H2D (1.11) and the state-of-the-art MCMC approach (0.29). The visual results demonstrate significantly cleaner caustics with fewer artifacts. In the massive SunTemple scene, the method proved even more robust, producing an MSE of 0.76 compared to MCMC's 8.31, which struggled to explore the vast sample space effectively.

Efficiency gains were equally dramatic; in the Bistro scene, the method generated 687x more visible photons than uniform emission, highlighting its ability to focus computational resources on the most impactful light paths.

Conclusion and Future Work

By leveraging 3D spatial modeling rather than 2D directional mapping, this approach provides a position-aware solution to photon guiding that inherently resolves parallax issues. While currently focused on direct emission, future work may extend this mathematical framework to 4D guiding (position and direction on area lights) and indirect caustics, further pushing the boundaries of real-time production rendering.

Summary updated

BibTeX
@misc{huang2024online,
  author = {Jiawei Huang and Hajime Tanaka and Taku Komura and Yoshifumi Kitamura},
  title = {{Online Photon Guiding with 3D Gaussians for Caustics Rendering}},
  year = {2024},
  eprint = {2403.03641},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2403.03641},
}
Figure