View Single Post
  #1  
Old 07-19-2018, 04:25 AM
VizMars VizMars is offline
Member
 
Join Date: Jan 2016
Posts: 40
Using <window>.screenToWorld within vizcave powerwall

How can one use the <window>.screenToWorld command within a vizcave powerwall?
Specifically, how can one get the length of the line passing through the given screen coordinates (in pixel units) with the begin point of the line being the users head position (center of the eyes)?

Unfortunately, the following code seems to be incorrect:
Code:
line = viz.MainWindow.screenToWorld([pixel_x,pixel_y], eye = viz.BOTH_EYE, mode = viz.WINDOW_PIXELS)
print line.length
Reply With Quote