donmccurdy / three-gltf-viewer

Drag-and-drop preview for glTF 2.0 models in WebGL using three.js.
https://gltf-viewer.donmccurdy.com/
MIT License
2.06k stars 530 forks source link

Materials are not loading properly #357

Closed princeku07 closed 6 months ago

princeku07 commented 6 months ago

Screenshot from 2024-01-02 17-48-48

but there is one more gltf-viewer which also uses three js Screenshot from 2024-01-02 18-18-33

donmccurdy commented 6 months ago

I can't say for sure without more information, but perhaps your model uses the deprecated glTF extension, KHR_materials_pbrSpecularGlossiness? Support has been removed in recent three.js versions, if so. To upgrade your model to the metal/rough PBR workflow, see:

https://www.donmccurdy.com/2022/11/28/converting-gltf-pbr-materials-from-specgloss-to-metalrough/.