Jump to content

VIVE eye tracking SDK makes unity project crashing


Recommended Posts

Hello, I tried to follow the instruction for "'HTC VIVE Pro Eye Development Guide'' (https://developer.tobii.com/xr/develop/unity/getting-started/vive-pro-eye/) to use the eye tracking features of the headset in Unity, but once I import the VIVE Sranipal SDK unity package in my project and I try to run the given sample scene to test it, my unity project crashes without giving me errors. It crashes no matter which unity version I use, no matter which HTC Vive pro eye headset I use (I tried with two different ones) and no matter which computer I use. It is weird because when I tried the first few times it was working, then after trying to extracting the eye data it started not working anymore. The eye tracking seems to work fine outside unity.

Did anyone else experienced the same problem and find a solution to it?

Thanks!

Link to comment
Share on other sites

On 10/10/2022 at 5:32 AM, CormacGeorge said:

Same problem here, let me know if you ever found a solution.

I've found the problem and I could make my Unity project (2020.3.40f1) work doing this:

I think the problem is the newer version of the VIVE Eye and Facial Tracking SDK 1.3.6.6

Hope this solution works for you!

  • Like 3
Link to comment
Share on other sites

23 hours ago, lbee said:

Hi Kate,

I'm having the same problem. Where did you get the "OpenXR" plugin? Is this a Vive plugin or another? I can't tell if Vive OpenXR plugin is the same as Vive Wave plugin, etc.

Thanks!

No, they're not the same.

Anyway, you can download OpenXR Plugin from Package Manager --> Unity Registry

Link to comment
Share on other sites

On 10/11/2022 at 10:14 AM, Kate.kate said:

I've found the problem and I could make my Unity project (2020.3.40f1) work doing this:

I think the problem is the newer version of the VIVE Eye and Facial Tracking SDK 1.3.6.6

Hope this solution works for you!

I should add that in order to collect eye data I had to download an older version of VIVE SRanipal (1.3.2.0), which I couldn't find online but I was lucky enough to know someone using it.

Also, when you try to install the SRanipal you might experience the 1001 error. Follow the instructions @kwig provides, they worked for me:

Link to comment
Share on other sites

  • 1 month later...

Runtime service does not install properly, Unity SDK is broken, sample scenes in Unity are broken, Vive Developers do not reply to user issues...

Is this hardware and sdk supported by Vive anymore?  

Link to comment
Share on other sites

  • 2 months later...

I had the same issues. Either Unity was crashing or the DLL was not found. 

 

Here is my solution:
Tested with Unity 2022.2.3f1 / Unity 2020.3.44f1, VIVE OpenXR Plugin - Windows 1.0.10, SRanipal Runtime 1.3.5.5 and SRanipal SDK 1.3.3.0

  • The current SRanipal Runtime (1.3.5.5) should already be installed on your PC after completing the PC VR HEADSET SETUP https://www.vive.com/us/setup/pc-vr/
  • The current SRanipal SDK (1.3.6.8) makes Unity crash. Get version 1.3.3.0 from the archive: https://developer.vive.com/resources/vive-sense/eye-and-facial-tracking-sdk/download/archive/1_3_3_0/
  • If not done yet, install the XR Plugin Management via Edit > Project Settings > XR Plugin Management.
  • Add the Vive Package Repository for the Package Manager: Edit > Project Settings > Package Manager > Scoped Registries
  • Open Package Manager, select My Registries in top row and install VIVE OpenXR Plugin - Windows.
  • A pop-up appears and requests the restart of the editor to enable the new input system. Click Yes and wait for the restart to be completed.
  • Open XR Plugin Management via Edit > Project Settings > XR Plugin Management.
    • Activate OpenXR and Vive OpenXR feature group.
  • Import SRanipal SDK: Assets > Import Package > Custom Package...
  • Open OpenXR settings via Edit > Project Settings > XR Plugin Management > OpenXR
    • Unselect Facial Tracking, Hand Tracking and Scene Understanding.
  • Close and re-open Unity! Without the restart, the DLL won't be found. (Took me hours to figure this out.)
  • Test if everything works by dragging the SRanipal Eye Framework prefab in your Scene and running the scene.

I followed this tutorial for extracting the eye data and adapted the script to my needs, works perfectly: https://forum.htc.com/topic/9341-vive-eye-tracking-at-120hz/

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...