loadGLTF(){
const gltfLoader = new GLTFLoader();
gltfLoader.load( 'model/scene.gltf', ( gltf ) => {
const root = gltf.scene;
//this.scene.add(root);
const self = this;
root.traverse(function (child) {
if (child.isMesh) {
const mTest=new THREE.Mesh(child.geometry,new THREE.MeshBasicMaterial( { color: 0xffff00 } ));
self.scene.add(mTest);
}
});
} );
}
I want to use geometry of the gltf and THREE.MeshBasicMaterial as mesh to render, but the result will be strange,it will be totally different from the shape of right model. and if I use .obj model this will not happen.I want to know why,if someone could tell me the reason, I would greatly appreciate it.
this the wrong result

this is the original model