Texture loading incorrectly on glb exported from BabylonJS

I have a glb file exported from BabylonJS without any texture applied on it

however when I test it on sandbox, and try applying texture on it, the texture is not loaded properly
(Left is the original glb exported, right is after applying texture)

But then, if I export the glb with texture applied from BabylonJS, I can then apply texture on the model, and it is loaded correctly
(Left is the glb applied with texture exported, right is after applying same texture as above)

cc @bghgary

I’m not reproducing this behavior. I see this after exporting it the second time.


The problem is that the UVs are not being exported. By default, the exporter does not export unused UVs (though I noticed we are still exporting the buffers, @Guillaume_Pelletier maybe you can check this?). There is an option to export the unused UVs in the exporter code, but it is not currently available as an option the inspector UI. Maybe we can add one.

I see, I didn’t realise unused UVs are not exported. So, seems like it should be the problem of missing UV as it is unused and not being exported. I am going to enable it, thanks~!!!

1 Like

How to enable exporting unused UV maps? Any solution?

I responded in the other thread: Object UV map not saving after exporting as glb - #4 by bghgary

1 Like