Sapphire Plug-ins for AVX2: MuzzleFlash

S_MuzzleFlash

Simulates the flash and smoke that is generated when a gun is fired. The flash from several types of gun can be simulated. All guns have a primary flash, and guns with suppressors may have secondary flashes. The gun may easily be fired repeatedly. Note: All time units in this effect are in frames.

In the Sapphire Render category.


Inputs:

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

Background: Optional. The clip to use as background. The output of the effect is composited over this clip.

Mask: Optional. Interpolate between the result and the Source input. White areas use the result of the effect. Black areas use the Source clip.

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: 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.

Location: X & Y,  Default: screen center.
The position (on the image) of the end of the gun barrel. This parameter can be adjusted using the MuzzleFlash Widget.

Location Uses Mocha: Check-box,  Default: off.
Controls whether the location is controlled by the Location parameter or follows the Location tracked inside of Mocha.

Smooth Location Track: Integer,  Default: 0, Range: 0 or greater.
Controls how many points to average when stabilizing the Mocha point track.

Elevation: Default: 0, Range: -360 to 360.
The angle of the gun barrel in the vertical plane relative to horizontal. This parameter can be adjusted using the MuzzleFlash Widget.

Rotation: Default: 0, Range: -360 to 360.
The angle of the gun barrel in the horizontal plane relative to due east. This parameter can be adjusted using the MuzzleFlash Widget.

Radius: Default: 0.2, Range: 0.05 to 1.
The overall size of the gun blast. This parameter can be adjusted using the MuzzleFlash Widget.

Brightness: Default: 1, Range: 0 or greater.
The overall brightness of the flash.

Shift Out: Default: 0, Range: 0 to 100.
The muzzle flash will be drawn this far from the end of the gun barrel.

Gun: Popup menu,  Default: M16 .
The type of gun being fired.
AK47: AK47 assault rifle.
Beretta: Beretta pistol.
Colt45: Colt 45 revolver.
M16: M16 assault rifle.
12Gauge: Shotgun.

Variant: Popup menu,  Default: Two .
Variations on the muzzle flash pattern.
One: First variation.
Two: Second variation.
Three: Third variation.
Random: Randomly pick one of the variations each time a shot is fired.

Seed: Default: 0.123, Range: 0 or greater.
Random number seed. Many aspects of the muzzle flash appearence depend on the seed. To get a different result for a given set of control values, try changing this seed value.

Animate Seed: Check-box,  Default: off.
Selecting this will subtly change the shape of each flash generated so that they differ from frame to frame.

Octaves: Integer,  Default: 3, Range: 1 to 6.
Increasing this increases the detail in the smoke.

Blur: Default: 0.0015, Range: 0 or greater.
How much blur is to be applied to the muzzle flash.

Mid Density: Default: 0.4, Range: 0.01 to 0.99.
How dense the muzzle flash should be at half its radius.

Mid Color: Default rgb: [1 0.792 0.6].
The color of the muzzle flash at half its radius.

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

Combine: Popup menu,  Default: Screen .
Determines how the muzzle flash is combined with the Background.
Screen: The muzzle flash is blended with the Background using a screen operation.
Add: The muzzle flash is added to the Background.
MuzzleFlash Only: Gives only the muzzle flash with no Background.

Primary Length: Default: 0.21, Range: 0 or greater.
Length of the primary flash. This is always aligned with the gun barrel and is present in all guns.

Primary Width: Default: 0.035, Range: 0 or greater.
Width of the primary flash.

Primary Brightness: Default: 0.6, Range: 0 or greater.
Overall density and brightness of the primary flash.

Primary Puff: Default: 0.8, Range: 0 or greater.
How puffy (as opposed to smooth) the primary flash should appear.

Primary Detail: Default: 0.5, Range: 0 or greater.
How much detail should appear in the primary flash specifically.

Secondary Number: Integer,  Default: 6, Range: 0 to 10.
How many secondary flashes should be generated for those guns that have secondary flashes. These flashes appear from holes in the suppressor and only guns with suppressors have them. The flashes appear at an angle in the vertical plane with respect to the gun barrel direction. This control specifies how many holes there are in the suppressor. The holes are assumed to be evenly distributed around the circumference of the suppressor.

Secondary Angle: Default: 66, Range: 0 to 89.
The angle the secondary flashes make in the vertical plane with respect to the gun barrel.

