next up previous
Next: Quasi-Random Walk Methods Up: A Review of Monte Previous: Introduction

Derivation of the Rendering Equation

The main goal of computer graphics is to calculate the image that could be seen by a camera in a virtual world. This requires the calculation of the power reaching the camera from a given direction, i.e. through a given pixel, taking into account the optical properties of the surfaces and the lightsources in the virtual world.

The spectral properties of this power are responsible for the color sensation. In computer graphics the power is usually evaluated on a few (at least 3) representative wavelengths, then the colour sensation is determined from these samples.

Hereinafter, monochromatic light of a representative wavelength tex2html_wrap_inline674 will be assumed, since the complete color calculation can be broken down to these representative wavelengths. The parameters of the equations usually depend on the wavelength, but for notational simplicity, we do not always include the tex2html_wrap_inline674 variable in them.

In the next section, we briefly review the measures of the light transport and the mathematical formulation that can compute them.


Figure: Definition of the solid angle

The directional property of the energy emission is described in a so-called illumination hemisphere which contains those solid angles to where the surface point can emit energy. By definition, a solid angle is a cone or a pyramid, with its size determined by its subtended area of a unit sphere centered around the apex (figure gif). The solid angle, in which a differential dA surface can be seen from point tex2html_wrap_inline680 , is obviously the projected area per the square of the distance of the surface. If the angle between the surface normal of dA and the directional vector from dA to tex2html_wrap_inline680 is tex2html_wrap_inline688 , and the distance from dA to tex2html_wrap_inline680 is r, then this solid angle is:

equation94

The intensity of the energy transfer is characterized by several metrics in computer graphics depending on whether or not the directional and positional properties are taken into account.

The light power or flux tex2html_wrap_inline696 is the energy radiated through a boundary per unit time over a given range of the spectrum (say tex2html_wrap_inline698 ).

The radiance, or intensity I, is the differential light flux leaving a surface element dA in a differential solid angle tex2html_wrap_inline704 per the projected area of the surface element and the size of the solid angle. If the angle of the surface normal and the direction of interest is tex2html_wrap_inline688 , then the projected area is tex2html_wrap_inline708 , hence the intensity is:

  equation100


Figure: Energy transfer between two differential surface elements

Having introduced the most important metrics, we turn to their determination in the simplest case, where there are only two differential surface elements in the 3D space, one (dA) emits light energy and the other (dA') absorbs it (figure gif). If dA' is visible from dA in solid angle tex2html_wrap_inline704 and the radiant intensity of the surface element dA is tex2html_wrap_inline722 in this direction, then the flux leaving dA and reaching dA' is:

equation110

according to the definition of the radiant intensity. Expressing the solid angle by the projected area of dA', we get:

  equation112

This formula is called the fundamental law of photometry.

Note that the transferred power can also be written in the following form:

equation117

Thus similar formula applies for the patch that receives the power as for the patch that emits it.

In light-surface interaction the surface illuminated by an incident beam may reflect a portion of the incoming energy in various directions or it may absorb the rest. It has to be emphasized that a physically correct model must maintain energy equilibrium, that is, the reflected and the transmitted (or absorbed) energy must be equal to the incident energy.

Optically perfect or smooth surfaces will reflect or transmit only coherent components governed by the laws of geometric optics, including the law of reflection and the Snellius-Descartes law of refraction. The incoherent components are caused by the surface irregularities reflecting or refracting the incident light in any direction. Since the exact nature of these irregularities is not known, the incoherent component is modeled by means of probability theory.

Assume that a photon comes from the direction denoted by tex2html_wrap_inline730 to point tex2html_wrap_inline732 . The probability of reflection or refraction at tex2html_wrap_inline732 onto the solid angle tex2html_wrap_inline704 around tex2html_wrap_inline738 is expressed by the following density function:

equation120

Note that this probability distribution is a mixed, discrete-continuous distribution, since the probability that the light may obey the laws of geometric optics is non-zero. The energy equilibrium guarantees that the integration of the probability density over the whole sphere is 1.


Figure: Transformation of the incident light by a surface

The light flux ( tex2html_wrap_inline748 ) leaving the surface at the solid angle tex2html_wrap_inline704 around tex2html_wrap_inline738 consists of the indirect and direct (emission) components.

The indirect component is expressed as the integration of the contribution of all the possible incoming directions tex2html_wrap_inline730 over the sphere around the surface:

equation128

If the surface itself emits energy, that is, if it is a lightsource, then the direct component (emission) also contributes to the output flux:

equation132

Adding the possible contributions we get:

  equation135


Figure: Perceived Color of a surface due to incident light beams

The fluxes can be expressed by the radiant intensities, thus:

equation145

equation150

Substituting these terms into equation 9 and dividing both sides by tex2html_wrap_inline756 we get:

equation154

Let us realize that tex2html_wrap_inline758 is equal to tex2html_wrap_inline760 if tex2html_wrap_inline762 is the point that is visible from tex2html_wrap_inline732 at direction tex2html_wrap_inline730 , usually expressed by the so called visibility function h ( tex2html_wrap_inline770 ).

Using these equations and introducing tex2html_wrap_inline772 that is called the bi-directional reflection/refraction function or BRDF for short, we get the following fundamental formula, called the shading, rendering or illumination equation:

  equation168

 

Formulae of this type are called rendering equations. In fact, every color calculation problem consists of several rendering equations, one for each representative frequency. Surface parameters ( tex2html_wrap_inline774 ) obviously vary in the different equations.

Rendering algorithms are expected to find the solution tex2html_wrap_inline776 of this rendering equation at least for those points tex2html_wrap_inline732 and directions tex2html_wrap_inline780 which are visible from the eye at direction tex2html_wrap_inline782 . Note that the unknown intensity (also called radiance) is present both inside and outside of the integral of the equation. These types of integral equations are called Fredholm integral equations of second kind.

In order to simplify the notations, the integral operator of rendering equation is denoted by tex2html_wrap_inline784 :

equation175

Thus the short form of the rendering equation is:

  equation179

There are two family of techniques that can be used to solve such an integral equation: finite element methods and random walk methods.


next up previous
Next: Quasi-Random Walk Methods Up: A Review of Monte Previous: Introduction

Csébfalvi Balázs
Tue Apr 15 18:39:13 METDST 1997