PDA

View Full Version : Is an object in the user's field of view?


4711
06-08-2010, 08:05 AM
Hi all,

is there a simple method to figure out whether a certain 3dnode object is currently visible for the user or not? I don't want to know if the object is visible in general (thus not <node3d>.getVisible), but if it's currently within the users field of view.

Any ideas are appreciated!
:)

Jeff
06-08-2010, 11:43 AM
You can use window.isCulled (http://www.worldviz.com/vizhelp/commands/window/isculled.htm) to check whether an object is in the view frustum. However, this will not tell you if the object is occluded.

4711
06-09-2010, 02:16 AM
Jeff, this is exactly what I was looking for. Thanks a lot!