Hello there,
I am new to Three.js and have been experimenting with importing 3D models using the GLTFLoader. While I have had success loading models into my scene, I am encountering an issue with texture mapping on the imported objects.
I have created a simple model in Blender, applied materials and textures, and exported it as a GLTF/GLB file. When I load the model into my Three.js scene; the geometry appears fine, but the textures look either stretched; misaligned; or sometimes missing altogether.
Strangely; when I load the same GLTF file into an online viewer like the Babylon.js Sandbox or the Three.js Editor, the textures look perfect.
I’ve tried adjusting the material properties and UV mappings in Blender, but the issue persists. I also verified that the textures are included in the exported GLTF file. Am I missing something in my Three.js setup that could be causing this problem?
Also, I have gone through this post; https://discourse.threejs.org/t/need-help-on-imported-gltf-model-with-changing-texture-of-it-machine-learning which definitely helped me out a lot.
Could it be related to the way I am handling lighting, renderer settings, or textures in the Three.js scene?
Thanks in advance for your help and assistance.