Jump to content

Gaze Tracking On UI WorldSpace in Unity


Recommended Posts

Hi everyone,

 

I am trying to make a simple UI Interface where I have a small cursor follow the user's gaze on a World Canvas following the camera, but I am having some trouble pinning down the exact coordinates / directions to do this. I am using the following to obtain both origin and direction of combined eye gaze:

verbose_data.combined.eye_data.gaze_origin_mm * 0.001f;

verbose_data.combined.eye_data.gaze_direction_normalized;

 

For other purposes I am also recording at the full 120Hz offered by the Tobii tracker, so ideally I would like to work at the same sampling rate (but I will smooth the position every game frame).

 

Do I need to make some sort of conversion from the verbose_data structure? I am currently lost on how to solve this, any help would be greatly appreciated!

Link to comment
Share on other sites

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...