Jump to content

Recommended Posts

Posted

I am trying to get the focus of the focussed point. Therefore I have multiple ideas:

 

1) Calculate the intersection of the line consisting out of data.verbose_data.left.gaze_origin_mm and data.verbose_data.left.gaze_direction_normalized (left eye line) as well as  data.verbose_data.right.gaze_origin_mm and data.verbose_data.right.gaze_direction_normalized (right eye line). Unfortunately, this doesn't return an intersection point because they do not cross each other.

 

2) I saw that Tobii XR SDK offers a function "GetEyeTrackingData" (https://vr.tobii.com/sdk/develop/unity/documentation/usage-examples/). Unfortunately the class TobiiXR has no function GetEyeTrackingData and therefore I am not able to use it.

 

Does anyone has any idea/ideas?

Posted

Did you see the Focus example (dart boards)? Check out the Focus call back on the dartboard object's script as well as the script on it's parent.

Posted

@Dario Yes I already looked into this example. But within this example, I have to "define" which objects can be focussed.

But I just want to get the point of focus, indepent if a person focussed an object or just watch into the air.

Therefore I thought about the following idea:

I can receive the eye data via SRanipal_Eye_API.GetEyeData(ref data) and therefore have the eye data of the left, right eyes as well as the combined data.

So in the next step I am calculating the focussed point by calculating the minimal distance between the two lines of the left and right eye. If the minimal distance is 0, they have an intersection point:

lineLeft= gazeOrigin_left + l * normalizedGazeDirectionVector_left

lineRight= gazeOrigin_right + k * normalizedGazeDirectionVector_right

 

where:

  • gazeOrigin_left == data.verbose_data.left.gaze_origin_mm
  • normalizedGazeDirectionVector_left_left ==  data.verbose_data.left.gaze_direction_normalized
  • gazeOrigin_right == data.verbose_data.right.gaze_origin_mm
  • normalizedGazeDirectionVector_right ==  data.verbose_data.right.gaze_direction_normalized

 

Unfortunately the two lines do not have an intersection point, but I do not understand why.

 

Anyone has any ideas why there is no intersection point? 

Gaze.png.8da735828c565f376b6c44283d41abe3.thumb.png.dd938c0513896895e573375124d4e90b.png@Corvus

  • 10 months later...
  • 2 weeks later...
Posted

@Annabell @killerbee @AstroVR 

If someone is not focusing on an object (i.e. "staring off into the air") then each eye's gaze vector will generally not intersect. Even with perfect tracking quality, the eyes may be looking parallel at a far enough away point and parallel lines do not intersect.

Quote

When looking into the distance, the eyes diverge until parallel, effectively fixating the same point at infinity (or very far away).

https://en.wikipedia.org/wiki/Vergence

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...