Hello,
As the caption says, it seems like the _useSRGBBuffer is not parsed correctly in the Texture.Parse function.
The issue occured in the following workflow:
- Create GLB file from Blender with
albedoTexturein gamma space - Load into Babylon.js scene
_useSRGBBufferis set totrue, colors look correct
- Export scene to babylon file
- Load babylon file into Babylon.js scene again
- now the colors are off, also
_useSRGBBufferis set tofalse, as one can also see in the inspector
- now the colors are off, also
Here is a PG example with both files in it.
On the left you can see the GLB file with the correct colors, on the right we have the re-imported babylon file.
First investigations make the issue quite clear.
The call of Texture.CreateFromBase64String is missing the onError callback, therefore the last 2 parameters are on the wrong position.
Also the other path (loading from URL) seems to be just missing the _useSRGBBuffer flag.
Side question
Could you give some insights about the interaction with the gammaSpace property?
This one seems to be parsed correctly and also fixes the color issue.
However, according to the workflow of our 3d artists, that doesn’t seem to be exported by the Blender Gltf plugin.

