Forum Discussion

🚨 This forum is archived and read-only. To submit a forum post, please visit our new Developer Forum. 🚨
guygodin's avatar
guygodin
Protege
11 years ago

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

  • 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
  • Czyzu's avatar
    Czyzu
    Honored Guest
    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!
  • "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.
  • "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!
  • Czyzu's avatar
    Czyzu
    Honored Guest
    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
  • Czyzu's avatar
    Czyzu
    Honored Guest
    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 !
  • "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!