Hi guys,
I checked some colors in my PBRMaterial recently and found that the color changed somehow. Has anybody tried to check the color here in Babylonjs?
So in my case, I put a albedoTexture with four color in the material, I build the texture in photoshop and put the rgb value. yellow(254,205,0), grey(43,43,43), black(0,0,0), blue(0,127,159). I did nothing about color here, and the picture has no color profile(no srgb). I don’t know if I shoud reference the srgb to it or not. I uploaded the picture in a online hosting website, the color changed, I think it is because the srgb convert, yellow(246,204,25),grey(46,46,46),black(0,0,0),blue(0,126,157). The picture is here.
Then I created a simple scene with a direction light and PBRMaterial. I turnned off all the parameters in TEXTURE CHANNELS in inspector except the “Diffuse”, and turnned off all the parameters in FEATURE except the “Lights” and “Textures”. After that I tried to change the light intensity, to make the color of yellow and blue similar to my photoshop value, but then the gamma changed automatically. yellow(246,205,44), grey(55,55,55), black(37,37,37), blue(37,128,159).
Here is the scene in playground:
https://www.babylonjs-playground.com/#PYK96N
I just want to check the gamma(grey scale) and colors of my PBRMaterial. For example I have a color checker, how can I get the similar grey scale and color values in my scene with PBRMaterial to the real grey scale that I have in my hand in the color checker? As we know, we always get the rgb color from the color checker when we buy it. Actually I tried the color checker locally in my computer, got similar grey scale but never a black color, even though the grey scale are similar, the color changed a lot, especially the yellow and blue color, same like what I got in the playground scene.
Perhaps it is just something about gamma correction in the PBRMaterial.
Perhaps you have an idea?
Thanks,
Sonja