Skip to main content
New Participant
August 19, 2015

Unity 5.1.2 with Oculus DK1

pls how to set oculus DK1 and unity 5.1.2 to work together ? I tried many tutorial but i have only black screen on DK1 when i am in unity editor. Head tracking work great. In oculus Config. Utility i set up Direct acess and extended desctop with ovulus as secondary screen in windows Monitor seup.

Question 2: it is posible in unity 5.1.2 to switch betwen VR mode and no VR mode (in player settings) via Script ?
Thansk a lot :)
    This topic has been closed for replies.

    6 replies

    Inspiring
    August 19, 2015
    I was told DK1 was still supported, but you're not the first one to report issues.

    Can you provide they log files? viewtopic.php?f=34&t=23521

    With Unity 5, you can toggle VR mode using VRSettings:

    VRSettings.enabled = !VRSettings.enabled;


    Although it may not completely toggle everything. It's best to just assume the state is static after the app starts.
    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
    BudlogAuthor
    New Participant
    August 26, 2015
    Thanks. My oculus DK1 is now working on unity 5.1.2, Utility is set up to Extend desctop to HMD and with oculus as secondary screen in windows Monitor setup. In Unity, i hed to allow stereoscoping rendering besides VR support in player settings.

    but i have still problem with toggling VR mode.
    I tried
    VRSettings.enabled = !VRSettings.enabled;

    or
    VRSettings.enabled = true;

    but VRSettings.enabled allways give me false.
    Inspiring
    August 26, 2015
    That's strange. It seems to work for my with my DK2.
    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
    Inspiring
    August 26, 2015
    Does it help to run with "-vrdevice oculus"? That argument should work for the editor or a standalone that was built with VR support.
    August 26, 2015
    This isn't really much help for OP, but I'm able to use 5.1.2p2 (and now 5.1.3) with DK1 and DK2 direct mode with no issues or changes required. I'm using the built in VR support plus latest OVR utilities. It works better than it ever has in the past with DK1.

    Question for OP would be if they are using latest runtime and OVR utilities for Unity.

    ccs
    Participant
    August 27, 2015
    Try this. picked up the new unity and I am excited to get started. I own the Oculus DK2 and I have already created a working demo back in Unity 4.x. http://static.oculus.com/sdk-downloads/ ... _0.4.4.pdf