ValveSoftware / openvr

OpenVR SDK
http://steamvr.com
BSD 3-Clause "New" or "Revised" License
6.07k stars 1.28k forks source link

Open window as overlay #1541

Open manujoz opened 3 years ago

manujoz commented 3 years ago

Is it possible to send a window as an overlay directly or do I have to take a screenshot of the window and open it as a texture?

Can someone tell me where I can find some documentation or an example I am a bit lost and would appreciate any help.

Thanks a lot

danwillm commented 1 year ago

i've been playing around with getting an electron window to work in vr with some openvr bindings for nodejs.

it's a bit clunky currently and not much is implemented yet: it takes a screenshot of the window and submits it to openvr as a texture. It also has support for laser mouse input (also clunky). https://github.com/danwillm/OVRJS https://github.com/danwillm/Electron-OVRJS

But should be a reasonable example for getting an overlay working.