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.15k stars 539 forks source link

When setting up a material, it could not achieve the metallicity of the material with the metal shader. #377

Closed letomaneteo closed 1 month ago

letomaneteo commented 1 month ago

Greetings. Thank you for your work. When setting up a material, it could not achieve the metallicity of the material with the metal shader. The material is constantly cloudy, looks like plastic. Everything works on https://gltf-viewer.donmccurdy.com/ though. Please help.

donmccurdy commented 1 month ago

Hi @letomaneteo! If the model is working properly in the viewer but not in a three.js-based application, then I'd recommend posting a question (sharing a code or demo if possible) on one of the three.js help locations:

In a large majority of cases, issues with metallic materials not being reflective as expected is because there's nothing for them to reflect – you generally need an environment map, such as THREE.RoomEnvironment. See this discussion for more detail:

https://discourse.threejs.org/t/how-to-create-metalic-object-imported-from-blender/24111/2