Neural Fields meet Explicit Geometric Representation for Inverse Rendering of Urban Scenes

Zian Wang, Tianchang Shen, Jun Gao, Shengyu Huang, Jacob Munkberg, Jon Hasselgren, Zan Gojcic, Wenzheng Chen, Sanja Fidler · DOI

Introduction

Inverse rendering aims to decompose images into their constituent components—shape, material, and lighting—a critical task for creating high-fidelity digital twins. While Neural Radiance Fields (NeRFs) have revolutionized 3D reconstruction, they typically "bake" lighting and shadows directly into the scene representation. This entanglement makes it impossible to realistically change lighting or insert new objects. FEGR (Neural Fields meet Explicit Geometric Representations) addresses this by combining the high-fidelity detail of neural fields with the efficiency of explicit meshes for ray-tracing shadows in complex outdoor environments.

The FEGR Framework

The core of FEGR is a hybrid pipeline designed to disentangle intrinsic scene properties from environmental lighting, enabling photorealistic relighting and object insertion.

The FEGR pipeline decomposes input images into HDR lighting and PBR material properties, including albedo ($k_d$), specular ($k_s$), and surface normals ($n$).

Neural Intrinsic Field and Hybrid Rendering

The scene is represented by a neural field using multi-resolution hash encoding to map 3D coordinates to a Signed Distance Function (SDF), surface normals, and Physically Based Rendering (PBR) properties such as albedo, roughness, and metallicity.

To handle complex lighting like cast shadows, FEGR employs a hybrid deferred rendering approach:

  1. Primary Rays: Volumetric rendering generates a "G-buffer" (depth, normals, and materials) for each pixel.
  2. Secondary Rays: An explicit mesh is extracted from the neural field via Marching Cubes. High-performance ray-tracing (NVIDIA OptiX) against this mesh is then used to calculate visibility and shadows, allowing for physically accurate secondary light effects.

HDR Lighting and Semantic Priors

Lighting is modeled as a neural HDR environment map, allowing the system to estimate the sun's position and intensity even from limited data. To prevent the model from "cheating" by painting shadows onto textures, FEGR utilizes semantic segmentation masks. This enforces a "shading prior" that encourages consistent albedo within the same semantic class (e.g., road or sidewalk), forcing the optimizer to explain dark patches as shadows rather than dark paint.

Experimental Evaluation

FEGR was evaluated on the NeRF-OSR benchmark, the Waymo Open Dataset, and a high-quality in-house dataset (RoadData), covering both multi-illumination and single-illumination scenarios.

A high-fidelity reconstruction of an urban landmark, demonstrating the framework's ability to capture complex geometry and lighting for inverse rendering.

Key Results

  • Relighting Superiority: On the NeRF-OSR dataset, FEGR significantly outperformed state-of-the-art methods, achieving a PSNR improvement of up to 2.19 dB.
  • Clean Albedo: Qualitative results show that FEGR produces much "cleaner" albedo maps (textures without baked-in shadows) compared to baselines, which is critical for realistic relighting.
  • Virtual Object Insertion: The framework enables inserting virtual objects into real-world driving footage with accurate, physically-based shadows. In a user study, participants preferred FEGR's object insertions over existing methods by a margin of over 68%.

Conclusion

FEGR demonstrates that a hybrid approach—leveraging neural fields for high-resolution representation and explicit meshes for visibility queries—is highly effective for urban inverse rendering. While currently limited to static scenes and requiring significant computational resources, it provides a scalable way to "un-render" cities from standard camera images. Future work will focus on integrating dynamic elements and learning priors from larger datasets to further automate the decomposition process.

Summary updated

Abstract

Reconstruction and intrinsic decomposition of scenes from captured imagery would enable many applications such as relighting and virtual object insertion. Recent NeRF based methods achieve impressive fidelity of 3D reconstruction, but bake the lighting and shadows into the radiance field, while mesh-based methods that facilitate intrinsic decomposition through differentiable rendering have not yet scaled to the complexity and scale of outdoor scenes. We present a novel inverse rendering framework for large urban scenes capable of jointly reconstructing the scene geometry, spatially-varying materials, and HDR lighting from a set of posed RGB images with optional depth. Specifically, we use a neural field to account for the primary rays, and use an explicit mesh (reconstructed from the underlying neural field) for modeling secondary rays that produce higher-order lighting effects such as cast shadows. By faithfully disentangling complex geometry and materials from lighting effects, our method enables photorealistic relighting with specular and shadow effects on several outdoor datasets. Moreover, it supports physics-based scene manipulations such as virtual object insertion with ray-traced shadow casting.
BibTeX
@inproceedings{wang2023neural,
  author = {Zian Wang and Tianchang Shen and Jun Gao and Shengyu Huang and Jacob Munkberg and Jon Hasselgren and Zan Gojcic and Wenzheng Chen and Sanja Fidler},
  title = {{Neural Fields meet Explicit Geometric Representation for Inverse Rendering of Urban Scenes}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2023},
  doi = {10.1109/cvpr52729.2023.00809},
}
Figure