S_ZapToGenerates a forked lightning bolt from a given point to the edges of objects in the ToObj input clip, and renders it over a background input.In the Sapphire Render category.
Inputs:
|
|
Parameters:
-
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:
Default:
0,
Range:
0 or greater.
Brings up the Mocha window for tracking footage and generating masks.
-
Blur Mocha:
Default:
0,
Range:
any.
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:
screen center.
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.
- Intersect: Uses the area that overlaps between the two masks.
-
Union:
Uses the area covered by both masks together.
-
Surface Points:
Integer, Default:
10,
Range:
1 or greater.
The number of points along the edges to connect the lightning to. These surface points are divided up amongst the shapes in the ToObj input. If the number of requested surface points is equal to the number of separate shapes in the ToObj input, one lightning fork will connect to each.
-
Start:
X & Y, Default:
screen center.
The starting position of the lightning. This parameter can be adjusted using the Start Widget.
-
Max Dist:
Default:
2,
Range:
any.
The maximum distance of surface points from the Start position. Edges outside this distance are ignored. This parameter can be adjusted using the Start Widget.
-
Threshold:
Default:
0.5,
Range:
0 or greater.
The value used to determine the edge locations. Objects darker than this value are ignored. On smooth objects, larger threshold values move the edges inwards to make smaller shapes, and smaller values move the edges outwards. You can use the Show Edges option to view the edge image directly while adjusting this parameter.
-
Blur ToObj:
Default:
0.025,
Range:
any.
Blurs the ToObj input clip before finding the edges. This can help remove noise, and reduce the number of separate shapes. You can use the Show Edges option to view the edge image directly while adjusting this parameter.
-
ToObj Use:
Popup menu, Default: Luma
.
Determines which channel of the ToObj input channels are used.
-
Luma:
the luminance of the RGB channels is used.
- Alpha: only the Alpha channel is used.
- Alpha: only the Alpha channel is used.
-
Luma:
the luminance of the RGB channels is used.
-
Show:
Popup menu, Default: Result
.
Selects what the effect will output.
-
Result:
shows the normal lightning result over the background.
- Edges: shows the target edge image. This can be useful to view while adjusting the Threshold and Blur To Obj parameters.
- Edges: shows the target edge image. This can be useful to view while adjusting the Threshold and Blur To Obj parameters.
-
Result:
shows the normal lightning result over the background.
-
Width:
Default:
0.1,
Range:
any.
The width of the lightning bolts.
-
Vary Width:
Default:
0,
Range:
0 to 1.
The amount of random variation in the width of the bolts along their lengths.
-
End Pointiness:
Default:
0.25,
Range:
0 to 1.
Determines how pointed the end of the bolts are. If 0, the entire bolt will have equal width. If 1, the bolts will thin out along their entire length for a pointed end. If it is .5, the bolts will start thinning out half way between the start and end points.
-
Wiggle Start:
Default:
0,
Range:
0 or greater.
By default the bolts automatically wiggle over time. This parameter provides a starting offset for these bolt perturbations.
-
Wiggle Speed:
Default:
1,
Range:
0 or greater.
The speed at which the bolts are perturbed automatically over time. To animate changes in speed, set this to zero and animate the Wiggle Start parameter instead.
-
Jitter Frames:
Integer, Default:
0,
Range:
0 or greater.
If this is 0, the same random lightning will be used for every frame processed. If it is 1, different random lightning is used for each frame. If it is 2, new random lightning is used for every other frame, and so on.
-
Rand Seed:
Default:
0.123,
Range:
0 or greater.
Used to initialize the random number generator. The actual seed value is not significant, but different seeds give different random lightning bolts, and the same value should give a repeatable result.
-
Wrinkle Amp:
Default:
1,
Range:
0 to 5.
Scales the amount of wrinkles in the bolts. Decrease for straighter smoother bolts or increase for more kinky bolts.
-
Branchiness:
Default:
1,
Range:
0 to 20.
Scales the number of additional bolts that branch from the main bolt. Set this to 0 for basic bolts with no extra branches.
-
Branch Angle:
Default:
65,
Range:
0 to 180.
The maximum angle of the random branches relative to the bolt they are branching off of. If this is 0 the branches will be more lined up with the main bolt. With larger values the branches will be more perpendicular to the main bolt.
-
Branch Length:
Default:
0.5,
Range:
0 to 3.
The scaled length of the branches relative to the distance between the Start and End points.
-
Start Offset:
Default:
0,
Range:
0 to 1.
The offset from the start point to begin drawing the bolts. This can be useful for animating a lightning strike.
-
Length:
Default:
1,
Range:
0 to 1.
The length of the bolts, beginning at Start Offset. If less than 1, the bolts will not be drawn all the way from start to end. This can be useful for animating a lightning strike.
-
Bolts:
Integer, Default:
1,
Range:
1 or greater.
The number of independent forked lightning bolts to draw, each connecting the Start position with the edge points.
-
Brightness:
Default:
1,
Range:
0 or greater.
Scales the brightness of the lightning bolts.
-
Scale Source:
Default:
1,
Range:
0 or greater.
Scales the brightness of the source clip before combining with the lightning. If 0, the result will contain only the lightning image over black.
-
Combine:
Popup menu, Default: Screen
.
Determines how the lightning and glow are combined with the source image.
-
Screen:
performs a blend function which can help prevent
overly bright results.
- Add: causes the lightning to be added to the source image. This gives brighter glows over light image areas.
- Zap Only: displays the lightning over black, ignoring the source image.
- Add: causes the lightning to be added to the source image. This gives brighter glows over light image areas.
-
Screen:
performs a blend function which can help prevent
overly bright results.
-
Zap Color:
Default rgb:
[1 1 1].
The color of the lightning. If you want to keep the lightning bolt itself bright white, you can still affect the perceived color by adjusting the Glow Color instead.
Glow Parameters:
-
Glow Color:
Default rgb:
[0.5 0.5 1].
The color of the glow applied to the lightning.
-
Glow Bright:
Default:
2,
Range:
0 or greater.
Scales the brightness of the glow applied to the lightning.
-
Glow Width:
Default:
0.2,
Range:
any.
The width of the glow applied to the lightning.
-
Glow Width Red:
Default:
0.5,
Range:
0 or greater.
The relative red width of the glow.
-
Glow Width Grn:
Default:
1,
Range:
0 or greater.
The relative green width of the glow.
-
Glow Width Blue:
Default:
1.5,
Range:
0 or greater.
The relative blue width of the glow.
-
Affect Alpha:
Default:
0,
Range:
0 or greater.
If this value is positive the output Alpha channel will include some opacity from the lightning and its glow. The maximum of the red, green, and blue brightness is scaled by this value and combined with the background Alpha at each pixel.
-
Atmosphere Amp:
Default:
0,
Range:
0 or greater.
Atmosphere gives the effect of the zap 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 zap, higher values give more dusty look.
-
Atmosphere Freq:
Default:
2,
Range:
0.1 to 20.
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.7,
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.
-
Blur Mask:
Default:
0.05,
Range:
any.
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, or if there is no valid Alpha channel the Red channel is used.
- Alpha: only the Alpha channel is used, or if there is no valid Alpha channel the Red channel is used.
-
Luma:
the luminance of the RGB channels is used.