# Introduction

Neural Radiance Fields use straightforward volume rendering techniques to avoid the complexities associated with differentiating through ray-triangle intersections, taking advantage of a probabilistic understanding of visibility. This is achieved by assuming that the scene is composed of a spatially varying density of light-emitting particles (in the language of physically-based rendering, this would be described as a volume with absorption and emission, without scattering). For the sake of clarity in the explanation, and without compromising generality, we assume that the emitted light does not change depending on the viewing direction.

# Transmittance

Consider the density field \sigma(x), where x \in \R^3, representing the differential probability of a ray intersecting a particle (i.e., the likelihood of encountering a particle over an infinitesimal distance). We reparameterize the density along a specific ray r=(o, d) as a scalar function \sigma(t), as any point x along the ray can be expressed as r(t)=o+td. Density is intimately linked to the transmittance function \mathcal{T}(t), which denotes the probability of a ray traversing the interval [0, t) without colliding with any particles. Consequently, the probability \mathcal{T}(t+dt) of avoiding a particle when taking a differential step dt is equivalent to \mathcal{T}(t), the probability of the ray reaching t, multiplied by (1 − dt \cdot \sigma(t)), the likelihood of not encountering anything during the step:

This is a standard differential equation, the solution to which can be derived as follows:

Here, we designate \mathcal{T}(a \rightarrow b) as the likelihood of the ray traversing from the distance a to b along the ray without encountering a particle, which correlates with the previous notation as \mathcal{T}(t)=\mathcal{T}(0 \rightarrow t).

# Probabilistic interpretation

Note that we can also interpret the function 1 - \mathcal{T}(t) (commonly referred to as opacity) as a cumulative distribution function (CDF) signifying the probability that the ray does intersect a particle at some point before reaching distance t. Consequently, \mathcal{T}(t) \cdot \sigma(t) represents the corresponding probability density function (PDF), providing the probability that the ray halts exactly at a distance t.

# Volume rendering

We are now equipped to compute the expected value of the light emitted by the particles within the volume as the ray progresses from t=0 to D, composited atop a background color. Given that the probability density for halting at t is \mathcal{T}(t) \cdot \sigma(t), the anticipated color is

where \mathbf{c}_{\mathrm{bg}} represents a background color that is composited with the foreground scene in accordance with the remaining transmittance \mathcal{T}(D). For the sake of generality, we will exclude the background term in the subsequent discussion.

# Homogeneous media

We can determine the color of certain homogeneous volumetric media with a constant color c_a and density \sigma_a over a ray segment [a, b] through the process of integration:

# Transmittance is multiplicative

Note that the transmittance can be factorized as follows:

This is also a consequence of the probabilistic interpretation of \mathcal{T}, as the likelihood that the ray does not intersect any particles within [a, c] is the product of the probabilities of the two independent events that it does not intersect any particles within [a, b] or within [b, c].

# Transmittance for piecewise constant data

Given a set of intervals \{[t_n, t_{n+1}]\}{n=1}^N* with a constant density *\sigma_n* within the *n*-th segment, and with *t_1=0* and *\delta_n=t{n+1}−t_n, the transmittance can be expressed as:

# Volume rendering of piecewise constant data

By integrating the above, we can compute the volume rendering integral through a medium characterized by piecewise constant color and density:

This leads to the volume rendering equations from NeRF [3, Eq.3]:

Ultimately, instead of formulating these expressions in terms of volumetric density, we can recast them in terms of alpha-compositing weights \alpha_n ≡ 1 − \exp(−\sigma_n\delta_n), and by acknowledging that \prod_i \exp x_i = \exp (\sum_i x_i):

# Alternate derivation

By leveraging the prior relationship between CDF and PDF that (1 - \mathcal{T})' = \mathcal{T} \sigma , and by presuming a constant color c_a along an interval [a, b]:

When amalgamated with a constant per-interval density, this identity results in the same expression for color as: