Jump to content

maple

Verified Members
  • Posts

    4
  • Joined

  • Last visited

Posts posted by maple

  1. On 10/9/2019 at 7:56 PM, Daniel_Y said:

    There is callback mode supported in 120 FPS now after check "Enable Eye Data Callback" as the figure shown below; And, then register a callback function by SRanipal_Eye_v2.WrapperRegisterEyeDataCallback(). Could refer to its usage in sample included in SDK.

     

     

    callback.png

    I chosed according to this, but my version is SRanipal_GazeRaySample.cs.Using this i could get data in 90HZ,if i use SRanipal_GazeRaySample_v2.cs,i just got data in 50HZ.Why does it lead to such a structure?

    Thanks in advance!

  2. 've learned about eye movement data from the SDK, but I don't know anything about getting these data. I hope you can help me. Thank you very much!

    Here's some code for eye movement data:

    public struct SingleEyeData 

              {
    
                    /** The bits containing all validity for this frame.*/
    
                    public System.UInt64 eye_data_validata_bit_mask;
    
                    /** The point in the eye from which the gaze ray originates in meter miles.(right-handed coordinate system)*/
    
                    public Vector3 gaze_origin_mm;
    
                    /** The normalized gaze direction of the eye in [0,1].(right-handed coordinate system)*/
    
                    public Vector3 gaze_direction_normalized;
    
                    /** The diameter of the pupil in meter miles*/
    
                    public float pupil_diameter_mm;
    
                    /** A value representing how open the eye is.*/
    
                    public float eye_openness;
    
                    /** The normalized position of a pupil in [0,1]*/
    
                    public Vector2 pupil_position_in_sensor_area;
    
                    public bool GetValidity(SingleEyeDataValidity validity)
    
                    {
    
                        return (eye_data_validata_bit_mask & (ulong)(1 << (int)validity)) > 0;
    
                    }
    
                }

    @Corvus
     

     

     

  3.  Hello @Corvus,

    How to get eye movement data through the SDK?I use the HTC Pro instrument. In the SDK, i found some eye movement data code, but i want to know how to extract it.thank you so much!

    public struct SingleEyeData

                {

                    /** The bits containing all validity for this frame.*/

                    public System.UInt64 eye_data_validata_bit_mask;

                    /** The point in the eye from which the gaze ray originates in meter miles.(right-handed coordinate system)*/

                    public Vector3 gaze_origin_mm;

                    /** The normalized gaze direction of the eye in [0,1].(right-handed coordinate system)*/

                    public Vector3 gaze_direction_normalized;

                    /** The diameter of the pupil in meter miles*/

                    public float pupil_diameter_mm;

                    /** A value representing how open the eye is.*/

                    public float eye_openness;

                    /** The normalized position of a pupil in [0,1]*/

                    public Vector2 pupil_position_in_sensor_area;

                    public bool GetValidity(SingleEyeDataValidity validity)

                    {

                        return (eye_data_validata_bit_mask & (ulong)(1 << (int)validity)) > 0;

                    }

                }
     

×
×
  • Create New...