Closed Muhammad-Adam closed 1 year ago
Hi! This issue tracker is for feedback on the website, https://gltf-viewer.donmccurdy.com/. I don't provide three.js help here, but you can try any of the "Community" links on the three.js site (https://threejs.org/).
Aside — different formats represent materials in different ways, and converting between formats is (always) lossy. The difference you see above has to do with converting from the Phong or Lambert materials that THREE.FBXLoader supports to the PBR or Unlit materials that glTF supports. There is no lossless fix for all cases; you may want to switch the materials in advance, using metalness=0, roughness=1 to get close to the original appearance.
I have use tons of models from mixamo.com (FBX). I use
FBXLoader
and it loads correctly. When I try exporting it viaGLTFExporter
and then load it usingGLTFLoader
the texture seems to have change. Below is the snapshot of both the original FBX model and the exported GLB model.Note that the scene (lighting, etc) did not change at all. Below is my function that handle the file upload by the user.
Things to take note 1) I dont see any issue when the original file is already in
3) My exporter function is exactly the same as the one shown in threeJS documentation.
.glb
to begin with. 2) When I try to export FBX to GLB, I got this warning from my console