Skip to main content
Up and Coming
April 2, 2013

C# Wrapper?

So after looking through the SDK a bit, it seems everything is C++ based. While that's all fine and dandy for being the more efficient language, it's much more complex then I am use to working with, and is a lot harder to follow. I have very little experience with C++ and while I know about wrappers (a way for something like c# to call functions from a C++ script and get data back) I don't have a clue how to make them myself.

Is there a wrapper for c# already made, and if not, can someone either make one, or at least tell me where I can get started on writing my own?

I'm currently going to be writing a c# interface with unity that will be able to take data from my own vr glove thing to unity (already can send/receive data to/from unity), and I could build on top of that support for the oculus with the free version of unity. The only thing I wouldn't be able to do is distort the image properly for video, but could be a simple way to get the oculus' data.

I should also note that I don't have an oculus yet (waiting for it to be shipped since november T_T) so I can't test anything until mine comes in.

Anyway, any help with this would be much appreciated.

    25 replies

    Up and Coming
    April 9, 2013
    Lucky you. T_T I haven't even been sent a tracking number yet. (I'm expecting early to mid next month.............. and that sounded like I was talking about a baby....... and I'm a guy....... awkward)

    Well, ^_^ when you do finish, I would still appreciate it if you could send it my way. I'm so excited about getting it working in unity free. With how fast the pipeline system is already working, it should work with very little overhead.
    Current Project: Virtual Reality Glove project
    Up and Coming
    April 10, 2013
    Alright, well I've got the code recognizing the Rift now. :) I need to figure out how to regcognize the sensors, and then try to put something on the screen.
    Up and Coming
    April 10, 2013
    ^_^ Glad it's getting there. I can't wait to get my rift and try to get this working.
    Current Project: Virtual Reality Glove project
    New Participant
    April 17, 2013
    "Entroper" wrote:
    Alright, well I've got the code recognizing the Rift now. :) I need to figure out how to recognize the sensors, and then try to put something on the screen.



    omg don't keep us hanging, update!... plz

    Thanks
    Up and Coming
    April 17, 2013
    Not quite the C# support you guys probably want but i posted some C# code in the streetview topic that pinvokes to a dll to get the yaw/pitch/roll from the tracker.