WorldViz User Forum  

Go Back   WorldViz User Forum > Vizard

Reply
 
Thread Tools Rate Thread Display Modes
  #1  
Old 02-20-2017, 11:13 AM
chris2307 chris2307 is offline
Member
 
Join Date: Nov 2013
Posts: 36
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()
Reply With Quote
  #2  
Old 02-21-2017, 07:34 AM
chris2307 chris2307 is offline
Member
 
Join Date: Nov 2013
Posts: 36
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?
Reply With Quote
  #3  
Old 02-21-2017, 10:28 PM
Jeff Jeff is offline
WorldViz Team Member
 
Join Date: Aug 2008
Posts: 2,471
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.
Reply With Quote
  #4  
Old 02-22-2017, 03:44 AM
chris2307 chris2307 is offline
Member
 
Join Date: Nov 2013
Posts: 36
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.
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
eMagin Z800 Windows 7 64 bit problem kartoffelsalat Vizard 3 04-05-2013 12:45 PM
EventClass used with multiple joysticks tokola Vizard 2 11-30-2012 01:51 PM
Spatialized sound in Windows 7 GiudiceLab Vizard 3 01-27-2010 08:35 AM
addText problems with 3 windows Ravi Vizard 1 08-25-2008 06:51 PM
Picking in multiple windows FalconNL Vizard 1 07-02-2007 10:45 AM


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


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