Home > Mobile >  Understanding GazeProvider GazeDirection Vector3
Understanding GazeProvider GazeDirection Vector3

Time:10-02

I am working on taking two HoloLens 2 users' gaze data, and comparing them to verify they are tracking the same hologram's trajectory. I have access to the GazeProvider data, no issues there. However, the GazeProvider.GazeDirection data throws me. For instance, I've referenced the API at:

GazeDirection API Data

But, I dont really understand what the Vector 3 it returns means. Are the X,Y,Z relative motion? If not, can I use Vector3.angle to compute relative motion vectors between two points?

CodePudding user response:

The vector returned by the GazeDirection property leveraging three coordinate parameters to point the direction that the user's eyes are looking towards. The origin is located between the user's eyes. The Vector3.angle method you mentioned can help you compute the angle between the two eye gaze directions.

CodePudding user response:

I have just started to dig into gaze from a different scenario, but one suggestion I would make is that you also take a look at the gaze origin api.

Each user occupies a different location in space and is gazing into the world in a "gaze direction" from their location in space which would be their "gaze origin".

Basically you need to reconcile the different spatial coordinate systems.

  • Related