S_DistortRGB

Warps the red, green, and blue color channels of the source input by different amounts using the gradient of the Lens input clip. It is best demonstrated when the lens image contains just a few simple bold shapes.

In the Sapphire Distort effects submenu.


Inputs:

Source:  The clip to be processed.

Lens:  Optional.   Distorts the source using the brightness values of this input clip.

Mask:  Optional.   If provided, the amount of lens distortion is scaled by this input, so the Source is unaffected where the Mask is black. This input can be affected using the Blur Mask, Invert Mask, or Mask Use parameters.
        

Parameters:

Amount:   Default: 1,  Range: any.
Scales the magnitude of the lens distortion for all channels. Make negative to invert the direction of the distortions.

Blur Lens:   Default: 0.1,  Range: 0 or greater.
Smooths out the edges in the lens image by this amount before using it.

Rotate Warp Dir:   Default: 0,  Range: any.
Rotates the warping direction by this many degrees. If non-zero, this can add some unusual twisting effects to the lens distortion.

Warp Red:   Default: 0.5,  Range: any.
Scales the amount of lens distortion for the red channel. Negate to invert the direction.

Warp Green:   Default: 0.75,  Range: any.
Scales the amount of lens distortion for the green channel. Negate to invert the direction.

Warp Blue:   Default: 1,  Range: any.
Scales the amount of lens distortion for the blue channel. Negate to invert the direction.

Amount Rel:   X & Y,   Default: [1 1],  Range: 0 or greater.
The relative amounts of horizontal and vertical distortion. This has no effect unless Amount is positive.

Wrap:   X & Y,  Popup menu,  Default: [Reflect Reflect].
Determines the method for accessing outside the borders of the source image.
No:  gives black beyond the borders.
Tile:  repeats a copy of the image.
Reflect:  repeats a mirrored copy. Edges are often less visible with this method.

Filter:   Check-box,  Default: on.
If enabled, the image is adaptively filtered when it is resampled. This gives a better quality result when parts of the image are warped smaller.

Blur Mask:   Default: 0,  Range: 0 or greater.
Blurs the Mask input by this amount before using. This can provide a smoother transition between the masked and unmasked areas. It has no effect unless the Mask input is provided.

Invert Mask:   Check-box,  Default: off.
If on, inverts the mask input so the effect is applied to areas where the Mask is black instead of white. This has no effect unless the Mask input is provided.

Mask Use:   Popup menu,  Default: Luma.
Determines how the Mask input channels are used to make a monochrome mask.
Luma:  the luminance of the RGB channels is used.
Alpha:  only the Alpha channel is used.

Crop Input Parameters:   Default: 0,  Range: 0 or greater.
These 4 parameters, Crop Top, Crop Bottom, Crop Left, and Crop Right, allow selecting a rectangular subsection of the input image to be processed. If the Wrap parameters are set to "No" the exposed borders will be transparent. If the Wrap is "Tile" or "Reflect" the source image is wrapped on the new cropped borders to fill the frame. This can make it easier to avoid artifacts due to distorting an image with bad edges.


See Also:

Distort
DistortBlur
DistortChroma
EmbossGlass
WarpChroma
Sapphire Plug-ins Introduction


© 2009, GenArts, Inc. All rights reserved.