SuperScreenShotterVR icon indicating copy to clipboard operation
SuperScreenShotterVR copied to clipboard

Screenshots with custom cropping?

Open GotoFinal opened this issue 4 years ago • 3 comments

Would it be possible to make screenshot with custom (or just none) cropping. As streamvr cuts most of the visible area when taking a screenshot, so I wonder if there is some nice way to use more of that space. Probably at the cost of adding some smaller/larger blank areas in corners ofc.

GotoFinal avatar Oct 02 '20 17:10 GotoFinal

This application is actually using the standard screenshot function that exists in SteamVR, which can be hooked by any application, it's just providing the API with a custom file path for the output. The crop of the screenshot is dependent on which headset you are using, as they automatically crop to the largest common centered square between the two eyes, see my tweet regarding this here.

To do full frame screenshots one needs to use the debug commends (SteamVR > Developer > Debug Commands) and not sure if I can trigger that screenshot function through the APIs and it really lags 😅 You can test it though, press S in there or search for screenshot.

BOLL7708 avatar Oct 02 '20 21:10 BOLL7708

As an update to this, it is possible to trigger the mentioned debug screenshots by executing this custom URI scheme, just open it in run and it should trigger: vrmonitor://debugcommands/screenshot_request

That said, it will simply execute, it's not an API with a proper return, error messages, or anything like that. And it also opens an explorer window every time it is used to show the captured files, it's not very easy to use.

Would it still be beneficial to be able to run this from the standard screenshot command? If I remember it correctly it also lags the view in the headset every time we run it, it's been a while since I tried that though. 👀

BOLL7708 avatar Oct 04 '20 10:10 BOLL7708

Normal screenshot is usually causing small frame spike too, not sure if this does it more, didn't try when wearing a headset. I will probably play more around this topic next week, as no time this week. I have no idea about possibilities and limitations of steamvr API, but i've seen many interesting POC apps like even adding a full android phone inside VR. So based on that I guess it should be possible for steamvr overlay application to just capture the frame-buffer directly?

I will understand if this is out of scope of this project tho.

GotoFinal avatar Oct 04 '20 12:10 GotoFinal