WorldViz User Forum

WorldViz User Forum (https://forum.worldviz.com/index.php)
-   Vizard (https://forum.worldviz.com/forumdisplay.php?f=17)
-   -   viz.pick() with multiple windows (https://forum.worldviz.com/showthread.php?t=5963)

chris2307 02-20-2017 10:13 AM

viz.pick() with multiple windows
 
I have a three-screen application. I've created three windows (leftView, centreView and rightView) which is displayed on each screen.

I would like to count the number of objects in the scene at any given time. In the past, I have done this by looping through the screen and using viz.pick() to determine the number of unique objects.

I tried to get this feature working in my three-screen application. However, I believe it is only using the main viewpoint and not the three different windows because the amount of objects I am getting is the same as I would see if it was a single-screen application.

How can I do this differently so I can count the number of unique objects in view? Am I limited to just the main viewpoint when using viz.pick()

chris2307 02-21-2017 06:34 AM

I should also add that I will be eye-tracking across three screens. I have my own algorithms which allows me to achieve this. However, I have always used viz.pick() to return the 3D information at any gaze point on the screen.

How can I achieve this when I am using three-screens displaying three windows?

Jeff 02-21-2017 09:28 PM

The window.pick command performs a pick operation on a sub-window.

Also, perhaps the window.isCulled command will be helpful. That returns whether an object is culled by the windows view frustum. However, an object may not be visible because it's obscured by another object and still be in the view frustum.

chris2307 02-22-2017 02:44 AM

That is fantastic, thank you Jeff. I'm a bit annoyed I didn't pick up on that in the documentation.

I'd thought about using is.culled() function before for counting the number of objects in a scene but I do have clutter (and therefore, a lot of obscured objects) which, unfortunately, means I must use the more manual method outlined in my first post. Fortunately, I do not need a super-fast, efficient way of counting objects in a scene. :)


All times are GMT -7. The time now is 02:01 PM.

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