Skip to main content
Up and Coming
July 20, 2015

SharpOVR - SharpDX/.NET wrapper

I've been maintaining a .NET wrapper for the Oculus SDK for quite some time now. It is based on SharpDX and is what I use in Virtual Desktop.

I just updated it to the 0.6 SDK and have it available on NuGet here.
I've also updated the sample project to get you started.

Happy coding!

    9 replies

    Participant
    July 22, 2015
    This is awesome! Exactly what I was searching for.

    I have a question. (This is all new to me, so I don't know a whole lot about it)
    I'm working on a project (for school) in which I try to combine your Virtual Desktop and the Leap Motion. To be able to point to the screen, I need to know what portion of the screen I'm looking at. I've worked out the necessary math, but I need to know the rotation of oculus rift, relative to the virtual screen's orientation. That is the Rift's yaw/y-rotation. Do you know how I can obtain this value? - Found the answer to this one. (In case someone ever needs it, you can get enough info from the "finalForward" vector)

    Maybe more important: do you think it is even possible to have two applications running at the same time (that'd be Virtual Desktop and the application I'm working on) asking data from the Rift?

    Thanks
    New Participant
    July 22, 2015
    Yeah! Finally something good !

    I have a question. Is there a possibility to input video into oculus rift with SharpOVR? I want to put video from IP camera, by HTTP protocol. I wonder if this can work ... :?

    Thanks for your time!
    Inspiring
    July 22, 2015
    Good stuff.
    AMD Ryzen 7 1800X | MSI X370 Titanium | G.Skill 16GB DDR4 3200 | EVGA SuperNOVA 1000 | Corsair Hydro H110i Gigabyte RX Vega 64 x2 | Samsung 960 Evo M.2 500GB | Seagate FireCuda SSHD 2TB | Phanteks ENTHOO EVOLV
    guygodinAuthor
    Up and Coming
    July 24, 2015
    "TijsDelvaux" wrote:
    Maybe more important: do you think it is even possible to have two applications running at the same time (that'd be Virtual Desktop and the application I'm working on) asking data from the Rift?

    Thanks

    Yes, multiple apps can call GetEyePos but only one app will be able to make a successfull call to SubmitFrames.

    "Czyzu" wrote:
    Yeah! Finally something good !

    I have a question. Is there a possibility to input video into oculus rift with SharpOVR? I want to put video from IP camera, by HTTP protocol. I wonder if this can work ... :?

    Thanks for your time!

    Yes, you can create a dynamic texture for example which will be updated from the camera and then rendered on a plane in VR. Not a trivial task but certainly possible.
    Virtual Desktop Developer
    Participant
    July 24, 2015
    "guygodin" wrote:

    Yes, you can create a dynamic texture for example which will be updated from the camera and then rendered on a plane in VR. Not a trivial task but certainly possible.


    Awesome! Thank you very much!
    New Participant
    August 7, 2015
    Can you help me and tell me which Lib i should use to combine IP camera getting MJPEG video from HTTP Protocol with SharpOVR lib? Im searching in the SharpDX documentation but i haven't find something useful


    EDIT: okay i'm reading now about Texture2D, but should i do this on texture 3D?

    http://sharpdx.org/documentation/api/t- ... -texture2d
    New Participant
    August 8, 2015
    Hello!!

    It's me again!!

    I'm wondering how i can read the parameters from the sensors, can you help me writing them into console?

    Cheers!

    EDIT:

    I finally solved my problem reading params from sensors, if someone will need the code, write here !
    Participant
    August 19, 2015
    "Czyzu" wrote:
    Hello!!

    It's me again!!

    I'm wondering how i can read the parameters from the sensors, can you help me writing them into console?

    Cheers!

    EDIT:

    I finally solved my problem reading params from sensors, if someone will need the code, write here !


    If it's still possible, could you post the code?
    Thanks in advance!
    New Participant
    September 12, 2016
    Any update on SharpOVR?