Game Development Community

Muzzle Flash

by Eric Soyon · in Artist Corner · 08/29/2010 (10:52 pm) · 3 replies

What is the best way to create a muzzle flash in T3D

My guess would be a mix of smoke in the particle system and by attaching a muzzle flash to the weapon image in the dts model. Does anyone know how to do this with milkshape?

#1
08/30/2010 (10:05 pm)
No one?
#2
08/31/2010 (3:23 pm)
I think you answered your own question. Use an emitter for the smoke, and have a billboard or something similar on your weapon's fire animation for the muzzle flash.

You can hide the muzzle flash inside the barrel until the animation is called.

If you do it this way, I would recommend setting up multiple fire/flash animations and randomly calling those - otherwise the same flash might look silly.

I'm sure there are other methods, and you can still get a fairly decent muzzle flash using emitters, but these are the only two that I know of that are simple to implement. Try searching the forums as this question has been discussed a bit in the past. Good luck!
#3
08/31/2010 (5:17 pm)
You can set a muzzleFlash sequence as part of your fire animation. This will simply be a series of billboards that extend out of the barrel of your gun.

Particle emitters (stateEmitter) are useful too.


@random flashes:
"stateSequenceRandomFlash"
Quote:
If true, a random frame from the muzzle flash sequence will be displayed each frame. The name of the muzzle flash sequence is the same as stateSequence, with "_vis" at the end."