1. A concise explanation of the problem you're experiencing.
A .glb converted from a small .dae has duplicate parts, when loaded by ThreeJS GLTFLoader or
2. A minimal code example. If you've found a bug, this helps us reproduce and repair it.
I have a small collada model DMG_DMU50.dae (attached), and ran the following command to convert it to the GLTF binary format (latest version for x64):
collada2gltf-bin DMG_DMU50.dae DMG_DMU50.glb -b
But when I loaded this DMG_DMU50.glb into ThreeJS using the GLTFLoader, the model seemed to be doubled - mirrored itself (attached screenshot). Then I tried loading the same .glb file with https://blackthread.io/gltf-converter/, the same problem exists.
Another interesting observation is that, when I drag/drop the original DMG_DMU50.dae into your web application: http://22.214.171.124/convertmodel.html, the model is displayed correctly, i.e., no duplicate or mirrored parts. Further, if I load the output .glb from this web app with either GLTFLoader or blackthread converter, it's also working properly.So it looks like the DMG_DMU50.glb I generated using the command line is incorrect.
What is the right command (with options) should I use? Why is the .glb output from your web application correct, as it is using the same converter as I do?
Attached please find the screenshots, original .dae and the converted .glb from the command line. Thank you in advance for any help!
post.zip (2.4 MB)