导出为 .glb 而不是 .gltf 时不可见 material

Invisible material when exporting to .glb instead of .gltf

我已经使用 blender 2.8 中包含的 gltf 导出器导出了模型。导出为 .gltf 效果很好,但是当导出为 .glb 时,我再也看不到纹理了。奇怪的是,如果我在 gltf 查看器 https://gltf-viewer.donmccurdy.com/ it works fine while in my environment and in three.js editor https://threejs.org/editor/ texture is black. Why does this happen and how to fix it? Does the gltf viewer load something differently? Here is the model to check for yourself https://drive.google.com/open?id=1gqdujds0VAgU__92GgTMsgWkO1BbbnPJ

中检查 .glb 文件

glTF 查看器 - 工作正常

Three.js 编辑器 - 黑色纹理(添加了环境光)

glTF Viewer - works fine

那是因为查看器将环境贴图应用于蒙皮网格的材质。这对编辑器来说是不正确的。当您在查看器中加载模型时,只需 select for environmentNone 即可看到此效果。

除了使用环境贴图,您还可以为从 10 的所有材质设置 metalness 值。为什么 1metalness 值在您的案例中有问题,解释如下: