Home › Forums › Legacy SDKs › Gaze angles

- This topic has 3 replies, 3 voices, and was last updated 7 years, 11 months ago by Dieter Merkel.

- AuthorPosts
- 14/07/2014 at 10:12 #1364Dieter MerkelParticipant
Hi,

i’m want to get the angles of my gaze point. I’m trying to calculate the angles with the help of the eye position and the eye gaze point but it didn’t work right now.

Is there a function which i could use to read the angles? Or can anyone help me with the math stuff?

PS: i’m working with Unity3D

Best

Dieter15/07/2014 at 07:52 #1369AndersParticipantHi Dieter, just to make sure: you’re using the EyeX SDK for Unity, right?

If you do I’m sorry to say that there is no straightforward way to find the angles just yet. You would need the eye positions and the gaze point, both in space coordinates, but currently there is only the eye positions. We’re planning to provide the gaze point in space too, so if you have the patience it should be available in a few weeks’ time.

If you’d rather get started right now you can download the EyeX SDK for .NET and look at how to read engine states. You can use that to find the screen geometry and calculate the gaze point in space yourself, and from there it’s relatively easy to compute the angles.

25/08/2014 at 09:14 #1541Robert [Tobii]ParticipantUpdate: In EyeX SDK for Unity 0.24 that was released last week, there is an example of how to get the gaze point in the same 3D coordinate system as the eye position coordinates.

You can use this example together with Vector3.Angle to calculate the angle between the gaze vector(s) and the normal vector of the screen.

10/09/2014 at 08:31 #1628Dieter MerkelParticipantGreat News, thank you! 🙂

- AuthorPosts

- You must be logged in to reply to this topic.