PDA

View Full Version : Integrating ASL Eye Tracker


Reese1220
08-14-2011, 08:02 AM
Hello. I am trying to integrate an ASL Eye tracker into our current VR system, with the goal that we will be able to identify specific objects in the rendered 3D world that the user is looking at. The problem lies in mapping the 2D coordinates of the eye tracker output to the 3D Vizard world. I noticed the 'pick' command that returns the object that the mouse cursor is over, but is there a way to control the cursor with the eye tracker output coordinates? Or is there an easier/more effective way to handle this problem? Thanks.

farshizzo
08-16-2011, 06:30 PM
The pick command allows you to pass an optional position argument representing the normalized (0-1) screen coordinates to perform the picking at. If not specified, it defaults to the current mouse position. For example, if you wanted to perform the pick operation in the middle of the screen, you would use the following code:node = viz.MainWindow.pick(pos=(0.5,0.5))