Spatially and color consistent environment lighting estimation using deep neural networks for mixed reality

Bruno Augusto Dorta Marques, Esteban Walter Gonzalez Clua, Anselmo Antunes Montenegro, Cristina Nader Vasconcelos · DOI

Introduction

Achieving seamless immersion in Mixed Reality (XR) requires virtual objects to appear as though they are physically present in the real world. A critical component of this illusion is lighting consistency. If a virtual object does not share the same shadows, highlights, and color temperature as its surroundings, the "immersion gap" becomes immediately apparent to the user. This paper, published in Computers & Graphics (2021), proposes a novel deep learning approach to estimate real-world lighting instantaneously from a single RGB image.

The Challenge of Single-Image Lighting Estimation

Estimating the full 360-degree lighting environment from a single, limited-field-of-view camera image is an "ill-posed" problem. Traditional techniques often rely on intrusive light probes, such as mirror balls, or specialized high-dynamic-range (HDR) hardware. While deep learning has offered alternatives, many existing models are either too computationally intensive for mobile XR headsets or suffer from unnatural color shifts in their predictions.

Methodology: Speed and Color Consistency

The authors introduce a lightweight Convolutional Neural Network (CNN) architecture designed to balance inference speed with visual accuracy.

Optimized Backbone and Representation

The model utilizes SqueezeNet as its feature extractor, chosen for its minimal memory footprint and high efficiency. To represent the lighting, the network predicts 2nd-order Spherical Harmonics (SH). This representation uses 27 coefficients (9 per RGB channel) to capture the low-frequency, diffuse lighting of a scene, which is ideal for rendering soft shadows and realistic ambient light.

The CIELUV Auxiliary Decoder

The core innovation of this work is the integration of a CIELUV color-space auxiliary decoder. During the training phase, the network is tasked not only with predicting SH coefficients but also with reconstructing the input image in the CIELUV color space. Because CIELUV separates perceptual lightness from chromaticity, this architectural constraint forces the model to better understand the relationships between color channels. This prevents the "unnatural tinting" often seen in other lighting estimation models.

Differential Rendering

To further refine accuracy, the training loop incorporates a differential renderer. This allows the model to evaluate its predicted lighting on a pixel-by-pixel basis, optimizing weights based on how the final rendered object actually looks rather than just comparing raw mathematical coefficients.

Results and Performance

The proposed model demonstrates significant advantages in both speed and perceptual quality.

Examples of virtual objects integrated into real-world scenes using the proposed lighting estimation method.

Efficiency

On an NVIDIA RTX 2070 Super, the model achieves an inference time of just 4.4ms. Even on a standard CPU, it runs at approximately 30ms, comfortably fitting within the 16ms frame budget required for 60 FPS XR applications.

Accuracy and Quality

The model achieved a Mean Squared Error (MSE) of $7.85 \times 10^{-4}$ against ground truth SH coefficients. In comparative studies against other state-of-the-art methods, this approach produced lower Normalized Root-Mean-Squared Error (NRMSE) and higher Structural Similarity (SSIM), particularly in maintaining natural color balances in relit scenes.

Conclusion and Future Work

While the current model is highly effective for diffuse lighting in indoor environments, it has limitations. Spherical Harmonics cannot represent high-frequency lighting, such as sharp reflections or crisp shadows from point sources. Additionally, the model was trained primarily on indoor HDR datasets. Future research aims to incorporate Spherical Gaussians for specular highlights and integrate parametric sky models to handle the extreme dynamic range of outdoor environments.

Summary updated

BibTeX
@article{marques2022spatially,
  author = {Bruno Augusto Dorta Marques and Esteban Walter Gonzalez Clua and Anselmo Antunes Montenegro and Cristina Nader Vasconcelos},
  title = {{Spatially and color consistent environment lighting estimation using deep neural networks for mixed reality}},
  journal = {Comput. Graph.},
  year = {2022},
  doi = {10.1016/j.cag.2021.08.007},
}
Figure