Home Forums Unity SDK Error: type or namespace 'ViveSR' could not be found

Viewing 15 posts - 1 through 15 (of 17 total)
  • Author
    Posts
  • #14170
    connork1999
    Participant

    I am trying to work on a project that deals getting information from the eye tracking of the VIVE Pro Eye. However, when I try to run my Unity scene, I get the error “The type or namespace name ‘ViveSR’ could not be found” within the ViveProvider.cs file. Thank you!

    #14175
    Grant [Tobii]
    Keymaster

    Hi @connork1999, sorry to hear about your issues. Could you kindly clarify exactly which SDK you are working with in conjunction with the VIVE Pro Eye please?

    In any event, it sounds like the VIVE software has not been correctly installed.

    We produced a getting started guide for the Unity XR SDK @ https://vr.tobii.com/sdk/develop/ue4/getting-started/
    which requires that the steps @ https://www.vive.com/uk/setup/vive/ have been completed.

    Please go through these steps and let us know how you get on. Best Wishes.

    #14187
    connork1999
    Participant

    The first thing is that when I run the program that has the robot face in the corner of my screen (in the taskbar), the eyes turn orange and not green. Although, I do have eye-tracking calibrated with my VIVE Pro Eye.

    The second part is that when I downloaded the appropriate SDK for Unity, not Unreal, I get the error that ViveSR does not exist, as if the namespace or field is not there. This happened why I tried the glance example, where when you look at the cube, it should change color.

    Thank you!

    #14192
    Grant [Tobii]
    Keymaster

    Hi @connork1999, thanks for the clarification. Could you kindly confirm that you have followed all the steps in our getting started with Unity guide @

    https://vr.tobii.com/sdk/develop/unity/getting-started/vive-pro-eye/

    We detail several of the stages necessary for proper operation. Please go through this and let us know if the issue persists.

    #14196
    connork1999
    Participant

    Hello, I’d like to thank you for the prompt responses! Yes, I went through the same process and still have an error indicating that the namespace or field ‘ViveSR’ is not found.

    Is there some sort of log that I could look at to help or send to you for help?

    Thank you!

    #14197
    Grant [Tobii]
    Keymaster

    Hi @connork1999, after asking a few of the developers, it would seem the issue is indeed due to a faulty installation of VIVE’s own SRanipal SDK.

    I found that they produced their own detailed guide to set it up @ https://forum.vive.com/topic/5642-sranipal-getting-started-steps/

    Try it out and let us know how you get on.

    #14200
    C K
    Participant

    Hello! I followed those steps again, and then right after I finished that successfully, I went into Unity and imported the TobiiXR unity package file.

    However, I am still running into the same issue where ViveSR is not found. Sorry about that :/

    #14205
    Grant [Tobii]
    Keymaster

    Hi @clk1999, sorry to hear that it is still not working. The only thing we can think of is that is perhaps you have not checked the box marked with a 2 in this image?

    https://vr.tobii.com/sdk/media/getting-started/tobiixr_initializer_prefab_vive_with_numbers.png

    or maybe you are not using the latest Tobii XR SDK and latest VIVE SDK… can you check this please?

    #14206
    connork1999
    Participant

    Hello, I will try both of those today and let you know how it goes. The only other thing I can think of is could it be my Unity version?

    For the project I work on, I think it’s still running on Unity 2019.1.7f or something like that.

    Thank you!

    #14207
    C K
    Participant

    It works now!

    That was the solution, thank you so much for the help I appreciate it!

    #14211
    Grant [Tobii]
    Keymaster

    Great! Glad to hear it.. please do let us know if we can provide any further assistance 🙂

    #18353
    Jesús
    Participant

    I have the same error and I have tried the 2019.1.7f version and still not working. The error is “Assets\TobiiXR\External\Providers\Vive\ViveProvider.cs(8,7): error CS0246: The type or namespace name ‘ViveSR’ could not be found (are you missing a using directive or an assembly reference?)” I have all installed and I have the Eye calibration done in the Steam VR Home so It’s working well but I can’t use it in Unity. I also have tested in newer versions of Unity and still not working.

    #18369
    Grant [Tobii]
    Keymaster

    Hi @moreno, can you launch HTC’s own SRanipal SDK? ie without going via Tobii.. it sounds like the installation has failed at that level. I assume you went through their guide @ https://forum.vive.com/topic/5642-sranipal-getting-started-steps/

    We have listed here most of the steps that one can try for successful operation, so might be worth posting on HTC own forum as well to see if a local developer can add their comments.

    #18373
    Jesús
    Participant

    Hi @Grant, I have redone all the steps again and I still have the error. I will post it into HTC forus. Thanks!

    #18375
    Grant [Tobii]
    Keymaster

    OK thanks for your patience and best of luck. Feel free to report back here if you managed to find resolution!

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