Forum Discussion

🚨 This forum is archived and read-only. To submit a forum post, please visit our new Developer Forum. 🚨
bingzhou.2023's avatar
1 year ago

Strange color when change the sample app to GL_RGBA8 color format

Hi, Oculus official and developers:

The code provided by Oculus official can be found here: Downloads - Oculus OpenXR Mobile SDK

Using XrCompositor_NativeActivity to have a test. As the code shown, the default color space is GL_SRGB8_ALPHA8. But when I changed it to GL_RGBA8, the color became much brighter than it should be.

Here is the result of default GL_SRGB8_ALPHA8 which is correct.
But when I changed it into GL_RGBA8, the color is 
 

 Reproduce step: Simply change the GL_SRGB8_ALPHA8 to GL_RGBA8 in XrCompositor_NativeActivity.c file.

Please help me to figure it out.  This is very important in my work. Some people think the RGB app should be brighter than sRGB, the result should be correct even they are different on the screen because Oculus is industry standards.  But I insist that the RGB should be the same as sRGB on the screen. 

 

As a comparison, I replace the loader with Pico's loader. The RGB and SRGB apps are both like the result of GL_SRGB8_ALPHA8 in Quest, which are correct. But most people think Pico is not much public than Quest, they only think Quest is correct even the color is different.

 

If anyone can help me out, I will be really appreciated.

No RepliesBe the first to reply