Questions regarding the Eye tracking data measured in Quest Pro
Hi,
Just started trying out the eye tracking in Quest Pro. As I'm quite new to it, hoping to clear some doubts about how eye tracking works in this headset.
1. Setting the reference frame in OVREyeGaze. From the manual, it says, "In order to drive the eye GameObject properly, this component requires a reference frame in world space orientation. Typically, this reference frame should be set in the forward direction of the eye. It is there to calculate the initial offset of the eye GameObject."
What does set in the forward direction mean? At the moment I've defined it as the left eye anchor, but I've tried a couple of other reference frames (like camera rig, and world space), and I can't see the much difference in the rotation data.
2. I am interested to use the eye tracking to extract gaze locations, i.e. I have a moving ball that is always 1.5m away from the camera and I want to know if the user is tracking the ball as it moves.
So far what I've done is to first define eyeGaze:
OVREyeGaze eyeGaze;
Then under Update(), write an if-statement to extract eye rotation when the ball is moving.
My problem is that getting the rotation doesn't tell me the x and y position of the eye gaze. And using eyeGaze.transform.position.x gives a very small value that seem to be intended for making realistic avatar eye movements rather than where the gaze position is.
So, I tried to use transform.rotation.eulerAngles to see if I can use trigonometry to estimate the gaze location. Realized that the rotation values have very different patterns between quaternion and euler angles. First figure is the quaternion results from eyeGaze.transform.rotation.x which looks correct (judging from where I presented the ball) and the second is eyeGaze.transform.rotation.eulerAngles.x (which looks incorrect).
Very confused with the quaternion to euler angle conversion, tried quaternion.eulerangles etc, but results still remain very different from the original quaternion results.
Any ideas? Perhaps all this conversion and trigonometry is not needed, and gaze location is already provided somewhere?
Please advise.
