Skip to main content
Up and Coming
June 10, 2015

Help with Unity 5.1 + Oculus

I had a play around with Unity plus Dk2 when we were on 0.4.3 runtime which all worked fine though a little fiddly.

I've upgraded to a new computer and loaded the new v5.1 Unity .
Have installed and running 0.6 OVR.
Have downladed 0.6 SDK though I can't see how to install it as there is no executable . The folder is just sitting on my desktop . I've run the world demo contained - runs fine . ( any help installing welcome )

Now when I try to edit in Unity 5.1 02f :

edit /project settings / player and set ' virtual reality supported ' , to bring about the native rift support ,
I get a message saying that `changing active VR Api requires reloading all graphics objects, which may take a while '. When I click Apply I get an immediate application crash . I'm now going in circles and getting nowhere :)

Am I doing anything obviously wrong - is anyone else having the same problem .

Many thanks in advance for reading !

Mark
    This topic has been closed for replies.

    4 replies

    Inspiring
    June 10, 2015
    The SDK is just code, there is no executable, and you should only need this if you are using a C++ engine.

    For Unity 5.1, you no longer need the Oculus Unity integration. You'll still need the Oculus runtime installed, but that is about it for setup. Just create a new project in Unity, enabled "Virtual Reality Supported" and that is about it. Just make sure you don't also have any Oculus files that may be left over if it's an existing project.

    Also, can you upload this log file?

    C:\Users\username\AppData\Local\Unity\Editor\Editor.log


    Also, the diagnostic log from the Config Util.
    AMD Ryzen 7 1800X | MSI X370 Titanium | G.Skill 16GB DDR4 3200 | EVGA SuperNOVA 1000 | Corsair Hydro H110i Gigabyte RX Vega 64 x2 | Samsung 960 Evo M.2 500GB | Seagate FireCuda SSHD 2TB | Phanteks ENTHOO EVOLV
    ZennorAuthor
    Up and Coming
    June 12, 2015
    Thanks for that Cyber . I managed to get it working - the crashes stopped.

    Aside from the bugs that are being reported - my main problem with rendering the game screen to the DK2 by pressing play ,is that I get the health and safety warning stuck to my face - no key presses help. It stays from 15 sec to 15 minutes randomly - any tips on how to disable it ?
    Inspiring
    June 12, 2015
    You can disable the warning with a registry tweak and then a setting in the Config Util.

    For Windows, the following key must be added if the Windows OS is 32-bit:
    HKEY LOCAL MACHINE\Software\Oculus VR, LLC\LibOVR\HSWToggleEnabled
    If the Windows OS is 64-bit, then the path will be slightly different:
    HKEY LOCAL MACHINE\Software\Wow6432Node\Oculus VR, LLC\LibOVR\HSWToggleEnabled


    Then look in the menu of the Config Util.
    AMD Ryzen 7 1800X | MSI X370 Titanium | G.Skill 16GB DDR4 3200 | EVGA SuperNOVA 1000 | Corsair Hydro H110i Gigabyte RX Vega 64 x2 | Samsung 960 Evo M.2 500GB | Seagate FireCuda SSHD 2TB | Phanteks ENTHOO EVOLV
    New Participant
    September 27, 2015
    So this worked great... until we upgraded to Unity 5.2 and Oculus 0.7 - now the HSW appears every single play in editor test, and its really irritating. The registry trick no longer exposes the option to disable it.

    Is there any current way to disable it during development? I've searched around and haven't found anything...

    Thanks!