Game Development Community

Hiding Objects

by Necrode · in Torque 3D Professional · 11/26/2009 (10:38 pm) · 2 replies

Hello,

I am experimenting with optimizations. I am looking for a way to stop a TSStatic shape and/or SimGroups from rendering- like a myObject.visible(false). What I'm looking for is similar to what zones do (selective rendering), but I want to be more particular about it by telling individual objects or groups to render or not. Any suggestions?

Thanks!

About the author

They locked me in here with a computer, and said I don't get to leave until I've completed a computer game.


#1
11/27/2009 (4:08 am)
I think Hidden makes it not rendered on client. %obj.hidden(sec, true). then a check if %obj.isHidden() returns true or false. Don't hide things that can attack (like AI) as they cause the game to crash. Cloaking is broken at the moment.

If I was you and I wanted to improve the performance of the client side computer I would try looking at how hidden works on ShapeBased objects and seeing if you can add that into TSStatic if it doesn't already have it.

For a wise man can modify shapeBase for his means while a fool can eject shell castings from the belly of his dragon.
~KillerBunny
#2
11/27/2009 (9:42 am)
Great, thanks!