Making some objects "always render"
by Phil Carlisle · in Torque Game Engine · 12/07/2003 (4:34 am) · 3 replies
Hmm, I'm having a little issue that I thought other people might have a solution to.
Ive created some statics, but the statics themselves have a very weird bounding box problem. For some reason the bounds box is "off" from the main mesh.
This means that when theyre drawn, if the bounding box goes off screen, the object gets culled, resulting in visual popping.
Now I can fix the bounds box, or at least attempt to. But what I was wondering was..
Is there a way to force and object to ALWAYS be drawn?
I thought changing the scopeAlways value would do it, but unfortunately it doesnt.
So has anyone seen a possible fix? I guess I can easily add something to force drawing, but I wanted to see if anyone has a simple fix before hacking the code.
Ta.
Ive created some statics, but the statics themselves have a very weird bounding box problem. For some reason the bounds box is "off" from the main mesh.
This means that when theyre drawn, if the bounding box goes off screen, the object gets culled, resulting in visual popping.
Now I can fix the bounds box, or at least attempt to. But what I was wondering was..
Is there a way to force and object to ALWAYS be drawn?
I thought changing the scopeAlways value would do it, but unfortunately it doesnt.
So has anyone seen a possible fix? I guess I can easily add something to force drawing, but I wanted to see if anyone has a simple fix before hacking the code.
Ta.
About the author
Recent Threads
#2
To force rendering, I always set a huge bounding-box. For this case though, you should be able to get the b/box to match the shape. If this is a home baked shape class then make sure that you are setting the b/box on the server as well as on the client otherwise you get discontinuity problems within the editor. A good place is in the unpack when the position changes, reset the worldbox and set the render transform.
If this is in the stock TSStatic then it seems like a shape problem.
- Melv.
12/07/2003 (2:06 pm)
Phil,To force rendering, I always set a huge bounding-box. For this case though, you should be able to get the b/box to match the shape. If this is a home baked shape class then make sure that you are setting the b/box on the server as well as on the client otherwise you get discontinuity problems within the editor. A good place is in the unpack when the position changes, reset the worldbox and set the render transform.
If this is in the stock TSStatic then it seems like a shape problem.
- Melv.
#3
Anyway, its not a major issue as yet :) got bigger fish to fry.
Phil.
12/07/2003 (2:27 pm)
Hmm, yeah. Its just bog standard tsshape. I guess its probably a model problem. I'll have a look and setup the bounds box for my other class (star rendering class).Anyway, its not a major issue as yet :) got bigger fish to fry.
Phil.
Associate Kyle Carter