Tutorial - Making Realistic Muzzle Flashes
Now, before we get too deep into gun battles, I would like to warn you that shooting a realistic-looking gun in public is not something you want to do. We don't want anyone getting arrested or worse (God forbid), so please use common sense and caution when shooting your gun scenes.
This technique can be extremely useful in certain situations. In my latest film, we were lucky enough to have a prop gun that ejected shells, so we didn't need any visual FX when we were shooting in a basement on a controlled set. However, the following day, we had to shoot in a park, and we didn't feel it was wise or necessary (remember the common sense we talked about?) to shoot a realistic-looking prop gun in public. Enter composited muzzle flashes!
The first thing you need to do is purchase some muzzle flashes. Detonation Films a lot of them for great prices. Select the appropriate muzzle flash for the type of gun you are using. You can get away with a lot here, but you can't go too crazy or your muzzle flashes won't look authentic. You'll also want to keep in mind the perspective of the muzzle fire. You don't want to use a side shot of a muzzle flash when your gun is head on with the camera. If your perspective is off, you can sometimes turn your muzzle flash layer into a 3D layer and adjust it to match the perspective. More on this in Step 3.
Figure 1: Select the appropriate muzzle flash (click to enlarge)
You want to make sure that you choose the correct frame for your muzzle fire - that is, you want to make sure the muzzle fire happens at the correct point in time. Depending on the type of gun you are using, some have blowback (Airsoft guns have gas or spring blowback), and some don't do anything at all. You want to insert the muzzle flash right when your actor pulls the trigger. Muzzle flashes are really only one frame in length, so pick a good frame where the timing feels right. For more information on blowback and placement, see the accompanying online video tutorial referenced at the end of this article.
I chose the frame in Figure 2 because it happens to be when our actor pulled the trigger. This is the frame right before the recoil.
Figure 2 (click to enlarge)


After Effects Apprentice
Creating Motion Graphics with After Effects, Vol. 1 (3rd Ed., Version 6.5)
Creating Motion Graphics with After Effects, Vol.2, (3rd Ed., Version 6.5)
Creating Motion Graphics with After Effects (4th Ed., Version 6.5)
Videomaker Multimedia Tutorial - After Effects Part 1 (DVD-ROM)
Videomaker Multimedia Tutorial - After Effects Part 2 (DVD-ROM)
Composition 201
Simple Compositing
Wedding Videoland
How to Composite Video for Inserting Backgrounds in Sets