Game Development Community

GuiSpeedometerHud Needle?

by Mike Rowley · in Torque Game Engine Advanced · 12/27/2008 (7:09 pm) · 1 replies

I've added a speedometer to tgea, but the needle doesn't work. What I need to know is why it isn't working and how to get it to work. I have stepped thru the code, double checked it against the tge version, but still can't get the needle to render. I even went thru the time it took to run doxygen and search thru the doc code. No matter what I try, I can't get it to work.
Does anyone have any ideas what I may be missing or what I can try?

#1
12/27/2008 (8:03 pm)
After running 2 debuggers,( torsion and MSVC 2005 ) It appears that my adding GFX->popWorldMatrix(); to GuispeedometerHud.cc, that it has messed up the gfx layer of the engine. None of my game sounds will preload or play now. I'm getting the error "sfxStartup...
Failed to initialize device!" when tgea loads. At the end of the debug file, I get the error "Fatal: (c:\torque\tgea_1_8_0\engine\source\gfx\gfxdevice.h @ 832) GFX: Exceeded world matrix stack size". I never got this error before for sounds. If I remove that code, the speedometer hud will crash torque.
I'm definately over my head with this one.