Search Unity

  1. If you have experience with import & exporting custom (.unitypackage) packages, please help complete a survey (open until May 15, 2024).
    Dismiss Notice
  2. Unity 6 Preview is now available. To find out what's new, have a look at our Unity 6 Preview blog post.
    Dismiss Notice

Bug Unity v5.3.1f1 does not work with Oculus Rift SDK2 v.0.5.0.1 and OculusUtilities v0.1.3.0 on Linux

Discussion in 'Linux' started by c_indie, Jan 9, 2016.

  1. c_indie

    c_indie

    Joined:
    Jan 1, 2016
    Posts:
    3
    Trying to get Rift to function in Unity.

    My Rift is working with Tuscany demo and other apps, so Rift should be OK.

    Unity works fine, a part from Rift problem.

    Have tried different Ubuntu, Unity and Oculus Utilities versions, but Rift is not working when running build.

    In Unity I have simple scene with an OVRCameraRig prefab imported as asset.

    But when building and running for Linux x86_64 with vr support enabled get the following warnings and errors.

    1...
    Unity v5.3.1f1, Oculus Utilities v0.1.3.0, OVRPlugin v0.0.0.0.

    2...
    This platform is unsupported
    UnityEngine.Debug:LogWarning(Object)
    OVRManager:Awake() (at Assets/OVR/Scripts/OVRManager.cs:333

    3...
    DllNotFoundException: OVRPlugin
    OVRPlugin.GetStatus (Status bit) (at Assets/OVR/Scripts/OVRPlugin.cs:445)

    4...
    NullReferenceException: Object reference not set to an instance of an object
    OVRManager.Update () (at Assets/OVR/Scripts/OVRManager.cs:368)

    5...
    NullReferenceException: Object reference not set to an instance of an object
    OVRCameraRig.UpdateAnchors () (at Assets/OVR/Scripts/OVRCameraRig.cs:135)
    OVRCameraRig.Update () (at Assets/OVR/Scripts/OVRCameraRig.cs:109)

    Should OVR plugin not be some version? I think this is part of the problem, but do not know how to fix it.

    So the question is, have anyone made Rift and Unity work together on Ubuntu?
    Is it suppose to work at all?
    What could be the problem if it should work?
     
  2. t_w

    t_w

    Joined:
    Aug 4, 2015
    Posts:
    55
    Are you sure that oculus sdk support Linux?
     
  3. LukaKotar

    LukaKotar

    Joined:
    Sep 25, 2011
    Posts:
    394
    They've disabled VR support for Linux and Mac because of screen tearing, from what I remember.
     
  4. c_indie

    c_indie

    Joined:
    Jan 1, 2016
    Posts:
    3
    Oculus download page has linux version v0.5.0.1
    I know development / support has been halted.
    But linux version v0.5.0.1 works without tearing in tuscany demo.
    So Rift is working just fine.

    Question was, can Rift work together with unity on linux?
     
  5. Tak

    Tak

    Joined:
    Mar 8, 2010
    Posts:
    1,001
    We currently don't support Oculus Rift on Linux, given that Oculus has temporarily dropped Linux support.
    They've announced that they'll reintroduce support for Linux at a later date (and we'll work to make sure it's supported at that time).
     
    ma1onso likes this.
  6. c_indie

    c_indie

    Joined:
    Jan 1, 2016
    Posts:
    3
    One thing is support, another thing is if it is possible to make it work.
    What about previous versions or hacks?