Tsshowctrl not working after mission load
by Kevin Johnson · in Torque Game Engine · 11/11/2004 (7:12 am) · 2 replies
A quick question for you guys out there..
I've added the show tool gui to my main menu, and it works great, except when i load up a mission, then exit the mission, and go back to the main menu. The show tool opens the new object but it is never shown on the screen. It says the shape was successfully loaded in the console.. do i need to reset a flag or something?
I've added the show tool gui to my main menu, and it works great, except when i load up a mission, then exit the mission, and go back to the main menu. The show tool opens the new object but it is never shown on the screen. It says the shape was successfully loaded in the console.. do i need to reset a flag or something?
#2
heres my renderworld function
(its actually TSE.. but its all the same, right?)
11/11/2004 (3:41 pm)
Hmm.. i tried re execing everything but still no dice..heres my renderworld function
void ShowTSCtrl::renderWorld(const RectI &updateRect)
{
GFX->clear( GFXClearTarget, ColorI(0,0,0), 0.0f, 0 );
SceneGraph::renderFog = false;
ShowRenderWorld();
GFX->setClipRect( updateRect );
}and ShowRenderWorld (didn't touch)void ShowRenderWorld()
{
static bool initGlow = false;
if( !initGlow )
{
initGlow = true;
GlowBuffer *glowBuff = static_cast<GlowBuffer*>(Sim::findObject("GlowBufferData"));
if( glowBuff )
{
glowBuff->init();
}
}
gClientSceneGraph->renderScene();
}(its actually TSE.. but its all the same, right?)
Torque 3D Owner Pat Wilson
This is a, "I just dragged myself out of bed and lurched to my computer," answer so take it with a grain of salt. The other problem is that there is some wacked-out state that didn't get set. Try throwing in a dglSetCanonicalState before the render.