home << prev next >> contents  


Final Gathering

Final gathering is a technique for estimating global illumination for a given point by either sampling a number of directions in the hemisphere over that point (such a sample set is called a final gather point), or by averaging a number of final gather points nearby since final gather points are too expensive to compute for every illuminated point.

For diffuse scenes, final gathering often improves the quality of the global illumination solution. Without final gathering, the global illumination on a diffuse surface is computed by estimating the photon density (and energy) near that point. With final gathering, many new rays are sent out to sample the hemisphere above the point to determine the incident illumination. Some of these rays hit diffuse surfaces; the global illumination at those points is then computed by the material shaders at those sample point, using illumination from the globillum photon map if available and other material properties. Other rays hit specular surfaces and do not contribute to the final gather color (since that type of light transport is a secondary caustic). Tracing many rays (each with a photon map lookup) is very time-consuming so it is only done when necessary - in most cases, interpolation and extrapolation from previous nearby final gatherings is sufficient.

Final gathering is useful in scenes where the indirect illumination various slowly, such as purely diffuse scenes. For such scenes, final gathering eliminates photon map artifacts such as low frequency noise and dark corners. Fewer photons are needed in the globillum photon map and lower globillum accuracy is sufficient since each final gather averages over many values of indirect illumination.

In film production work, final gathering is often used rather than photon mapping, except for caustics. Final gathering by default supports a single bounce only. Multiple-bounce effects tend to have far less impact on the final image than the first bounce; these are performed by photons by default and by final gathering only if the shaders adjusts the trace depth. Although physical correctness is lost, this is often "good enough" for film production, and final gathering is easier to control than photons emanating from distant light sources. However, for accurate indoor illumination simulations and other CAD-related applications, photon mapping is preferred.

Final gathering is set off by default, but can be turned on in the options. To change the number of rays shot in each final gather (and optionally the maximum distance at which a final gathering result can be used for interpolation and the minimum distance at which it must be used), specify a finalgather accuracy setting in the options. For example,

     finalgather accuracy 1000 1.5 0.25

increases the number of rays and reduces noise in scenes with complex illumination and geometry. The default number of rays is 1000. The default maximum distance depends on the scene extent; decreasing it will reduce noise but increase render time. The default minimum distance is 10% of the maximum distance.

mental ray 3.4 has changed the final gathering algorithm. It normally achieves better quality in less time with approximately one-half the number of rays. It is necessary to modify the accuracy statements though, for example changing 1000 to 500 in the preceeding example, or rendering times will increase.

Final Gathering Modes3.5

mental ray has four different final gathering modes in version 3.5 and later:

"automatic"
This final gathering mode has been greatly simplified compared to version 3.4. It no longer requires radii to control final gathering sampling and interpolation. The parameters used to control this mode are:
"multiframe"
This mode is similar to the simple mode, but has been specifically designed for rendering camera fly-through animations. To avoid flickering, the rendering should be split into two parts. In the first part, the final gather map is rendered for the set of key frames or for a coarse sequence of frames. In the second part, the frozen final gathering mode is used for the rendering of the full animation. It is possible that some part of the scene will not contain sufficient number of finalgather points for some frames not belonging to the key frame set. To avoid picking up illumination from distant objects which is possible in the "automatic" mode, the finalgather accuracy max radius limits the maximal distance. If sufficient final gather points are not found within that distance, the illumination is smoothly faded to black.

This mode is typically useful for animated scenes, but is not necessarily the best method for animations where flickering is not a problem. It may also be well suitable for still images without animation.

The parameters used to control this mode are:
"3.4"
This mode is provided for compatibility with version 3.4, and to give the experienced user more control over the final gathering computations. This mode typically gives results similar to version 3.4 of mental ray, and makes use of all "finalgather accuracy" arguments (optional "view" flag, number of finalgather rays, max and min radii).
"strict 3.4"
This mode is similar to the "3.4" mode, but achieves higher compatibility with mental ray version 3.4, allowing re-rendering of old scenes with mental ray version 3.5 or later. Some rendering improvements are disabled in that mode.

The mode is selected by the option "finalgather mode" in the scene options, or the command line option
-finalgather_mode.

The default mode for mental ray 3.5 is the "3.4" compatibility mode.

home << prev next >> contents  


Copyright © 1986-2007 by mental images GmbH