Game Development Community

Is renderable?

by Gustavo Boni · in Torque Game Builder · 02/01/2007 (12:26 pm) · 5 replies

Hi,

Is there an way to know if an object is being renderable? I mean, if its visible for the camera.

Thanks

#1
02/01/2007 (4:58 pm)
Do you mean you want to find out whether an object has it's setVisible true or false? If so, you could use
getVisible() which returns true if it's shown and false if it's invisible.

hth
#2
02/01/2007 (5:09 pm)
@Apurva: what i mean is know if the object is in the bounds of the camera, not if its invisible or not.
#3
02/01/2007 (10:07 pm)
It is simple. Get the camera area in world coordinates and check a position of interested object. Simple vector math, nothing more.
#4
02/02/2007 (1:46 am)
EDIT ** OOPS !!!!! wrong forum . Sorry about that .

;P
Aun.
#5
02/02/2007 (3:53 am)
@Igor: Thanks! I was just supposing there was a function in TGB for that, just to make sure and dont reinvent the wheel. =)

Thanks.