Forum Discussion
2EyeGuy
6 years agoAdventurer
Washed out (double gamma correction) on OpenGL
No matter which swapchain format I specify, my OpenGL application always renders washed out. That implies that OpenGL always thinks it is rendering to a linear render target, while OpenXR always think...
2EyeGuy
6 years agoAdventurer
This also happens with the Oculus SDK natively (but only in OpenGL), and the Oculus SDK samples take into account this weird behaviour and manually apply a gamma of 2.2 in the pixel shader (even though the Oculus SDK documentation says it is incorrect to do that). Oculus can get away with that incorrect behaviour in their own API, but you can't do that in OpenXR because all the OpenXR runtimes have to behave the same, whether it is Oculus or SteamVR or whatever.
bingzhou.2023
2 years agoExplorer
In their sample code like xrPassthroughGl.app, the descripted that:
// This app was originally written with the presumption that// its swapchains and compositor front buffer were RGB.// In order to have the colors the same now that its compositing// to an sRGB front buffer, we have to write to an sRGB swapchain// but with the linear->sRGB conversion disabled on write.GL(glDisable(GL_FRAMEBUFFER_SRGB_EXT));
Does this mean that RGB swapchain is not supported currently, because we have to write to an sRGB swapchain.
Quick Links
- Horizon Developer Support
- Quest User Forums
- Troubleshooting Forum for problems with a game or app
- Quest Support for problems with your device
Other Meta Support
Related Content
- 2 months ago
- 4 months ago
- 3 months ago