-
Posts
3 -
Joined
-
Last visited
Content Type
Profiles
Forums
Blogs
Downloads
Posts posted by fayre
-
-
I am currently having the same issue. Verbose data seems to be only collectable in the main thread and therefore in the update function. And that's not the stated 120Hz... hoping to find a solution for this though
-
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?
- 2
Getting VerboseData at the fastest rate possible.
in VIVE Eye and Facial Tracking SDK
Posted
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.