Secondary Length: Default: 0.11, Range: 0 or greater.
The length of the secondary flashes.

Secondary Width: Default: 0.02, Range: 0 or greater.
The width of the secondary flashes.

Secondary Brightness: Default: 0.6, Range: 0 or greater.
The overall density and brightness of the secondary flashes.

Secondary Puff: Default: 0.7, Range: 0 or greater.
How puffy (as opposed to smooth) the secondary flashes should appear.

Secondary Detail: Default: 0.8, Range: 0 or greater.
How much detail should appear in the secondary flashes specifically.

Time Mode: Popup menu,  Default: Always .
How to draw flashes as the frame number changes.
Always: Always draw the flash. Whether or not the flash appears must be controlled manually by key framing the controls.
Repeat: Fire the weapon at regular intervals between a start and end time. This is appropriate for automatic weapons, but can also be used to generate a single flash for a non-automatic weapon. The flash is drawn on a single frame.
Repeat+Fade: As Repeat, but the flash will fade out over a number of frames.

Start Time: Integer,  Default: 0, Range: 0 to 500.
In Repeat and Repeat+Fade mode, this is the first frame on which a flash will appear.

Duration: Integer,  Default: 10, Range: 0 to 500.
In Repeat and Repeat+Fade mode, this is the length of time after start time in which a flash may appear.

Gap Time: Integer,  Default: 3, Range: 1 to 50.
In Repeat and Repeat+Fade mode, this is number of frames between flashes.

Fade Time: Integer,  Default: 1, Range: 1 to 5.
In Repeat+Fade mode, this is time in frames over which the flash will fade away.

Glow Color: Default rgb: [0.1 0.1 1].
The color of an overall glow around the bright parts of the muzzle flash.

Glow Bright: Default: 3, Range: 0 to 8.
The brightness of an overall glow around the muzzle flash.

Glow Width: Default: 1, Range: 0 to 2.
The size of an overall glow around the muzzle flash.

Glow Threshold: Default: 0.1, Range: 0.01 to 1.
Muzzle flash intensities above this threshold will glow.

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.

Blur Mask: Default: 0.05, 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.
See general info for: Apply To Title/Key , Crop/Transform , Resolution , Clamp Output To Legal , Bypass Effect , and Reset .


See Also:

Sapphire Plug-ins Introduction

List all effects with pictures

List all effects by name

List all effects with a brief summary

General User Info
What's New In This Version
Compatibility Notes
Loading a Plug-in
Color Management with OpenColorIO
Loading and Saving Presets
Designing Lens Flares and Glares
Using the Sapphire Effect Builder
Using Mocha in Sapphire
Resetting Parameters to Defaults
Online Documentation
About GPU Acceleration
About Motion Blur
About Matte Inputs
About Alpha Processing
About Angle Parameters
About Pixel Aspect Ratios
Customizing Plug-ins
Known Problems
3rd Party Licenses

Glow Effects
Glow
GlowAura
GlowDarks
GlowDist
GlowEdges
GlowNoise
GlowOrthicon
GlowRainbow
GlowRings
UltraGlow
ZGlow
Light Beams
Rays
EdgeRays
Streaks

LensFlares
LensFlare
LensFlareAutoTrack
LightLeak
Glints & Glares
Glint
GlintRainbow
Glare

Other Lighting
BokehLights
DropShadow
Flashbulbs
Light3D
SpotLight

AutoPaint & HalfTone
AutoPaint
Sketch
Etching
Brush:Oil
Brush:Chalk
Crosshatch
Cartoon
CartoonPaint
Posterize
HalfTone
HalfToneColor
HalfToneRings

Kaleidoscopes
Kaleido:Triangles
Kaleido:Squares
Kaleido:Diamonds
Kaleido:Oct
KaleidoPolar
KaleidoRadial
FlysEyeCircles
FlysEyeHex
FlysEyeRect
TileScramble
Film Effects & Grain
FilmEffect
FilmDamage
Vignette
BleachBypass
Grain
GrainStatic
Diffuse
VintageColor2Strip
VintageColor3Strip

Edge Effects
EdgeDetect
EdgeDetectDouble
EdgesInDirection
EdgeColorize

