Search code examples
three.jsgltf

Three JS GLTF exporter resets the u,v to default 1,1 after exporting


I am using three js gltf exporter to convert my scene to a gltf/glb format. everything gets exported nicely except the u,v repeat that i have applied on the texture. i have a view to change the u,v at run time in the application but after exporting they get reset to default 1,1


Solution

  • GLTF doesn't really support .repeat since that is a THREE specific design feature. You can work around it by hand modifying the texture coordinates for the face to simulate the repeat. There may be support in the future via textureMatrix or something, but as far as I know, modifying the UV's is the only way.