GLTF Texture Download Optimization

We are loading a GLTF file which is a series of nodes that all share the same large texture bake. This is so we can then assign unique colors to each node. The problem is that the same image files are loaded by the browser multiple times since it appears the GLTF loader is attempting to load them all in parallel. Is there a way to prevent this, or better yet, to have them all use the same BABYLON.Texture object?

hi. when i try use texture atlases i faced the same problem. exporter dont understand instanced textures for different materials or multimaterial. you need exclude this texture from export and load separate from the gltf file. after loading create texture and assign to material.
https://www.babylonjs-playground.com/#G3GZA1#49

2 Likes