So far, in all the closed forms to the volume rendering integral that I have presented, none is capable of interpolating both the luminance and attenuation parameters of the volume (without the use of piecewise integration). The simplest form of interpolation is linear interpolation. Williams and Max [104] were the first to solve the volume rendering integral with linear interpolation of both luminance and attenuation. They choose to parameterize their equations using a tetrahedron that a viewing ray intersects.
I instead give a closed form that parameterizes the volume rendering equation
using only
and
, which, in my humble
opinion, leads to a simpler form of the equation. Without loss of
generality, I use the following linear forms of
and
.
Substituting Equation 1.19 and Equation 1.20 into Equation 1.2 results in a solvable equation, although the calculus to do so is difficult. Using the help of a mathematical solver such as Mathematica [108], we get
Equation 1.21 has many terms, which makes it
computationally intensive to compute. Furthermore, there are instances of
the
function. Here,
is the
error function, defined
as
. The
function does
not have a closed form, but there are several known numerical methods to
compute it with sufficient accuracy.
Further analysis shows us that if
, Equation 1.21 contains
imaginary terms, that is, terms with
in them. The
idea of having complex values for light intensity is a bit disturbing, and
it might lead you to question the validity of
Equation 1.21. However, as long as the values for
,
,
, and
are real, all imaginary terms will cancel out.
An implementation evaluating Equation 1.21 could
compute it by performing complex arithmetic. However, because it is
generally more convenient to perform strictly real arithmetic, we can
manipulate Equation 1.21 to have only real numbers
when
. We can do this using
the
imaginary
error function,
, defined as
.
Although the relation contains
, both
and
are real functions. So for the case when
, we get the modified real equation
Neither Equation 1.21 nor
Equation 1.22 is well defined if
. For the special case when
the attenuation coefficient is constant, we have to resolve
Equation 1.2 and get yet another equation:
Equations 1.21 through 1.23 together make up the closed form for the volume rendering integral with linear parameters.