Max, Hanrahan, and Crawfis [64] and Shirley and Tuchman [86] independently developed a method for approximating the volume rendering integral for unstructured grids and other arenas where resampling is not practical.
The method starts with the (impractical) assumption that the luminance along the ray is constant. Plugging this constraint in the volume rendering integral we get
We can solve Equation 1.14 for any
integrable function for
. Recall from the discussion in
Section 1.2.4 that we can perform piecewise
integration on the viewing rays. Furthermore, it is convenient to break up
the integral based on its intersection with cells. The assumption that the
volume properties vary linearly through the cells is often (but not always)
valid. Solving Equation 1.14 for a
linear interpolation of the attenuation, we get
We still have a major problem with Equation 1.15: the luminance is constant. In general, we require the luminance to vary within cells just like the attenuation. Both [64] and [86] solve this problem by averaging the color over the length of the segment. When the color varies linearly like the luminance, this approximation yields
An interesting feature of
Equation 1.16 is that it is
equivalent to approximating the volume by averaging the luminance and
attenuation and assuming the volume is homogeneous. This can be verified
by plugging in
and
into
the volume integral for homogeneous volumes (given in
Section 1.3.3).
![]() |
![]() |
| (a) Averaged color. | (b) Linearly interpolated color. |
The biggest cause of error is that caused by averaging the luminance. Figure 1.12 demonstrates the error that can occur. When we average the luminance, the color on the back faces of the cells bleeds in through the front. Furthermore, although the color should be constant along the front face of the volume, the approximation changes at the interface between the two cells. The change in colors causes Mach bands to be visible. Mach bands are lines introduced by the human visual system in places where color changes are discontinuous. Mach bands help the visual system detect the edges of objects.