pushrax / OpenVR-SpaceCalibrator

Use tracked VR devices from one company with any other.
MIT License
669 stars 111 forks source link

Register as overlay application to enable automatic launch #4

Closed lukis101 closed 5 years ago

lukis101 commented 5 years ago

Need to provide a manifest.vrmanifest file together with executable and register as a vr application on runtime. My guess would be AddApplicationManifest, example usage can be found over in AdvancedSettings repository

pushrax commented 5 years ago

The main subtasks (other than the manifest) are hooking up OpenVR input to ImGui and writing the rendered texture to the OpenVR framebuffer. It should be straightforward but will involve looking up more detailed examples/docs to get this working without a Qt event loop.

Also worth noting it should work fine to render both the overlay and the regular window, possibly just by fixing the window size to the OpenVR framebuffer size.

lukis101 commented 5 years ago

Yeah, although with this, was mostly targeting just the application registering to OpenVR part instead of actual overlay rendering, as that requires more work.

pushrax commented 5 years ago

Implemented in https://github.com/pushrax/OpenVR-SpaceCalibrator/commit/5c36f6e9094729fca6e50ec4572072427ee0169c