Unity Plugin

We currently provide a experimental multi platform Unity plugin.
It is tested on Unity 5.6 and works only on Windows 64bit and Linux 64bit.
It could work on older versions of Unity, but this has not been tested.

Its based on the .NET bindings by https://github.com/jurrien-fakkeldij/OpenHMD.NET

Implemented:

  • Projection and View matrices
  • Automatic detection of correct dependencies
    • Linux, Windows and Mac
  • Upgradeable by replacing OpenHMD.dll/so

Todo:

  • Universal Shader implementation for lens correction
  • Mac support
  • Clean up test project and upload to Github
  • Launch on Unity asset store?

 

Implementation

Make sure the player settings for the project are setup accordingly, otherwise the Plugin does not work.

This information can be found under: Edit->Project Settings->Player under Other Settings.
We are currently using the Split Stereo Display setup, which automatically splits the Camera in 2 viewports and provides a basic Camera HMD setup.

Import the complete Unity package to your project and drag the OpenHMD Camera prefab to your scene.

The OpenHMD-Camera prefab should be used as primary camera when using VR Mode, this can be used alone or parented to another object/node.

 

 

Download

OpenHMD Unity Plugin (Alpha 1.1a)

First version of the OpenHMD Unity plugin.

Limitations:

  • No Lens correction shader yet
  • Only tested with Unity 5.6
  • Only supports Windows 64Bit and Linux 64Bit
  • Linux only works after building, no editor preview (Will show DLLNotFound error)

Alpha 1.1a: Updated Linux binaries.