Forum Discussion

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

DK1 cannot work in Unity 5. Please help!

Hi everyone,

I have been trying to make DK1 works using Unity 5.1.3f1, but not successful until now.
I always get these warnings:
"Compositor failed to initialize."
"Bad config or LibOVR not found. VR disabled."

I have tried using Oculus runtime 0.6.0.1, it's not working. Switched to 0.5.0.1, still no avail.
Just for info, the demo scene works fine on both version, both when using direct-to-HMD or extended mode.

In Unity 5.1.3f1, I created an empty project just for testing.
Virtual reality supported is checked. Color space is gamma.
When run, there is no head tracking or left-right rendering. Exactly the same as if running non-VR.

What should I do to make it work?

8 Replies

Replies have been turned off for this discussion
  • Config Log:
    {
    "Time": "2015-09-19_13:44:27",
    "SDK Version": "0.5.0.1",
    "Service Protocol": {
    "Major": 1,
    "Minor": 3,
    "Patch": 0
    },
    "RemoteProtocolVersion": {
    "Major": 1,
    "Minor": 3,
    "Patch": 0
    },
    "Service Running Time": {
    "Hours": 3,
    "Minutes": 58,
    "Seconds": 18
    },
    "System Specifications": {
    "Operating System": "Microsoft Windows 7 Ultimate ",
    "Processor": "Intel(R) Core(TM) i5-2500 CPU @ 3.30GHz",
    "Graphics Adapters": [{
    "Name": "NVIDIA GeForce GTX 750",
    "Video Controller RAM (MB)": 2048,
    "Driver Version": "10.18.13.5584",
    "Video Mode": "1920 x 1080 x 4294967296 colors"
    }],
    "Total RAM (GB)": 8,
    "USB Tree": [{
    "name": "Standard Enhanced PCI to USB Host Controller",
    "deviceid": "PCI\\VEN_8086&DEV_1E26&SUBSYS_50061458&REV_04\\3&11583659&0&E8",
    "caption": "Standard Enhanced PCI to USB Host Controller",
    "manufacturer": "(Standard USB Host Controller)",
    "Devices": [{
    "manufacturer": "(Standard USB Host Controller)",
    "name": "USB Root Hub"
    }, {
    "manufacturer": "(Generic USB Hub)",
    "name": "Generic USB Hub"
    }, {
    "manufacturer": "(Standard USB Host Controller)",
    "name": "USB Composite Device"
    }, {
    "manufacturer": "(Generic USB Audio)",
    "name": "Logitech USB Headset H340"
    }, {
    "manufacturer": "(Standard system devices)",
    "name": "USB Input Device"
    }, {
    "manufacturer": "Microsoft",
    "name": "HID-compliant consumer control device"
    }, {
    "manufacturer": "(Standard system devices)",
    "name": "HID-compliant device"
    }]
    }, {
    "name": "Standard Enhanced PCI to USB Host Controller",
    "deviceid": "PCI\\VEN_8086&DEV_1E2D&SUBSYS_50061458&REV_04\\3&11583659&0&D0",
    "caption": "Standard Enhanced PCI to USB Host Controller",
    "manufacturer": "(Standard USB Host Controller)",
    "Devices": [{
    "manufacturer": "(Standard USB Host Controller)",
    "name": "USB Root Hub"
    }, {
    "manufacturer": "(Generic USB Hub)",
    "name": "Generic USB Hub"
    }, {
    "manufacturer": "(Standard system devices)",
    "name": "USB Input Device"
    }, {
    "manufacturer": "Microsoft",
    "name": "HID-compliant mouse"
    }, {
    "manufacturer": "(Standard USB Host Controller)",
    "name": "USB Composite Device"
    }, {
    "manufacturer": "(Standard system devices)",
    "name": "USB Input Device"
    }, {
    "manufacturer": "(Standard keyboards)",
    "name": "HID Keyboard Device"
    }, {
    "manufacturer": "(Standard system devices)",
    "name": "USB Input Device"
    }, {
    "manufacturer": "Microsoft",
    "name": "HID-compliant consumer control device"
    }, {
    "manufacturer": "(Standard system devices)",
    "name": "HID-compliant device"
    }, {
    "manufacturer": "Microsoft",
    "name": "HID-compliant consumer control device"
    }]
    }, {
    "name": "Intel(R) USB 3.0 eXtensible Host Controller",
    "deviceid": "PCI\\VEN_8086&DEV_1E31&SUBSYS_50071458&REV_04\\3&11583659&0&A0",
    "caption": "Intel(R) USB 3.0 eXtensible Host Controller",
    "manufacturer": "Intel(R) Corporation",
    "Devices": [{
    "manufacturer": "Intel(R) Corporation",
    "name": "Intel(R) USB 3.0 Root Hub"
    }, {
    "manufacturer": "(Standard system devices)",
    "name": "USB Input Device"
    }, {
    "manufacturer": "(Standard system devices)",
    "name": "HID-compliant device"
    }]
    }]
    },
    "Drivers": [{
    "Path": "\\system32\\OVRDisplay64.dll",
    "Version": "1.2.4.0"
    }, {
    "Path": "\\system32\\OVRDisplayRT64.dll",
    "Version": "1.2.4.0"
    }, {
    "Path": "\\syswow64\\OVRDisplay32.dll",
    "Version": "1.2.4.0"
    }, {
    "Path": "\\syswow64\\OVRDisplayRT32.dll",
    "Version": "1.2.4.0"
    }, {
    "Path": "\\system32\\drivers\\RiftEnabler.sys",
    "Version": "1.2.4.0"
    }, {
    "Path": "\\system32\\OVRDisplay32.dll",
    "Version": "1.2.4.0"
    }, {
    "Path": "\\system32\\OVRDisplayRT32.dll",
    "Version": "1.2.4.0"
    }, {
    "Path": "\\system32\\drivers\\OCUSBVID.sys",
    "Version": "0.0.1.7"
    }],
    "Video Device Tree": [{
    "Name": "NVIDIA GeForce GTX 750",
    "VRAM (MB)": 1993,
    "Monitors": [{
    "Name": "\\\\.\\DISPLAY2",
    "Width": 1920,
    "Height": 1080,
    "Refresh Rate": 60
    }, {
    "Name": "\\\\.\\DISPLAY1",
    "Width": 1920,
    "Height": 1080,
    "Refresh Rate": 60
    }]
    }],
    "Devices": [{
    "Product ID": 1,
    "Product Name": "Oculus Rift DK1",
    "Manufacturer": "Oculus VR",
    "Serial Number": "51L8H3TGQG37",
    "Vendor ID": 10291,
    "EDID Serial": "SerialRD",
    "Resolution Height": 800,
    "Resolution Width": 1280,
    "Firmware": {
    "Major": 0,
    "Minor": 18
    },
    "Frustum": {
    "Far Z Metres": 0,
    "H Fov Radians": 0,
    "Near Z Metres": 0,
    "V Fov Radians": 0
    }
    }],
    "Profile": {
    "Player Name": "Rudy",
    "IPD": 0.064000,
    "Eye height": 1.636672,
    "Eye Cup": "A",
    "Eye Relief": 5,
    "Gender": "Male",
    "Eye To Neck": 0.075000,
    "Player Height": 1.740000,
    "Camera Centered From World": {
    "Camera Centered From World": {
    "x": 0,
    "y": 0.037092,
    "z": 0,
    "w": 0.999312
    },
    "Rotation": {
    "x": -0.010483,
    "y": 0,
    "z": -0.060511
    }
    }
    }
    }


    OVRServer Log:
    [TrackingManager] Entering tracking thread
    OVR::Win32::HIDDevice - Opened '\\?\hid#vid_2833&pid_0001#6&126d97ec&0&0000#{4d1e55b2-f16f-11cf-88cb-001111000030}'
    Manufacturer:'Oculus VR, Inc.' Product:'Tracker DK' Serial#:'51L8H3TGQG37' Version:'18'
    {ERR-011} [SensorImpl] Magnetometer calibration not found!OVR::SensorDevice - Closed '\\?\hid#vid_2833&pid_0001#6&126d97ec&0&0000#{4d1e55b2-f16f-11cf-88cb-001111000030}'
    OVR::Win32::HIDDevice - Closed '\\?\hid#vid_2833&pid_0001#6&126d97ec&0&0000#{4d1e55b2-f16f-11cf-88cb-001111000030}'
    [TrackingManager] Broadcasting new HMD count = 0
    OVR::Win32::HIDDevice - Opened '\\?\hid#vid_2833&pid_0001#6&126d97ec&0&0000#{4d1e55b2-f16f-11cf-88cb-001111000030}'
    Manufacturer:'Oculus VR, Inc.' Product:'Tracker DK' Serial#:'51L8H3TGQG37' Version:'18'
    {ERR-011} [SensorImpl] Magnetometer calibration not found![TrackingManager] Broadcasting new HMD count = 1
  • When I try it using Unity 5.1.2f1 and Oculus 0.6.0.1, I get a different warning:
    [CAPI] ovrHmd_Create failed to complete within the timeout period.


    Also, my DK1 can only be detected if I use Direct HMD Access + DK1 Legacy App Support. If I uncheck DK1 Legacy App Support, it will say "HMD powered off, check HDMI connection". The weird thing is, I have an old app made using SDK v0.4.4 and it works fine when not using legacy app. The app won't run when using legacy app.
  • Finally able to get it to work!

    Here's what I do:
    - Using Unity 5.1.2f1
    - Using Oculus runtime 0.6.0.1
    - Choose Direct HMD Access
    - DK1 Legacy App Support enabled

    Tried in Unity 5.1.3f1, the editor crashed when pressing play.

    Graphics API must be set to DX11. Using DX9 won't work.
    @cybereality: can you confirm this?
  • As long as you are using D3D11 and extended mode or NVIDIA direct mode, DK1 seems to work fine in my tests. However, OVRDirect seems to break it. D3D9 is not supported on any of our HMDs.