Home Forums Unity SDK Eye Tracking Data

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
  • #12212
    Johnson Olayiwola

    Hello everyone,
    So I just integrated the Vive pro eye in unity, but I don’t know how to get the raw data (gaze data). Am I installing another software to output the raw data? Thanks.

    Grant [Tobii]

    Hi @johnolap and thanks for your query. You can get access to the gaze data from the eye tracker device via the GazeRay object.

    The GazeRay is a Struct containing the gaze ray for left and right eye composed of: Origin – The point in world space for the origin of the gaze ray & Direction – The normalized direction vector in world space for the direction of the gaze ray.

    Please find below a simple code snippet to use this object

    private void Update () 
        var gazeRay = TobiiXR.EyeTrackingData.GazeRay;
        // Check if gaze ray is valid
            // Eye Origin is in World Space
            var rayOrigin = TobiiXR.EyeTrackingData.GazeRay.Origin;
            // Eye Direction is a normalized direction vector in World Space
            var rayDirection = TobiiXR.EyeTrackingData.GazeRay.Direction;

    You can find further details about this @ https://vr.tobii.com/sdk/develop/unity/documentation/api-reference/

    Please do let us know if we can provide any further information. Best Wishes.


    Hi. Doesn’t tobii sdk support left right gaze output anymore? they are accessible in TobiiPro.SDK.Unity (with htc vive devkit) but do exist in TobiiXR.
    Is it possible to use TobiiPro.SDK.Unity with HTC vive pro eye?

    Grant [Tobii]

    Hi @dmardanbeigi, no I’m afraid that individual eye movement is only exposed within the Tobii Pro SDK as this feature is something more tended to be used for analysis or research purposes and does not generally have an impact on interaction applications which is the focus of the Tobii Tech range of trackers and associated SDK’s. Our apologies for any inconvenience.

    However, should you wish to use the HTC Vive Pro Eye with the Tobii Pro SDK Unity Bindings, this should be possible and you can view the getting started guide @ http://developer.tobiipro.com/unity/unity-getting-started.html

    However, please bear in mind that this is part of the Tobii Pro business department who has their own dedicated support team to deal with the Pro SDK.

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.