Post · 19 min read· pp. 519–527

The Light Transport Equation

13.1 The Light Transport Equation

The light transport equation (LTE) is the governing equation that describes the equilibrium distribution of radiance in a scene. It gives the total reflected radiance at a point on a surface in terms of emission from the surface, its BSDF, and the distribution of incident illumination arriving at the point. For now we will continue to only consider the case where there are no participating media in the scene, saving those complexities for Chapter 14.

The detail that makes evaluating the LTE difficult is the fact that incident radiance at a point is affected by the geometry and scattering properties of all the objects in the scene. For example, a bright light shining on a red object may cause a reddish tint on nearby objects in the scene, or glass may focus light into caustic patterns on a tabletop. Rendering algorithms that account for this complexity are often called global illumination algorithms, to differentiate them from local illumination algorithms that use only information about the local surface properties in their shading computations.

In this section, we will first derive the LTE and describe some approaches for manipulating the equation to make it easier to solve numerically. We will then describe two generalizations of the LTE that make some of its key properties more clear and serve as the foundation for integrators that implement sophisticated light transport algorithms.

13.1.1 Basic Derivation

The light transport equation depends on the basic assumptions we have already made in choosing to use radiometry to describe light—that wave optics effects are unimportant and that the distribution of radiance in the scene is in equilibrium.

The key principle underlying the LTE is energy balance. Any change in energy has to be “charged” to some process, and we must keep track of all the energy. Since we are assuming that lighting is a linear process, the difference between the amount of energy going out of a system and the amount of energy coming in must also be equal to the difference between energy emitted and energy absorbed. This idea holds at many levels of scale. On a macro level we have conservation of power:

diagram

The difference between the power leaving an object, diagram, and the power entering it, diagram, is equal to the difference between the power it emits and the power it absorbs, diagram.

To enforce energy balance at a surface, exitant radiance diagram must be equal to emitted radiance plus the fraction of incident radiance that is scattered. Emitted radiance is given by diagram, and scattered radiance is given by the scattering equation, which gives

diagram

Figure 13.1: Radiance along a Ray through Free Space Is Unchanged. Therefore, to compute the incident radiance along a ray from point diagram in direction diagram, we can find the first surface the ray intersects and compute exitant radiance in the direction diagram there. The ray-casting function diagram gives the point diagram on the first surface that the ray diagram intersects.

Because we have assumed for now that no participating media are present, radiance is constant along rays through the scene. We can therefore relate the incident radiance at diagram to the outgoing radiance from another point diagram, as shown by Figure 13.1. If we define the ray-casting function diagram as a function that computes the first surface point diagram intersected by a ray from diagram in the direction diagram, we can write the incident radiance at diagram in terms of outgoing radiance at diagram:

diagram

In case the scene is not closed, we will define the ray-casting function to return a special value diagram if the ray diagram does not intersect any object in the scene, such that diagram is always 0.

Dropping the subscripts from diagram for brevity, this relationship allows us to write the LTE as

diagram

(13.1)

The key to the above representation is that there is only one quantity of interest, exitant radiance from points on surfaces. Of course, it appears on both sides of the equation, so our task is still not simple, but it is certainly easier. It is important to keep in mind that we were able to arrive at this equation simply by enforcing energy balance in our scene.

13.1.2 Analytic Solutions to the LTE

The brevity of the LTE belies the fact that it is impossible to solve analytically other than in very simple cases. The complexity that comes from physically based BSDF models, arbitrary scene geometry, and the intricate visibility relationships among objects all conspire to mandate a numerical solution technique. Fortunately, the combination of ray-tracing algorithms and Monte Carlo integration gives a powerful pair of tools that can handle this complexity without needing to impose restrictions on various components of the LTE (e.g., requiring that all BSDFs be Lambertian or substantially limiting the geometric representations that are supported).

It is possible to find analytic solutions to the LTE in very simple settings. While this is of little help for general-purpose rendering, it can help with debugging the implementations of integrators. If an integrator that is supposed to solve the complete LTE does not compute a solution that matches an analytic solution, then clearly there is a bug in the integrator. As an example, consider the interior of a sphere where all points on the surface of the sphere have a Lambertian BRDF, diagram, and also emit a constant amount of radiance in all directions. We have

diagram

The outgoing radiance distribution at any point on the sphere interior must be the same as at any other point; nothing in the environment introduces any variation among different points. Therefore, the incident radiance distribution must be the same at all points, and the cosine-weighted integral of incident radiance must be the same everywhere as well. As such, we can replace the radiance functions with constants and simplify, writing the LTE as

