NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Volume Rendering Digest (for NeRF)

Andrea Tagliasacchi, Ben MildenhallarXiv 2022

Abstract

Neural Radiance Fields (NeRF) employ simple volume rendering as a way to overcome the challenges of differentiating through ray-triangle intersections by leveraging a probabilistic notion of visibility. This is achieved by assuming the scene is composed of a cloud of light-emitting particles whose density changes in space. This technical report summarizes the derivations for differentiable volume rendering. It is a condensed version of previous reports, rewritten in the context of NeRF and adopting its commonly used notation.

Introduction

While Neural Radiance Fields (NeRF) have revolutionized 3D reconstruction, the underlying mathematics often remains a "black box" for many practitioners. Most NeRF literature cites classic computer graphics texts from the 1980s and 1990s, which often cover complex phenomena like light scattering—effects that NeRF typically ignores for the sake of computational efficiency.

This report serves as a pedagogical bridge between continuous physical principles, such as light absorption and emission, and the discrete "alpha-compositing" formulas found in modern computer vision implementations. By stripping away the unnecessary complexity of general physics-based rendering, we focus specifically on the "absorption-plus-emission" model that powers NeRF, explaining how to move from a continuous world of density clouds to the discrete sums used in code.

Theoretical Framework

The derivation of the volume rendering equation is structured into three primary logical stages: the definition of transmittance, the construction of the volume rendering integral, and the final discretization for numerical computation.

1. Defining Transmittance

The derivation begins with the probability of a ray hitting a particle. We define Transmittance ($\mathcal{T}$) as a differential equation representing the probability that a ray travels a specific distance without encountering any particles. In this context, transmittance acts as a "survival function" for a photon traveling through a medium.

2. The Volume Rendering Integral

The expected color of a ray is defined as an integral of the light emitted at every point along that ray. This emission is weighted by the probability that the light actually reaches the camera without being absorbed—a concept known as visibility. Mathematically, this captures the aggregate contribution of all light-emitting particles along the line of sight.

3. Discretization

For practical implementation, the continuous integral must be discretized. By assuming "piecewise constant" data—where the ray is broken into small segments (bins) and the density and color are assumed to be uniform within each segment—the integral simplifies into a discrete sum. This step is crucial for engineers, as it leads directly to the alpha-compositing formulas used in NeRF software.

Key Insights and Probabilistic Interpretation

The Survival Function

A core insight of this derivation is the framing of volume rendering through the lens of probability. Transmittance represents the probability that a ray "survives" to a certain depth. Consequently, the product of density and transmittance is a Probability Density Function (PDF) that describes exactly where a ray is likely to stop (i.e., hit a particle).

Multiplicative Transmittance

Transmittance is inherently multiplicative. The probability of a ray passing through two consecutive volumes is the product of the probabilities of passing through each volume individually. This mathematical property explains the use of cumulative products (cumprod) in NeRF source code to calculate visibility along a ray.

The Alpha Connection

The report explicitly links volumetric density ($\sigma$) to the classic "alpha" ($\alpha$) used in 2D image compositing. The weight $\alpha_n = 1 - \exp(-\sigma_n \delta_n)$ serves as the bridge between the continuous physics of a 3D volume and the discrete layers of a digital image. This proves that the standard NeRF formula is not merely a heuristic but a mathematically rigorous solution for piecewise constant media.

The Core NeRF Equation

The primary result of this technical report is the formal justification of the discrete rendering equation:

$$C = \sum_{n=1}^{N} T_n \alpha_n c_n$$

Where:

  • $T_n$ is the accumulated transmittance (the remaining light intensity).
  • $\alpha_n$ is the opacity of the current segment.
  • $c_n$ is the color of the current segment.

By providing this derivation, we justify the use of discrete sums to approximate the complex physics of light transport, enabling the gradient-based optimization that makes NeRF so effective for 3D scene representation.

Conclusion

This digest provides a foundational reference for understanding the transition from physical light transport to differentiable computer vision code. While it does not propose new empirical methods, it clarifies the mathematical underpinnings of the NeRF paradigm, ensuring that the "black box" of volume rendering is accessible to researchers and engineers alike.

Summary updated

BibTeX
@misc{tagliasacchi2022volume,
  author = {Andrea Tagliasacchi and Ben Mildenhall},
  title = {{Volume Rendering Digest (for NeRF)}},
  year = {2022},
  eprint = {2209.02417},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2209.02417},
}
Figure