Color/Texture difference between BJS 7.14 & BJS 7.3?

Hey there, BJS Forum :slight_smile:

I noticed an odd problem: When updating my project from 7.14 to 7.3 the colorspace(?) or texture-interpolation(?) or something(?) changed, making the appearance way daker. I have changed nothing in my code or on the textures, only updated the BJS version… I use a custom loader to use .basis textures, putting them on a standart-material as emissive textures. i don’t use any post-processes or pipelines.

I noticed in the inspector, that the textures changed from “Use sRGB buffer” (=no) and “is Gamma space” (=yes) in 7.14 to “Use sRGB buffer” (=yes) and “is Gamma space” (=no) in BJS 7.3.

Please see attatched image for details.

Can someone please explain to me, why this is happening, what changed and how i can adapt my settings to change it back? The lighter version looks way nicer! :slight_smile:

Thanks!

1 Like

We were not support sRGB textures in the past due to a bug in Chromium. That bug got fixed so I assume the 7.30 version is the “correct” rendering.

That being said, if you want to NOT use sRGB (we are not color space shaming here ;)), you can do this:

const engine = new BABYLON.Engine(canvas, true, {forceSRGBBufferSupportState: false});
4 Likes

Dear Deltakosh,
perfekt! That was it, the (virtual) world it pretty again! Thank’s a lot! :slight_smile:

2 Likes