A General Implicit Framework for Fast NeRF Composition and Rendering

Xinyu Gao, Ziyi Yang, Yunlu Zhao, Yuxiang Sun, Xiaogang Jin, Changqing Zou

Abstract

Researchers have developed a general framework that enables the real-time composition and rendering of multiple Neural Radiance Field (NeRF) objects with dynamic shadows. By introducing Neural Depth Fields (NeDF)—a novel implicit representation for fast ray-surface intersection—the system achieves a 30–40x speedup over vanilla NeRF while maintaining a tiny storage footprint. This framework acts as a "plugin" for existing NeRF models, bringing neural rendering closer to interactive 3D engine workflows.

Introduction

While NeRFs have revolutionized high-fidelity 3D scene reconstruction, they remain difficult to utilize in interactive settings due to two major hurdles. First, the computational cost is prohibitive; standard NeRF rendering requires "ray marching," where a model is queried hundreds of times per pixel to find a surface. Second, existing acceleration methods (like octrees or baked voxels) are often scene-specific and lack compositional flexibility. Moving a NeRF-based object or casting dynamic shadows between multiple neural objects typically requires massive memory or breaks the acceleration structure.

This paper addresses these challenges by proposing a framework that allows users to move, scale, and rotate multiple neural objects with immediate, shadow-accurate previews.

Methodology

The core innovation is the Neural Depth Field (NeDF). Instead of querying a NeRF model to find density at every point along a ray, the NeDF is a small MLP trained to predict exactly where a ray hits an object's surface.

Neural Depth Fields (NeDF)

To avoid "floating artifacts" at object edges—a common issue with simple depth regression—the authors treat depth estimation as a classification problem.

Multi-level classification for depth estimation. The framework treats depth as a classification problem across coarse and fine bins to eliminate floating artifacts at object boundaries.

As illustrated in the multi-level classification diagram, the system divides ray space into coarse and fine "bins." This hierarchical approach allows the model to accurately locate the surface interface without the noise associated with continuous regression, ensuring clean geometry during real-time manipulation.

The Rendering Pipeline

The framework utilizes a three-step pipeline to achieve high-speed rendering:

  1. NeDF Generation: Quickly creates depth and ID buffers for the scene by identifying ray-surface intersections.
  2. Deferred Shading: Uses the depth buffer to perform a single query to the pre-trained NeRF model per pixel, rather than hundreds, drastically reducing the computational load.
  3. Shadow Mapping: Adapts classic shadow mapping by using the NeDF to determine if a point is occluded from the light source. This enables dynamic intra- and inter-object shadows without the volumetric shadow bottleneck.
The overall framework for training and rendering. Neural Depth Fields (NeDF) are supervised by pre-trained NeRFs to enable fast surface intersection and dynamic shadow mapping during real-time composition.

To facilitate object manipulation, the framework transforms rays into the object's local "canonical" space using affine transformations. This allows for seamless movement and scaling of neural objects within a global world space.

Experimental Evaluation

The authors introduced a new $N$-object dataset for evaluation, featuring 22 distinct NeRF objects (7 from existing benchmarks and 15 newly created in Blender). Testing ranged from simple 3-object scenes to stress tests with 1,000 repeated objects.

Key Results

  • Speed: The framework is 30–40x faster than vanilla NeRF and roughly 2x faster than NSVF. On an RTX 4090, manipulation speeds reach real-time thresholds.
  • Storage Efficiency: The models are extremely lean, requiring only about 13MB (3MB for the NeRF and 10MB for the NeDF), compared to the gigabytes required by explicit voxel-based methods.
  • Compatibility: The framework demonstrated successful integration with Mip-NeRF (for quality), SNeRF (for stylization), and NeuS (for geometry).

Discussion and Limitations

While the framework provides a significant leap in interactivity, it assumes objects have well-defined solid surfaces. Consequently, it struggles with "thin" or non-opaque structures like smoke or fine hair where a single depth point is insufficient. Additionally, while it handles direct shadows, it does not yet account for complex global illumination or inter-object reflections.

Despite these limitations, the work provides a vital "UI layer" for the NeRF ecosystem, enabling the kind of interactive composition found in traditional engines like Unreal or Unity.

Summary updated

BibTeX
@inproceedings{gao2024general,
  author = {Xinyu Gao and Ziyi Yang and Yunlu Zhao and Yuxiang Sun and Xiaogang Jin and Changqing Zou},
  title = {{A General Implicit Framework for Fast NeRF Composition and Rendering}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2024},
  doi = {10.1609/aaai.v38i3.27952},
}
Figure