WorldViz User Forum  

Go Back   WorldViz User Forum > Vizard

 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #4  
Old 11-01-2016, 06:39 PM
Jeff Jeff is offline
WorldViz Team Member
 
Join Date: Aug 2008
Posts: 2,471
Vizard's built-in functions for determining what objects are in view include the window.pickRect command and window.pick command. You can use the viz.intersect command to see if a line segment intersects objects in the scene.

The yaw rotation of the viewpoint or tracker is not enough information to determine what object(s) are in view. You would also need the object and viewpoint positions to determine this. And if the user is looking up or down the object might be in line with their yaw rotation but not be in view. There is not a built-in function but you could probably use commands from the Python math library or Vizard's vizmat library to help do these calculations on your own. However I'm not sure why you would go this route since the pickRect and pick commands are an easy way to determine what objects are in view.

Last edited by Jeff; 11-01-2016 at 06:42 PM.
Reply With Quote
 


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
Regarding Viconnect viewpoint rajnishv Precision Position Tracker (PPT) 3 03-21-2017 12:03 AM
Regarding viewpoint with vizconfig,addFloatRangeItem&Storing viewpoint in PREFERENCES rajnishv Vizard 0 06-27-2016 04:57 AM
Draw Vector in viewpoint lookat direction Chrissy2009 Vizard 2 05-30-2009 01:50 AM
VRML Viewpoint error bstankie Vizard 1 03-11-2003 03:10 PM


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


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