Skip to main content
Up and Coming
May 11, 2014

SharpOVR 0.4.2 NuGet Update

I've released a NuGet package called SharpOVR, it's a .NET API for the Oculus Rift. It is based on SDK 0.4.x and wraps most of the functionality provided by the SDK. It only supports SDK Rendering at the moment (no Client Distortion Rendering). It has a dependency on SharpDX for the Matrix, ViewportF, Vector and Point classes.
https://www.nuget.org/packages/SharpOVR/

Here's how to use it:

OVR.Initialize();
using (HMD hmd = OVR.HmdCreate(0))
{
// Configure rendering, configure tracking, BeginFrame, EndFrame, etc
}
OVR.Shutdown();

It targets the "Any CPU" platform as the assembly embeds both Win32/x64 unmanaged dlls and loads the appropriate one at runtime. In other words, just add the NuGet package to your project and you're good to go.

I've created a sample SharpDX game project (shown below) that can help you get started.
SharpOVR Sample



Let me know if you have any questions/suggestions.

Guy

    51 replies

    New Participant
    August 20, 2020
    Hi, When referencing the SharpOVR I try to run I get the message:
    System.DllNotFoundException: 'Unable to load DLL 'LibOVRRT32_0_6.dll': The specified module could not be found. (Exception from HRESULT: 0x8007007E)'
    Any ideas?

    - I'll thy to install oculus first ^^  (sorry)