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 as the depth varies between Z Near and Z Far. The ZBuffer input will be solid black if not provided, so you should specify this input for this effect to do anything useful.

In the Sapphire Stylize effects submenu.


Inputs:

Source:  The current layer.   The clip to be processed.

ZBuffer:  Defaults to None.   The input clip containing depth values for each Source pixel. These values should be in the range of black to white. Normally black corresponds to the nearest objects and white to the farthest.
        

Parameters:

Z Near:   Default: 0.1,  Range: 0 to 1.
The value of the input Z corresponding to near objects.

Z Far:   Default: 1,  Range: 0 to 1.
The value of the input Z corresponding to far objects.

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 objects at or closer than Z Near.

Fog Far:   Default: 0.8,  Range: 0 to 1.
The amount of fog to add to objects at or farther than Z Far.

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.

Opacity:   Popup menu,  Default: Normal.
Determines the method used for dealing with opacity/transparency.
All Opaque:  Use this option to render slightly faster when the input image is fully opaque with no transparency (alpha=1).
Normal:  Process opacity normally.
As Premult:  Process as if the image is already in premultiplied form (colors have been scaled by opacity). This option also renders slightly faster than Normal mode, but the results will also be in premultiplied form, which is sometimes less correct.

See Also:

ZFogExponential
ZDepthCueBlur
ZComp
Sapphire Plug-ins Introduction


© 2007, GenArts, Inc. All rights reserved.