openvr icon indicating copy to clipboard operation
openvr copied to clipboard

Please document OpenVR's requirements & recommendation of texture

Open anatawa12 opened this issue 3 years ago • 1 comments

It looks there's no documentation to describe the requirements of texture to pass OpenVR. However, in OpenGL, some texture formats such as 'GL_RGBA' is not accepted. Please document them.

In my environment, any formats except GL_RED, GL_RG, GL_RGB are accepted.

test: https://gist.github.com/anatawa12/6fd75182296019b01dd5da0fbaefa26c

document I've seen: https://github.com/ValveSoftware/openvr/wiki/IVROverlay::SetOverlayTexture

anatawa12 avatar Aug 12 '22 06:08 anatawa12

I've gone ahead and updated the wiki page above to list supported OpenGL formats for Windows. I would expect GL_RGBA to work. On Linux, I believe we are currently limited to 8-bit SRGB formats for OpenGL textures.

aleiby avatar Aug 16 '22 18:08 aleiby