FxGuiSnooper only showing the skybox
by Justin Mosiman · in Torque Game Engine Advanced · 02/25/2008 (8:19 pm) · 2 replies
Hello,
I recently implemented the fxGuiSnooper resource into TGEA, and it is working except it only renders the skybox. I am thinking that it has to do with the renderWorld code, because the resource was originally programmed for TGE and I had to change it. I changed it to:
Another problem area could be fxGuiSnooper::onRender, so I'll paste that:
What I am getting is shown in this image. The image on the left is the player that is selected and the image on the right is what the fxGuiSnooper shows. I added black in the background of it so you could tell where the terrain should be.
Does anybody see anything wrong with my changes?
Edit: In the console, I am getting a bunch of Atlas errors:
Is there any way around this?
I recently implemented the fxGuiSnooper resource into TGEA, and it is working except it only renders the skybox. I am thinking that it has to do with the renderWorld code, because the resource was originally programmed for TGE and I had to change it. I changed it to:
void fxGuiSnooper::renderWorld(const RectI & updateRect)
{
GFX->setZEnable( true );
GFX->setZFunc( GFXCmpLessEqual );
GFX->setCullMode( GFXCullNone );
GFX->setBaseRenderState();
gClientSceneGraph->renderScene();
GFX->setZEnable( false );
}Another problem area could be fxGuiSnooper::onRender, so I'll paste that:
void fxGuiSnooper::onRender(Point2I offset, const RectI &updateRect)
{
// Call Parent Render.
Parent::onRender(offset, updateRect);
// Set Clipping Rectangle to GUI Bounds.
GFX->setClipRect(updateRect);
// Do we have an attached Object?
if(!mAttachedObject){
// Return Error.
return;
}
}What I am getting is shown in this image. The image on the left is the player that is selected and the image on the right is what the fxGuiSnooper shows. I added black in the background of it so you could tell where the terrain should be.
Does anybody see anything wrong with my changes?
Edit: In the console, I am getting a bunch of Atlas errors:
Quote:
AtlasResourceTOC::cbOnChunkReadComplete - discarding cancelled chunk (2 @ 3, 0)!
AtlasResourceTOC::cbOnChunkReadComplete - discarding cancelled chunk (2 @ 1, 3)!
AtlasResourceTOC::cbOnChunkReadComplete - discarding cancelled chunk (2 @ 2, 0)!
AtlasResourceTOC::cbOnChunkReadComplete - discarding cancelled chunk (2 @ 1, 2)!
AtlasResourceTOC::cbOnChunkReadComplete - discarding cancelled chunk (2 @ 3, 1)!
Is there any way around this?
Torque Owner Shaderman