PDA

View Full Version : check if fixation is on target


VizMars
11-03-2017, 06:48 AM
I want to check whether a (gaze) fixation (i.e. a position) is on an object or not in a 3d and a 2d scenario. I think I need the corresponding object coordinates to do this.

What is the best way to get not only the 3d position of an object and it's corresponding 2d screen coordinates but also the coordinates of the space that this object occupies in 3d and 2d?

Jeff
11-14-2017, 10:20 PM
Use the viz.pick (http://docs.worldviz.com/vizard/#commands/viz/pick.htm) command and pass in a screen position to determine the object that intersects it. This (http://forum.worldviz.com/showpost.php?p=18233&postcount=4) example script maybe helpful.