Embossing
Emboss
EmbossShiny
EmbossDistort
EmbossGlass
Other Stylize
BandPass
ColorFuse
DogVision
DigitalDamage
JpegDamage
TVDamage
Grunge
Mosaic
PixelSort
PseudoColor
PsykoBlobs
PsykoStripes
RomanTile
ScanLines
ScanLinesMono
Solarize
StripSlide
Zebrafy
ZebrafyColor
ZFogExponential
ZFogLinear

Adjust
ChannelSwitcher
ClampChroma
DuoTone
Gamma
Hotspots
HueSatBright
Invert
Monochrome
OCIOTransform
QuadTone
Threshold
Tint
TriTone
ShowBadColors

Composite
EdgeFlash
Layer
MathOps
MatteOps
MatteOpsComp
ZComp
Blur+Sharpen
Beauty
Blur
BlurChannels
BlurChroma
BlurDirectional
BlurMoCurves
BlurMotion
DefocusPrism
Convolve
ConvolveComp
Deband
EdgeBlur
EdgeAwareBlur
FreeLens
GrainRemove
Median
RackDefocus
RackDfComp
Sharpen
SoftFocus
ZConvolve
ZDefocus
ZBlur

Distort Effects
Distort
DistortBlur
DistortChroma
DistortRGB
Warps & Shake
InfiniteZoom
ParallaxStrips
WarpBubble
WarpBubble2
WarpChroma
WarpCornerPin
WarpDrops
WarpFishEye
WarpMagnify
WarpPerspective
WarpPolar
WarpPuddle
WarpPuff
WarpRepeat
WarpTransform
WarpVortex
WarpWaves
WarpWaves2
Shake
StretchFrameEdges

Lightning Zaps
UltraZap
Zap
ZapTo
ZapFrom

Gradients, Grid & Shape
Gradient
GradientMulti
GradientRadial
Grid
Shape

Procedural Textures
Caustics
Sparkles
SparklesColor
TextureCells
TextureChromaSpiral
TextureFlux
TextureFolded
TextureLoops
TextureMicro
TextureMoire
TextureNeurons
TextureNoiseEmboss
TextureNoisePaint
TexturePlasma
TextureSpots
TextureTiles
TextureWeave

Fractal Clouds
Clouds
CloudsColorSmooth
CloudsMultColor
CloudsPerspective
CloudsPsyko
CloudsVortex
Other Render
Aurora
LaserBeam
Luna
MuzzleFlash
NightSky
Time Effects
CutToDissolve
Feedback
FeedbackBubble
FeedbackDistort
FieldRemove
FreezeFrame
GetFrame
JitterFrames
MotionDetect
NearestColor
RandomEdits
RepairFrames
Retime
ReverseClip
ReverseEdits
TimeAverage
TimeDisplace
TimeSlice
TimeWarpRGB
Trails
TrailsDiffuse

Flicker Tools
Flicker
FlickerMatch
FlickerMatchColor
FlickerMatchMatte
FlickerMchMatteColor
FlickerRemove
FlickerRemoveColor
FlickerRemoveMatte
FlickerRmMatteColor

Effect Builder
Effect
Transition
Dissolve Transitions
Dissolve
DissolveAutoPaint
DissolveBlur
DissolveBubble
DissolveDefocus
DissolveDiffuse
DissolveDigitalDamage
DissolveDistort
DissolveEdgeRays
DissolveFilm
DissolveFlashbulbs
DissolveGlare
DissolveGlint
DissolveGlintRainbow
DissolveGlow
DissolveLensFlare
DissolveLuma
DissolvePixelSort
DissolvePuddle
DissolveRays
DissolveShake
DissolveSpeckle
DissolveStatic
DissolveTiles
DissolveVortex
DissolveWaves
DissolveZap

Wipe Transitions
WipeBlobs
WipeBubble
WipeCells
WipeChecker
WipeCircle
WipeClock
WipeClouds
WipeDiffuse
WipeDots
WipeDoubleWedge
WipeFlux
WipeFourWedges
WipeLine
WipePixelate
WipeRectangle
WipeRings
WipeStar
WipeStripes
WipeTiles
WipeWedge
WipePlasma
WipePointalize
WipeWeave
WipeMoire
SwishPan
Swish3D

Other Transitions
CardFlip
FilmRoll
FlutterCut
HyperPull
HyperPush
ParallaxStripsTransition
StripSlideTransition
SwishPan
Swish3D
TVChannelChange WhipLash