Forum Discussion

🚨 This forum is archived and read-only. To submit a forum post, please visit our new Developer Forum. 🚨
Budlog's avatar
Budlog
Honored Guest
10 years ago

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 :)

6 Replies

Replies have been turned off for this discussion
  • 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.
  • Budlog's avatar
    Budlog
    Honored Guest
    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.
  • Does it help to run with "-vrdevice oculus"? That argument should work for the editor or a standalone that was built with VR support.
  • Anonymous's avatar
    Anonymous
    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