openvr icon indicating copy to clipboard operation
openvr copied to clipboard

Noob question: How do I add this SDK into my .NET Framework project?

Open IskandarAlex2 opened this issue 3 years ago • 3 comments

I am making a .NET Framework WPF application to handle OpenVR, why? I am making my own VR Headset with Arduino which I want to make an app I could use to automatically communicate with the Arduino and then feed the sensors' data into OpenVR, monitor the sensors reading with graph, easily change offset, etc. I've been trying to find a way to add this SDK to my project but overwhelmed by the amount of unofficial OpenVR packages and lack of information (so far from the result of my effort searching). I am assuming to use this because OpenVR is used for communication of different VR Hardware which is what I needed for feeding Arduino sensor readings so apps like SteamVR would understand.

I may be wrong and this is not what I am supposed to use to do this, but I don't have much knowledge about these things so if there's another way of doing this or it's not currently possible, please let me know, thanks.

.NET Framework: 4.7.2

IskandarAlex2 avatar Mar 27 '23 22:03 IskandarAlex2

so I followed a way but I seem to get the BadImageFormatException error from the openvr_api.dll

IskandarAlex2 avatar Mar 28 '23 08:03 IskandarAlex2

Alright now it works yet SteamVR still rejecting it because it has no HMD, by my question, I need to emulate the HMD and yes you can tell I am having problem with this

IskandarAlex2 avatar Mar 28 '23 11:03 IskandarAlex2

alright so after doing some readings on the openvr_api.cs file, I found out that this is for games receiving the HMD inputs, NOT emulating the VR and feeding it into SteamVR, and I am obviously doing the opposite. now I may be wrong like I could actually use the OpenVR API dll for this but I need a custom wrapper because the ready-made one is for accepting input so I will keep this open in case anyone has any idea, if it just straight up not possible, just tell me and provide a way to do it if you have any.

IskandarAlex2 avatar Mar 29 '23 11:03 IskandarAlex2