Game Development Community

GuiObjectView not displaying DTS models?

by Brian M · in Torque 3D Professional · 06/23/2011 (6:14 am) · 4 replies

When we upgraded our game to 1.1 Final, the GuiObjectView controls in our GUIs are no longer displaying their DTS files... For example, our character selection screen does not show the character model anymore like it did in 1.1 B3.

Did something change that I'm not aware of in terms of how GuiObjectView controls work?

Recreating a control from scratch using the editor and then assigning a DTS file to it doesn't work either, so it's not just old existing controls that are the problem - seems to be the GuiObjectView in general is not functioning, unless there's something I'm missing.

Is anyone else seeing this problem? We are running the new AFX 2.0 for T3D 1.1 (QR), if that makes a difference.

Ideas?

Thanks!

#1
06/23/2011 (9:05 am)
Check the 1.1 known issues - there's a known bug for this.

Basically, in GuiObjectView::renderWorld around line 506 there's a couple of lines missing:

// Set up pass transforms.     
	renderPass->assignSharedXform( RenderPassManager::View, MatrixF::Identity );  
	renderPass->assignSharedXform( RenderPassManager::Projection, GFX->getProjectionMatrix() );


Those three lines need to be added just AFTER
SceneRenderState state
   (
      gClientSceneGraph,
      SPT_Diffuse,
      SceneCameraState( GFX->getViewport(), frust, GFX->getWorldMatrix(), GFX->getProjectionMatrix() ),
      renderPass,
      false
   );

and just BEFORE
// Set up our TS render state here.   
   TSRenderState rdata;
   rdata.setSceneState( &state );

#2
06/23/2011 (9:09 am)
Awesome, thanks!

Works perfectly now, I'm happy :)
#3
06/23/2011 (10:39 am)
Don't thank me - someone else found it, I just happened to have been fixing this same thing yesterday w/ his fix.
#4
06/23/2011 (10:44 am)
Good timing then :)

Now if only I can get the webkit's "render to texture" working in 1.1 Final, our game port will be complete...