diagram

While we could immediately solve this equation for diagram, it is interesting to consider successive substitution of the right hand side into the diagram term on the right hand side. If we also replace diagram with diagram, the reflectance of a Lambertian surface, we have

diagram

In other words, exitant radiance is equal to the emitted radiance at the point plus light that has been scattered by a BSDF once after emission, plus light that has been scattered twice, and so forth.

Because diagram due to conservation of energy, the series converges and the reflected radiance at all points in all directions is

diagram

(This series is called a Neumann series.)

This process of repeatedly substituting the LTE’s right hand side into the incident radiance term in the integral can be instructive in more general cases. For example, only accounting for direct illumination effectively computes the result of making a single substitution:

diagram

where

diagram

and further scattering is ignored.

Over the next few pages, we will see how performing successive substitutions in this manner and then regrouping the results expresses the LTE in a more natural way for developing rendering algorithms.

13.1.3 The Surface Form of the LTE

One reason the LTE as written in Equation (13.1) is complex is that the relationship between geometric objects in the scene is implicit in the ray-tracing function diagram. Making the behavior of this function explicit in the integrand will shed some light on the structure of this equation. To do this, we will rewrite Equation (13.1) as an integral over area instead of an integral over directions on the sphere.

First, we define exitant radiance from a point diagram to a point diagram by

diagram

if diagram and diagram are mutually visible and diagram. We can also write the BSDF at diagram as

diagram

where diagram and diagram (Figure 13.2). This is sometimes called the three-point form of the BSDF.

Figure 13.2: The three-point form of the light transport equation converts the integral to be over the domain of points on surfaces in the scene, rather than over directions on the sphere. It is a key transformation for deriving the path integral form of the light transport equation.

Rewriting the terms in the LTE in this manner is not quite enough, however. We also need to multiply by the Jacobian that relates solid angle to area in order to transform the LTE from an integral over direction to one over surface area. Recall that this is diagram.

We will combine this change-of-variables term, the original diagram term from the LTE, and a binary visibility function diagram (diagram if the two points are mutually visible, and diagram otherwise) into a single geometric coupling term, diagram:

diagram

(13.2)

Substituting these into the light transport equation and converting to an area integral, we have the three-point form of the LTE,

diagram

(13.3)

where diagram is all the surfaces of the scene.

Although Equations (13.1) and (13.3) are equivalent, they represent two different ways of approaching light transport. To evaluate Equation (13.1) with Monte Carlo, we would sample directions from a distribution of directions on the sphere and cast rays to evaluate the integrand. For Equation (13.3), however, we would sample points on surfaces according to a distribution over surface area and compute the coupling between those points to evaluate the integrand, tracing rays to evaluate the visibility term diagram.

13.1.4 Integral over Paths

With the area integral form of Equation (13.3), we can derive a more flexible form of the LTE known as the path integral formulation of light transport, which expresses radiance as an integral over paths that are themselves points in a high-dimensional path space. One of the main motivations for using path space is that it provides an expression for the value of a measurement as an explicit integral over paths, as opposed to the unwieldy recursive definition resulting from the energy balance equation, (13.1).

The explicit form allows for considerable freedom in how these paths are found—essentially any technique for randomly choosing paths can be turned into a workable rendering algorithm that computes the right answer given a sufficient number of samples. This form of the LTE provides the foundation for bidirectional light transport algorithms.

To go from the area integral to a sum over path integrals involving light-carrying paths of different lengths, we can start to expand the three-point light transport equation, repeatedly substituting the right hand side of the equation into the diagram term inside the integral. Here are the first few terms that give incident radiance at a point diagram from another point diagram, where diagram is the first point on a surface along the ray from diagram in direction diagram:

diagram

Each term on the right side of this equation represents a path of increasing length. For example, the third term is illustrated in Figure 13.3. This path has four vertices, connected by three segments. The total contribution of all such paths of length four (i.e., a vertex at the camera, two vertices at points on surfaces in the scene, and a vertex on a light source) is given by this term. Here, the first two vertices of the path, diagram and diagram, are predetermined based on the camera ray origin and the point that the camera ray intersects, but diagram and diagram can vary over all points on surfaces in the scene. The integral over all such diagram and diagram gives the total contribution of paths of length four to radiance arriving at the camera.

