Home Forums XR Discussions Eye tracking data collection.

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #22147
    Haram Choi
    Participant

    Hello,
    I am conducting research to obtain user’s eye information in virtual reality using eye tracking technology.

    Can you tell me what code I need to use to get the eye tracking data in the link below?
    https://vr.tobii.com/sdk/explore/commercial-analytics/

    I want to get data about total gaze time (GT) and number of times being focused as text. If you can’t extract the data, it’s okay to check it in Unity.

    And I’m using HTC’s Vive pro eye.
    Can I use the Vive pro eye on the Tobii Ocumen?
    Can I inquire about the license fee?

    Thank you for your quick reply.
    Sincerely yours, Haram

    #22158
    Grant [Tobii]
    Keymaster

    Hi @haramchoi, you can use the Tobii XR SDK freely with the HTC Vive pro eye for which we provide instructions @
    https://vr.tobii.com/sdk/develop/unity/getting-started/vive-pro-eye/

    I’m afraid Ocumen does not support the HTV Vive Pro Eye, but you have the G20M module included with the XR SDK that should give you the dwell time, etc.

    Check out the included samples and let us know how you get on. Best Wishes.

    #22160
    Haram Choi
    Participant

    Thanks for the reply.

    I’ve used SRanipal, but I’m new to Tobii XR SDK. So, unfortunately, I am very ignorant about this part.

    May I know what function in G2OM library should be used to measure dwell, etc.?
    G2OM’s scripts include G2OM.cs / G2OM_ColliderDataProvider.cs / G2OM_Context.cs / G2OM_ObjectDistinguisher.cs / G2OM_ObjectFinger.cs.

    It would be appreciated if you could tell us which of these should you refer to to know indicators such as Fixation Duration (dwell).

    I will be looking forward your reply.
    Best regards, Haram.

    • This reply was modified 1 month, 1 week ago by Haram Choi.
    #22162
    Grant [Tobii]
    Keymaster

    Hi @haramchoi, you could use code along the following lines to get dwell time:

    using System.Collections;
    using System.Collections.Generic;
    using UnityEngine;
    using Tobii.G2OM;
    
    public class HighlightAtGaze : MonoBehaviour , IGazeFocusable
    {
        private float _totalGazeTime;
        private bool _hasFocus;
        
        public void GazeFocusChanged(bool hasFocus)
        {
            _hasFocus = hasFocus;
            if (!hasFocus)
            {
                Debug.LogWarning($"{gameObject.name} : {_totalGazeTime}");
            }
    
        }
    
        // Start is called before the first frame update
        void Start()
        {
            
        }
    
        // Update is called once per frame
        void Update()
        {
            if (_hasFocus)
                {
                    _totalGazeTime += Time.deltaTime;
                }
        }
    }

    Let me know how it goes. Best Wishes.

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