Jump to content

fayre

Verified Members
  • Posts

    3
  • Joined

  • Last visited

Posts posted by fayre

  1. Thank you @ScottHerz and @jason_lu for sharing your code. I ended up with a similar version but Unity keeps freezing and crashing after running the code, both my version and your versions. Did you experience similar issues? Everything works fine though when I access the eye data in the main thread, so I thought that this might be caused by race conditions or the thread not being closed correctly, but I can't figure out a workaround.

  2. On 4/8/2020 at 3:24 PM, Djangi said:

    Thanks @corvus for your input. Maybe this is because of lack of experience but I actually had a pretty hard time to access the wanted parameters since you can't access the wanted directly. It would be nice to have some code examples in the documentation.
    I did the following:

    
    private void Update()
    {
        SRanipal_Eye_API.GetEyeData(ref data);
        Debug.Log("left eye pupil: " + data.verbose_data.left.pupil_diameter_mm);
        Debug.Log("right eye pupil: " + data.verbose_data.right.pupil_diameter_mm);
    }

    I'll also try to get this running at 120hz with the example code from the thread that you shared with me previously.

    Btw, is there also an online reference to the documentation?

    Thanks @Djangi, that actualy helped me a lot in getting pupil data. I was wondering if you managed to receive pupil data more often than every frame, e.g. from another thread? Is that even possible @Corvus?

    • Like 2
×
×
  • Create New...