S_ZFogLinear

Mixes a fog color into the source clip using depth values from a ZBuffer input. The fog amount varies linearly between Fog Near and Fog Far depending on the depth.

In the Sapphire Stylize effects submenu.


Inputs:

Source:  The clip to be processed.

ZBuffer:  The input clip containing depth values for each Source pixel. These values should be in the range of black to white, and it is best if not anti-aliased. Normally black corresponds to the farthest objects and white to the nearest, though this can be adjusted using Z Buffer parameter.
        

Parameters:

Z Near:   Default: 0.1,  Range: 0 to 1.
The value of the input Z corresponding to near objects. Zero means black areas of the ZBuffer are near, and one means white areas are near.

Z Far:   Default: 1,  Range: 0 to 1.
The value of the input Z corresponding to far objects. Zero means black areas of the ZBuffer are far, and one means white areas are far.

Fog Color:   Default rgb: [0.5 0.5 0.5].
The fog color should normally match the sky or background color of the source clip. Use gray for mist, brown for smog, blue for underwater, etc.

Fog Near:   Default: 0,  Range: 0 to 1.
The amount of fog to add to nearby (close) objects.

Fog Far:   Default: 0.8,  Range: 0 to 1.
The amount of fog to add to far away objects.

Zbuffer Use:   Popup menu,  Default: Luma.
Determines how the ZBuffer input channels make a monochrome z image.
Luma:  the luminance of the RGB channels is used.
Alpha:  only the Alpha channel is used.


See Also:

ZFogExponential
ZBlur
ZComp
ZGlow
Sapphire Plug-ins Introduction


© 2009, GenArts, Inc. All rights reserved.