Lost some textures when loading .gltf file

I have loaded a .gltf file but found that it lost some texture.
Here is what it supposed to be:
Screenshot 2019-05-17 at 10 13 29

But it looks like as below after loading:
Screenshot 2019-05-17 at 10 15 53

We could find that it lost a large parts of texture especially on the wall.

The .gltf file is here for testing:

By the way, for the convenience of your testing, the Box2825 is the one enclosed by turquoise rectangle:
Screenshot 2019-05-17 at 10 28 34

When I deleted it, it looked like:
Screenshot 2019-05-17 at 10 28 48

Maybe you can check why this texture was not loaded correctly at the beginning.

Three.js version
  • Dev
  • r104
  • All of them
  • Chrome
  • Firefox
  • Internet Explorer
  • All of them
  • Windows
  • macOS
  • Linux
  • Android
  • iOS
Hardware Requirements (graphics card, VR Device, …)

Author: Fantashit

1 thought on “Lost some textures when loading .gltf file

  1. So the gltfLoader should be able to load .tga file to some extent.

    No, the glTF format disallows TGA entirely. It should be converted to PNG on JPEG at time of export, and if the exporter isn’t doing this but includes the TGA file instead, that’s a bug in the exporter. Sounds like the exporter intends to do that conversion, but isn’t for some reason. /cc @bghgary

Comments are closed.