View Full Version : viz.pick() with multiple windows

02-20-2017, 10:13 AM
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()

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?

02-21-2017, 09:28 PM
The window.pick (http://docs.worldviz.com/vizard/#commands/window/pick.htm) command performs a pick operation on a sub-window.

Also, perhaps the window.isCulled (http://docs.worldviz.com/vizard/#commands/window/isCulled.htm) 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.

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. :)