Figure 13.3: The integral over all points diagram and diagram on surfaces in the scene given by the light transport equation gives the total contribution of two bounce paths to radiance leaving diagram in the direction of diagram. The components of the product in the integrand are shown here: the emitted radiance from the light, diagram; the geometric terms between vertices, diagram; and scattering from the BSDFs, diagram.

This infinite sum can be written compactly as

diagram

(13.4)

diagram gives the amount of radiance scattered over a path diagram with diagram vertices,

diagram

where diagram is on the film plane or front lens element and diagram is on a light source, and

diagram

(13.5)

Before we move on, we will define one additional term that will be helpful in the subsequent discussion. The product of a path’s BSDF and geometry terms is called the throughput of the path; it describes the fraction of radiance from the light source that arrives at the camera after all the scattering at vertices between them. We will denote it by

diagram

(13.6)

so

diagram

Given Equation (13.4) and a particular length diagram, all that we need to do to compute a Monte Carlo estimate of the radiance arriving at diagram due to paths of length diagram is to sample a set of vertices with an appropriate sampling density, diagram, to generate a path and then to evaluate an estimate of diagram using those vertices:

diagram

Whether we generate those vertices by starting a path from the camera, starting from the light, starting from both ends, or starting from a point in the middle is a detail that only affects how the path probability diagram is computed. We will see how this formulation leads to practical light transport algorithms throughout this and the following chapters.

13.1.5 Delta Distributions in the Integrand

Delta functions may be present in diagram terms due not only to certain types of light sources (e.g., point lights and directional lights) but also to BSDF components described by delta distributions. If present, these distributions need to be handled explicitly by the light transport algorithm. For example, it is impossible to randomly choose an outgoing direction from a point on a surface that would intersect a point light source; instead, it is necessary to explicitly choose the single direction from the point to the light source if we want to be able to include its contribution. (The same is true for sampling BSDFs with delta components.) While handling this case introduces some additional complexity to the integrators, it is generally welcome because it reduces the dimensionality of the integral to be evaluated, turning parts of it into a plain sum.

For example, consider the direct illumination term, diagram, in a scene with a single point light source at point diagram described by a delta distribution:

diagram

In other words, diagram must be the light’s position in the scene; the delta distribution in the numerator cancels out due to an implicit delta distribution in diagram (recall the discussion of sampling Dirac delta distributions in Section 12.1), and we are left with terms that can be evaluated directly, with no need for Monte Carlo. An analogous situation holds for BSDFs with delta distributions in the path throughput diagram; each one eliminates an integral over area from the estimate to be computed.

13.1.6 Partitioning the Integrand

Many rendering algorithms have been developed that are particularly good at solving the LTE under some conditions but do not work well (or at all) under others. For example, Whitted’s original ray-tracing algorithm only handles specular reflection from delta distribution BSDFs and ignores multiply scattered light from diffuse and glossy BSDFs.

Because we would like to be able to derive correct light transport algorithms that account for all possible modes of scattering without ignoring any contributions and without double-counting others, it is important to pay attention to which parts of the LTE a particular solution method accounts for. A nice way of approaching this problem is to partition the LTE in various ways. For example, we might expand the sum over paths to

diagram

where the first term is trivially evaluated by computing the emitted radiance at diagram, the second term is solved with an accurate direct lighting solution technique, but the remaining terms in the sum are handled with a faster but less accurate approach. If the contribution of these additional terms to the total reflected radiance is relatively small for the scene we are rendering, this may be a reasonable approach to take. The only detail is that it is important to be careful to ignore diagram and diagram with the algorithm that handles diagram and beyond (and similarly with the other terms).

It is also useful to partition individual diagram terms. For example, we might want to split the emission term into emission from small light sources, diagram, and emission from large light sources, diagram, giving us two separate integrals to estimate:

diagram

The two integrals can be evaluated independently, possibly using completely different algorithms or different numbers of samples, selected in a way that handles the different conditions well. As long as the estimate of the diagram integral ignores any emission from large lights, the estimate of the diagram integral ignores emission from small lights, and all lights are categorized as either “large” or “small,” the correct result is computed in the end.

Finally, the BSDF terms can be partitioned as well (in fact, this application was the reason BSDF categorization with BxDFFlags values was introduced in Section 9.1.2). For example, if diagram denotes components of the BSDF described by delta distributions and diagram denotes the remaining components,

diagram

Note that because there are diagram BSDF terms in the product, it is important to be careful not to count only terms with just diagram components or just diagram components; all the mixed terms like diagram must be accounted for as well if a partitioning scheme like this is used.