Jump to content
 
Sign in to follow this  
WorshipCookies

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!

Share this post


Link to post
Share on other sites

Please sign in to comment

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

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×
×
  • Create New...