Game Development Community

T2DShape3D disappear

by David Horn · in Torque X 2D · 06/24/2010 (7:20 am) · 3 replies

I'm having an issue with the T2DShape3D disappearing.

When the camera pans away, and the T2DShape3D is just slightle off the screen (halfway or more), it immediately becomes invisible and stops rendering. When the entire shape comes back on the camera, it "pops" back on.

I'm assuming this is just a preference somewhere in the source code to hide it if any pat of it is not fully on-camera, but does anyone know how or if I could turn this property off? Even if part of the shape is on camera, I still want to render the shape.

Thanks!

#1
06/24/2010 (9:08 am)
I'm not aware of any preferences that toggle that behaviour. Sounds like that one might take some digging I'm afraid.
#2
06/24/2010 (9:11 am)
I have not tried this but it is worth trying...
Make the bounds box of the model 4 times the size it is now. Hopefully this is done like the other engines where; 'if the bounds box is visible then the model is visible.
#3
06/26/2010 (8:48 pm)
I did try that, it didn't do anything.

I think it migh tbe actually with all shapes.

It basicaaly hides the shape as soos ans the 0,0 point of the object goes off the camera view.

Any idea where that logic might be?


*EDIT
Actually I found a workaround...
I increased the sceneRect in the _RenderObjects function inside the T2DSceneGraph.cs. It basically renderes everything.

I just wonder if there is any way that when Torque is doing the query inside SceneContainer.cs to decide what to render, if I can just make it always render T2DShape3D objects?