Unity: OSVR Rendering Plugin For Unity

[OSVR-Unity-Rendering]

Which is similar to:

[Unity Sample Plugin Source]

Dependencies:

[OSVR SDK for Windows]

* Includes: Add `C:\Program Files\OSVR\SDK\x86\include`

* Includes: Add `C:\Program Files\OSVR\SDK\x64\include`

* (32-bit) Libraries: Add `C:\Program Files\OSVR\SDK\x86\lib`

* (64-bit) Libraries: Add `C:\Program Files\OSVR\SDK\x64\lib`

* Add Library: osvrRenderManager.lib

[Boost C++ Libraries] [binaries]

* (32-bit) Includes: Add `C:\local\boost_1_63_0_x86`

* (64-bit) Includes: Add `C:\local\boost_1_63_0_x64`

* (32-bit) Include: Add `C:\local\boost_1_63_0_x86\libs`

* (64-bit) Include: Add `C:\local\boost_1_63_0_x64\libs`

[Glew]

* Includes: Add `C:\local\glew-2.0.0\include`

* (32-bit) Libraries: Add `C:\local\glew-2.0.0\lib\Release\Win32`

* (64-bit) Libraries: Add `C:\local\glew-2.0.0\lib\Release\x64`

OSVR: Setup SteamVR

SteamVR has support for OSVR. I tested with an OSVR HDK2.

Install SteamVR:

steam://install/250820

I used the OSVR control panel to flash the HDK2 to the [latest firmware] (`hdk2svr-2.00.hex`).

The setup instructions can be found at the [SteamVR-OSVR] project.

[Kevin Godby] is the developer of the SteamVR-OSVR plugin.

[Russell Taylor] is the primary RenderManager developer.

The 7zip archive with the pre-built Windows drivers can be found in the [files] section.

Extract the archive.

Copy the `SteamVR-OSVR\lib\openvr\osvr` folder to `C:\Program Files (x86)\Steam\steamapps\common\SteamVR\drivers` folder as a subfolder.

Initially, the SteamVR tutorial was up-side down. I found a solution on Reddit. [New SteamVR-OSVR driver available: fixes display orientation]

Close `SteamVR` and `Steam` before editing the `C:\Program Files (x86)\Steam\config\steamvr.vrsettings` file.

{
   "driver_osvr" : {
      "scanoutOrigin" : "lower-right",
      "verbose" : true
   },
   "steamvr" : {
      "mirrorViewGeometry" : "0 0 1080 600"
   }
}

Be sure to relaunch the OSVR server before starting SteamVR.

Relaunch Steam, and the SteamVR tutorial.

Issues:

[Main monitor on different GPU prevents VR applications detecting Vive]

Since I have dual graphics cards, I had to swap graphics cards slots to get SteamVR to recognize the headset in Direct Mode.

There’s a couple important logs for debugging `SteamVR` issues.

* `C:\Program Files (x86)\Steam\logs\vrcompositor.txt`

* `C:\Program Files (x86)\Steam\logs\vrserver.txt`

Razer: OSVR Demo

First, I have my hands on the [OSVR HACKER DEVELOPMENT KIT].

After assembling the hacker kit, the manual says download and run the OSVR Hacker Development Kit software from [osvr.github.io].

OSVR has [chat rooms] to talk with other developers.

There are specific channels for “support” requests – see [support.osvr.com].

Nice that no drivers are required for Windows 10.

I had an old `DK1 model` and the firmware drivers were found in `C:\Program Files\HDK-Runtime\OSVR-CPI\dfu-prog-usb-1.2.2`.

Install [Render Manager].

[Getting Started Guide]

[Building with OSVR]

You may already have the `OSVR-Core` installed which can be found in `C:\Program Files\HDK-Runtime\OSVR-Core\bin`.

Or download and unpack the [Daily OSVR-Core Windows Binary Snapshot].

Start the server, run `OSVR-Core-Snapshot-v.X\bin\osvr_server.exe`.

Download and unpack the [OSVR-Unity Assets Snapshot].

Create a new unity project.

Import the unity package `OSVR-Unity-vX\OSVR-Unity.unitypackage`.

Open the demo scene `Assets\OSVRUnity\Sample\VRFirstPerson.unity`.

Hit `Play`.

[Troubleshooting RenderManager]

[NVIDIA Gameworks VR]