Sapphire Plug-ins for Autodesk: GlowMaskComp


In the S_GlowsMaskCmp Plugin.

Areas of the source clip that are brighter than the given threshold are blurred and then combined with the background clip. This is similar to Glow, but here the glow colors are scaled by the Mask input, and also the source and background can be different clips.


Front: The clip to use as foreground.

Back: The clip to combine the glows with.

Matte: Optional. Specifies the opacities of the Front clip. These values are scaled by the Source Opacity parameter before being used.

Mask: The source glow colors are scaled by this input. A monochrome Mask can be used to choose a subset of Source areas that will generate glows. A color Mask can be used to selectively adjust the glow colors in different regions. The Mask 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.

Width: Default: 0.3, 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 width. If the red, green, and blue widths are equal, the glows will match the color of the source clip. 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.

Subpixel: Check-box,  Default: off.
Enables glowing by subpixel widths. Use this for smoother animation of the Width parameters.

Invert Mask: Check-box,  Default: off, Shared .
If enabled, inverts the mask input so the effect is applied to areas where the Mask is black instead of white.

Width X: Default: 1, Range: 0 or greater.
Scales the horizontal glow width. Set to 0 for vertical only.

Width Y: Default: 1, Range: 0 or greater.
Scales the vertical glow width. Set to 0 for horizontal only.

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

Color: Default rgb: [1 1 1].
Scales the color of the glows. The colors and brightnesses of the glows are also affected by the Source input.

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.

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

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

Scale Back: Default: 1, Range: 0 to 1, Shared .
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.


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

Glow From Matte: Default: 0, Range: 0 to 1, Shared .
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.

Light Back: Default: 0, Range: 0 to 1, Shared .
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 Scale Background parameter or raise the Brightness parameter.

Comp Premult: Check-box,  Default: off, Shared .
Enable this for a better composite if the Front pixel values have been pre-multiplied by the Matte pixel values. This is also known as an 'additive' composite.

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.

Edge Mode: Popup menu,  Default: Reflect .
Determines the behavior when accessing areas outside the source image.
Black: Areas outside the source image are treated as black, which can produce dark areas around the edges of the image. Select this for fastest rendering.
Reflect: Reflects the image outside the border.

Atmosphere Parameters:

Atmosphere Amp: Default: 0, Range: 0 or greater.
Atmosphere gives the effect of the glow shining through a dusty atmosphere and picking up light or getting shadowed. This parameter adjusts the amount, or amplitude, of the atmospheric effect. Zero gives a smooth glow, higher values give more dusty look.

Atmosphere Freq: Default: 1, Range: 0.1 or greater.
Controls the spatial frequency of the atmospheric noise. Turn this up higher to get finer details, turn down for broader overall variation.

Atmosphere Detail: Default: 0.6, Range: 0 to 1.
Controls the amount of fine detail in the atmosphere simulation. Decrease to get smoother atmosphere, increase for a more crunchy or grainy look.

Atmosphere Seed: Default: 0.123, Range: 0 or greater.
Used to initialize the random number generator for the atmospheric noise. The actual seed value is not significant, but different seeds give different results and the same value should give a repeatable result.

Atmosphere Speed: Default: 1, Range: any.
The cloudy noise in the atmosphere evolves over time like real dust clouds; this parameter controls how fast the cloud pattern changes over time. Set to zero for a static pattern.


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

Blur Mocha: Default: 0, Range: 0 or greater, Shared .
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, Shared .
Controls the strength of the Mocha mask. Lower values reduce the intensity of the effect.

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

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

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

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.
See general info for: Res , On Fields , Redraw , Undo , Load Defaults , Crop , Add Noise , and Use Gamma .

See Also:

Sapphire Plug-ins Introduction


Join our email newsletter and keep up to date