Sapphire Plug-ins for After Effects: GlowDist


Generates glows based on the distances from the edges of the source input. Any edges in the input image, where the brightness crosses the given threshold value, will generate an equally bright glow into the darker side of the edges. This is best observed when used on images with dark backgrounds.

In the Sapphire Lighting effects submenu.


Source: The current layer. The input clip that determines the glow locations and colors.

Background: Defaults to None. The clip to combine the glows with. If no background is given, the Source is also used as the Background.

Matte: Defaults to None. If provided, the source glow colors are scaled by this input. A monochrome matte can be used to choose a subset of Source areas that will generate glows. A color matte can be used to selectively adjust the glow colors in different regions. The matte is applied to the source before the glows are generated so it will not clip the resulting glows.


Load Preset: Push-button .
Brings up the Preset Browser to browse all available presets for this effect.

Save Preset: Push-button .
Brings up the Preset Save dialog to save a preset for this effect.

Mocha Project: Default: 0, Range: 0 or greater.
Brings up the Mocha window for tracking footage and generating masks.

Blur Mocha: Default: 0, Range: 0 or greater.
Blurs the Mocha Mask by this amount before using. This can be used to soften the edges or quantization artifacts of the mask, and smooth out the time displacements.

Mocha Opacity: Default: 1, Range: 0 to 1.
Controls the strength of the Mocha mask. Lower values reduce the intensity of the effect.

Invert Mocha: Check-box,  Default: off.
If enabled, the black and white of the Mocha Mask are inverted before applying the effect.

Resize Mocha: Default: 1, Range: 0 to 2.
Scales the Mocha Mask. 1.0 is the original size.

Resize Rel X: Default: 1, Range: 0 to 2.
The relative horizontal size of the Mocha Mask.

Resize Rel Y: Default: 1, Range: 0 to 2.
The relative vertical size of the Mocha Mask.

Shift Mocha: X & Y,   Default: [0 0], Range: any.
Offsets the position of the Mocha Mask.

Bypass Mocha: Check-box,  Default: off.
Ignore the Mocha Mask and apply the effect to the entire source clip.

Show Mocha Only: Check-box,  Default: off.
Bypass the effect and show the Mocha Mask itself.

Combine Masks: Popup menu,  Default: Union .
Determines how to combine the Mocha Mask and Input Mask when both are supplied to the effect.
Union: Uses the area covered by both masks together.
Intersect: Uses the area that overlaps between the two masks.
Mocha Only: Ignore the Input Mask and only use the Mocha Mask.

Brightness: Default: 0.8, Range: 0 or greater.
Scales the brightness of the glows.

Color: Default rgb: [1 1 1].
Scales the color of the glows.

Threshold: Default: 0.5, Range: 0 or greater.
Glows are generated at the edges of areas in the source clip that are brighter than this value. A value of 0.9 causes glows from only the brightest spots. A value of 0 causes glows for every non-black area.

Threshold Add Color: Default rgb: [0 0 0].
This can be used to raise the threshold on a specific color and thereby reduce the glows generated on areas of the source clip containing that color.

Glow Width: Default: 0.1, Range: 0 or greater.
Scales the glow distance. This and all the width parameters can be adjusted using the Width Widget. Note that a zero glow width still enhances the bright areas; set the brightness parameter to zero if you want to pass the Source through unchanged.

Width Red: Default: 1, Range: 0 or greater.
Scales the red glow distance. If the red, green, and blue widths are equal, the glows will be a single color given by the Color parameter. If they are not equal, the glows will vary in color with distance.

Width Green: Default: 1.2, Range: 0 or greater.
Scales the green glow width.

Width Blue: Default: 1.4, Range: 0 or greater.
Scales the blue glow width.

Show: Popup menu,  Default: Result .
Selects the type of output
Result: Shows the final result of combining the glow, source, and background.
Threshold: Shows the thresholded image that is used to generate the glow.

Combine: Popup menu,  Default: Screen .
Determines how the glow is combined with the Source or Background. This parameter has no effect if Light BG is set to 1.
Mult: the source or background is multiplied by the glow.
Add: the glow is added to the source or background.
Screen: the glow is blended with the source or background using a screen operation.
Difference: the result is the difference between the glow and the source or background.
Overlay: the glow is combined with the source or background using an overlay function.

Affect Alpha: Default: 1, Range: 0 or greater.
If this value is positive the output Alpha channel will include some opacity from the glows. The maximum of the red, green, and blue glow brightness is scaled by this value and combined with the background Alpha at each pixel.

Glow From Alpha: Default: 0, Range: 0 to 1.
Set to 1 to generate glows from the alpha channel of the source input instead of the RGB channels. In this case the glows will not pick up color from the source and will typically be brighter. Values between 0 and 1 interpolate between using the RGB and the Alpha.

Glow Under Source: Default: 0, Range: 0 to 1.
Set to 1 to composite the Source input over the glows.

Light Background: Default: 0, Range: 0 to 1.
Increase this to give a look of the glow casting light onto the background image. To see this more clearly you can also lower the Background Scale parameter or raise the Brightness parameter.

Source Opacity: Default: 1, Range: 0 to 1.
Scales the opacity of the Source input when combined with the glows. This does not affect the generation of the glows themselves.

Bg Brightness: Default: 1, Range: 0 or greater.
Scales the brightness of the background. This parameter only has an effect if the background input is provided, and is visible due to a partially transparent Source image or a reduced Source Opacity parameter value.

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

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.

Show Glow Width: Check-box, Default: on.
Turns on or off the screen user interface for adjusting the Glow Width parameter.This parameter only appears on AE and Premiere, where on-screen widgets are supported.

See Also:

Sapphire Plug-ins Introduction


Join our email newsletter and keep up to date