Version 1.2.0 #12
tjhorner
announced in
Announcements
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
This release adds a new API for interfacing with lower-level graphics APIs from
IVRCompositor
. For now, the only method available is grabbing a screenshot of the headset view (GetMirrorImage
), but as the project grows there will be more added.There are also two new packages:
OVRSharp.Graphics.DirectX
andOVRSharp.Graphics.OpenGL
. These packages implement the new API with their respective underlying graphics APIs. For now, only the DirectX package is published on NuGet because there seems to be an issue on the OpenVR side preventing it from working. Here's some example usage:Do note that this method is actually pretty slow (~15ms) due to all the copying and transforming happening under-the-hood, so it's not suitable for constant mirror image access. For that, you may want to look into lower-level ways of accessing the underlying DirectX/OpenGL resources (or help out with #11!)
Lastly, this API (
ICompositorAPI
) is also interface-based, so anyone can write their own implementation (e.g. one that works with Vulkan somehow) and publish it if they wish.Unrelated to the public API, I've also started writing integration tests (starting with
ICompositorAPI
) that test correctness against an actual OpenVR runtime.This discussion was created from the release Version 1.2.0.
Beta Was this translation helpful? Give feedback.
All reactions