Game Development Community

Muzzle Flash Problem

by William Todd Scott · in Torque Game Engine Advanced · 02/28/2007 (12:51 pm) · 5 replies

This one is throwing me...

I am working with a ShapeBaseImage and I am trying to get the muzzle flash working.

I have setup a sequence called "fire" which is set for visibility animation. The sequence goes from frame 1 to 5. The muzzle flash meshes have visibility set 0.0 at frame 1, set to 1.0 at frame 2, and set to 1.0 at frame 5. The sequence is being exported and shows up with the expected animation in show tool.

The animation sequence is being found when the datablock is loaded.

The muzzle flash is not showing up when I fire. And, if I change the animation to run from frame 2 to frame 5 (so the flash is always visible in the animation) then the flash is always present.

Can anyone see what I am doing wrong?

Thanks for the help.
Todd

#1
03/01/2007 (12:16 am)
In the hopes that this will help, here is the dts I am using: www.tormentedgames.com/files/weapon01.dts
#2
03/01/2007 (12:50 am)
I was a deskside technician for years. The first thing I learned to do when troubleshooting a piece of equipment was make sure it was plugged in.

Do you have stateSequence[x] = "fire" in your datablock?
#3
03/01/2007 (11:24 am)
Hi Bryce,

Yes, I have that setup correctly and I stepped through the code to verify that both the Fire and Fire_Vis animations are being found for that state.

Are you saying that the DTS looks fine and I should focus on the datablock, or were you just making sure I didn't mess up something simple?

Thanks
Toss
#4
03/02/2007 (12:42 am)
Well the DTS itself has some flaws. There's some faces missing behind the muzzle break and the billboards don't always show up depending on the angle at which you view them. Specifically from the rear and from the left.

I'd fix the billboards first. It could very well be that the UV mapping flawed and that's why you aren't seeing the animation.
#5
03/02/2007 (8:18 am)
Hi Bryce,

Thanks for taking a look at the DTS.
I will fix those issues and see if it works.

Thanks!
Todd