WorldViz User Forum

WorldViz User Forum (https://forum.worldviz.com/index.php)
-   Vizard (https://forum.worldviz.com/forumdisplay.php?f=17)
-   -   Is an object in the user's field of view? (https://forum.worldviz.com/showthread.php?t=2775)

4711 06-08-2010 08:05 AM

Is an object in the user's field of view?
 
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 .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 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!


All times are GMT -7. The time now is 03:26 PM.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Copyright 2002-2023 WorldViz LLC