WorldViz User Forum  

Go Back   WorldViz User Forum > Vizard

Thread Tools Rate Thread Display Modes
Old 07-19-2018, 04:25 AM
VizMars VizMars is offline
Join Date: Jan 2016
Posts: 39
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:
line = viz.MainWindow.screenToWorld([pixel_x,pixel_y], eye = viz.BOTH_EYE, mode = viz.WINDOW_PIXELS)
print line.length
Reply With Quote
Old 07-25-2018, 09:04 PM
Jeff Jeff is offline
WorldViz Team Member
Join Date: Aug 2008
Posts: 2,397
Is the line length you want to calculate the distance from the user's head to a specific point on the physical wall?
Reply With Quote
Old 08-05-2018, 03:22 AM
VizMars VizMars is offline
Join Date: Jan 2016
Posts: 39
I want to calculate depth information for each screen pixel in a way that for given 2d screen coordinates (x,y) I get the distance from the user's head to the point in the 3d scene that corresponds to the given 2d screen coordinates. Ultimately, the goal is to construct a "depth map" for a scene given the user's head position and gaze direction.
Reply With Quote

cave; 3d

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

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
vizcave coordinates Rennschu Vizard 5 11-12-2015 04:24 AM
Example code for VizCave stefs Vizard 6 01-08-2013 11:43 AM
Using vizcave without tracking pcatalano Vizard 3 01-08-2013 10:17 AM
3-D image in Powerwall using OpenGL c++ program blessonisaac Plug-in development 0 02-01-2012 09:22 AM
Head tracking, Flock of Birds and vizcave; how do I connect them? Arandia Vizard 2 08-26-2009 04:59 PM

All times are GMT -7. The time now is 10:23 AM.

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