Skip to content

cnlohr/openvr-screengrab

Repository files navigation

openvr-screengrab

Example using C to use the OpenVR GetMirrorTextureD3D11 and process it. Also more in general a "how to use directx with c" for certain values of DirectX.

In general:

  1. You get the system layer, so things like chaperone will draw on top, and you won't be pixel perfect from what the game gives you.
  2. Oddly enough, it doesn't seem like this gets reprojected with motion.
  3. It consumes a nontrival amount of CPU resources.
  4. Now here's an example for how to grab what the user is seeing with OpenVR.
  5. I finally have an example doing DirectX stuff in C.

screenshot

Prerequisites

You will need the 3.8MB TinyCC Toolchain, available here: https://github.com/cnlohr/tinycc-win64-installer/releases/tag/v0_0.9.27 Install to a system-reachable path.

SteamVR 1.27 or higher.

About

Example using DirectX in C to use OpenVR GetMirrorTextureD3D11 and process it.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages