GuiObjectView not in 1.5
by Terence Tan · in Torque Game Engine · 10/27/2006 (2:48 am) · 2 replies
I went ahead and integrated our code base with 1.5. Got most of the major features re-integrated in about 4 hours or so. It seems "GuiObjectView" has been taken out (It was originally in the TLK 1.4 integration).
It isn't a huge thing yet. I copied over the files from the integrated version of TLK 1.4 and tried to get it at least compiling with the engine.
But basically ran into problems with these 2 sections of code:
and
Haven't had time to figure out what to do about it, but I am posting it up here just incase anybody with heavy GuiObjectView dependencies going to or thinking about a 1.5 port. It not critical for me right now, but I will need to fix it soon (I was using it to prototype the dialog system we might have tried with talking heads).
It isn't a huge thing yet. I copied over the files from the integrated version of TLK 1.4 and tried to get it at least compiling with the engine.
But basically ran into problems with these 2 sections of code:
//----------------------------------------------- // Lighting Pack code block //----------------------------------------------- glEnable(GL_LIGHTING); LightInfo light; light.mType = LightInfo::Ambient; light.mDirection = sgLightDirection; light.mColor = sgLightColor; light.mAmbient = sgAmbientColor; sgLightManager.setMaxGLLights(1); sgLightManager.addLight(&light); sgLightManager.installGLLights(Box3F(-1, -1, -1, 1, 1, 1)); //----------------------------------------------- // Lighting Pack code block //-----------------------------------------------
and
//----------------------------------------------- // Lighting Pack code block //----------------------------------------------- sgLightManager.removeLight(&light); sgLightManager.uninstallGLLights(); glMaterialfv(GL_FRONT_AND_BACK, GL_AMBIENT, (const F32 *)gOpenGLMaterialAmbientColor); glMaterialfv(GL_FRONT_AND_BACK, GL_DIFFUSE, (const F32 *)gOpenGLMaterialDiffuseColor); glDisable(GL_LIGHTING); //----------------------------------------------- // Lighting Pack code block //-----------------------------------------------
Haven't had time to figure out what to do about it, but I am posting it up here just incase anybody with heavy GuiObjectView dependencies going to or thinking about a 1.5 port. It not critical for me right now, but I will need to fix it soon (I was using it to prototype the dialog system we might have tried with talking heads).
About the author
#2
The Light Manager in TGE/TSE changed dramatically (was completely replaced). You should be able to use the new Light Manager in a similar way, but the method names used need updated.
For instance addLight was replaced with sgRegisterGlobalLight, installGLLights with SetupLights, ...
10/28/2006 (10:38 pm)
People were having problems with the core GuiObjectView, most related to sequences not loading properly. Not sure if there are problems with the control, we left it out of the build. I'm hoping someone is able to resolve these issues, because the control is a very cool resource.The Light Manager in TGE/TSE changed dramatically (was completely replaced). You should be able to use the new Light Manager in a similar way, but the method names used need updated.
For instance addLight was replaced with sgRegisterGlobalLight, installGLLights with SetupLights, ...
Torque Owner Stefan Lundmark