Gaussian Shadow Casting for Neural Characters

Luis Bolanos, Shih-Yang Su, Helge Rhodin

Introduction

Neural Radiance Fields (NeRFs) have significantly advanced the reconstruction of animatable 3D human avatars from video. However, these models often struggle in high-contrast, outdoor environments where harsh directional light creates sharp shadows. Standard NeRF formulations typically "bake" these shadows into the character's surface texture (albedo), leading to visual artifacts when the character moves or the lighting environment changes. To address this, researchers from the University of British Columbia propose Gaussian Shadow Casting (GSC), a method that enables realistic, dynamic shadow rendering with minimal computational overhead.

Methodology

The primary challenge in rendering dynamic shadows within a neural volume is the computational cost of secondary ray marching. To determine if a point is in shadow, one must query the density field along a ray toward the light source, which is prohibitively slow in standard NeRFs.

Overview of the Gaussian Shadow Casting pipeline, showing the transition from sparse-view video input to a fully relit character using a lighting module and Gaussian proxy.

Gaussian Density Proxy

GSC circumvents the need for heavy neural network queries by employing a Gaussian density proxy. The system fits a collection of 3D anisotropic Gaussians—essentially ellipsoids of varying density—to the character's underlying skeleton.

Detail of the Gaussian proxy and the resulting shadow raytracing, illustrating how ellipsoidal volumes approximate the character for fast occlusion testing.

Because Gaussians possess elegant mathematical properties, the total density along a ray can be calculated analytically using a closed-form formula (specifically, the error function, erf). This replaces hundreds of neural network queries with a single, fast equation, allowing the model to compute shadows nearly instantaneously.

Deferred Neural Illumination and Optimization

The framework utilizes a two-pass rendering approach. First, a NeRF backbone (DANBO) extracts intrinsic properties such as albedo, depth, and surface normals. The second pass applies Lambertian shading and integrates the shadows calculated via the Gaussian proxy.

To ensure clean disentanglement, the system jointly optimizes the light direction and intensity during training. A "grey loss" trick is employed to initialize the color head to a neutral value, preventing the model from prematurely baking shadows into the albedo before the light optimization finds the correct direction.

Experimental Results

The authors evaluated GSC using high-fidelity synthetic animations and a new outdoor sunlight benchmark featuring real humans captured in direct sunlight.

  • Efficiency: The Gaussian proxy adds negligible overhead, requiring approximately 0.3s per frame—roughly 2% of the total render time. In contrast, standard volumetric shadow casting (NeRFSC) can double the total runtime.
  • Accuracy: On synthetic novel-pose synthesis tasks, GSC achieved a PSNR of 22.04, significantly outperforming baselines like DANBO (17.52) and NPC (17.57), which fail to decouple shadows from surface textures.
  • Visual Fidelity: Qualitative assessments demonstrate that GSC produces sharp, physically plausible shadows that move naturally with the character's pose, facilitating high-quality HDRi relighting in novel environments.

Conclusion and Future Work

Gaussian Shadow Casting provides a robust solution for creating neural avatars that can be realistically relit. By replacing brute-force ray marching with an analytic Gaussian proxy, the method achieves high-fidelity shadows without the typical computational penalty. While current limitations include the rendering of extremely high-frequency details (like shadows from individual fingers), GSC represents a significant step toward neural actors that can move seamlessly from the lab into complex, real-world lighting environments.

Summary updated

BibTeX
@inproceedings{bolanos2024gaussian,
  author = {Luis Bolanos and Shih-Yang Su and Helge Rhodin},
  title = {{Gaussian Shadow Casting for Neural Characters}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2024},
}
Figure