Game Development Community

Muzzle Flash

by Nathan · in General Discussion · 10/01/2005 (7:27 am) · 33 replies

Hi, I'm not sure what to do about my muzzle flash! I've seen a few topics about this on the forum but not any new ones. So whats the best way to make a muzzle flash?
Page«First 1 2 Next»
#21
10/04/2005 (1:55 pm)
Woah, what's wrong with that? Good work!
#22
10/04/2005 (2:38 pm)
I think to progress this further, it would have to be a seperate mesh which was mounted onto the end of a weapon and somehow the animation was played when the weapon fired.. could be done on the trigger I guess... Dunno, need to do some more work, 'cos I don't like the idea of having to move all the weapons around the 0,0,0 axis just to get billboards :-)

Cheers for the comments guys, I'm working on a plasma cannon for my game so I wanted a muzzle flash anyway, it's given me a couple of ideas to work with..

I might do a resource if it was needed, but this was really easy to do once I'd worked around the limitations.
#23
10/04/2005 (3:34 pm)
OK, I've made a mesh and dts for this muzzle flash thing. Feel free to download it from my site

It's just the flash on its own without a weapon attached to it'll be a piece of cake to import into another model.. It's not animated and you'll probably have to scale it down a bit, it's a bit big.. but then, I don't know what size your models are do I? :-)

I've included 2 sets of textures, you could use ifl and animate between them if you wanted.. might look quite cool.

Enjoy.

let me know what you think.

[edit: Just to clarify, I made the textures.. so there's no royalty or copyright issues to worry about, feel free to use them]
#24
10/05/2005 (6:48 am)
Looks Great Jason! Nice work!

s1.simpload.com/10054343d85cd5845.jpg
#25
10/05/2005 (10:46 am)
Sweet, that looks pretty cool with that handgun.
#26
10/05/2005 (11:16 am)
And with the pistol skinned...

s1.simpload.com/10054343b636b8e21.jpg
#27
10/09/2005 (7:20 am)
Always wondered. How is it possible in Milkshape to "hide" the muzzle flash, but then have it visible in the animation. Hiding faces/the group doesn't seem to do anything in animation.
#28
10/09/2005 (7:36 am)
You use visibility animation. You set your fire animation up between frames 2 and 5 for example, then in the exporter (only avaiolable in the explorter plus version) (I'm assuming frame 1 is going to be used as an ambient animation or something...), go to the meshes and add visibility channels. Starting off with frame 1 with a value of 0, then frame 2 has a value of 1, frame 5 has a value of 0..

You need to enable visibility animnation in your fire sequence. Then when you fire, the muzzle flash will appear and disappear.

Hide in the groups is just a tool for modelling.
#29
10/09/2005 (10:13 am)
But, if placing the muzzle flash group on the tip of the muzzle, then the model (when placed in the world, as well as when mounted) will show the solid muzzle flash attached to the weapon, I think. (As far as I've experimented) I need a way to keep the muzzle flash hidden, and only exposed during the fire sequence.
#30
10/09/2005 (11:27 am)
I must be doing something terribly wrong. The muzzle flash is visible all the time (both in the world with the weapon spinning around waiting to be picked up, and mounted on the player), nonstop, except for in the fire sequence. I got it backwards, lol.

Edited: Fixed
#31
10/09/2005 (12:02 pm)
Chris i think you need to have your firing script call an animation on the weapon mesh. when the weapon isnt being fired, it should be playing the root animation of your model which should have the visibility of the flash group at 0. only when the weapon plays the fire animation should the visibility change and you need to make sure your firing script is calling it the function when the weapon is fired.
#32
10/09/2005 (12:04 pm)
Oh and btw thanks for the tips everyone, I was starting to wonder how muzzle flashes are done as well. the t shaped billboard idea is the kinda solution i was looking for.
#33
04/20/2006 (10:03 pm)
Hi,
Can you please tell me how to do the texture animation thing is 3Ds MAX?

Thanks
-Zubair-
Page«First 1 2 Next»