WorldViz User Forum

WorldViz User Forum (https://forum.worldviz.com/index.php)
-   Vizard (https://forum.worldviz.com/forumdisplay.php?f=17)
-   -   check if fixation is on target (https://forum.worldviz.com/showthread.php?t=6075)

VizMars 11-03-2017 06:48 AM

check if fixation is on target
 
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 command and pass in a screen position to determine the object that intersects it. This example script maybe helpful.


All times are GMT -7. The time now is 04:44 AM.

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