convert dae to gltf, horizontal vector invalidation

93 Views Asked by At

I converted .dae to .gltf through this tool, and display through three.js, and found that the horizontal vector of the model seems to be invalid.

Example file

Convert tool interface: enter image description here

The situation when I use .dae file to display:

   let loaderDae = new ColladaLoader();

   loaderDae.load(`assets/untitled.dae`, (dae: any) => {
      this.buildingModel = dae.scene;
      this.buildingModel.position.multiplyScalar(0);
      this.scene.add(this.buildingModel);
    });

enter image description here

The situation when I use .gltf file to display:

  let loaderGLTF = new GLTFLoader();
  loaderGLTF.load(`assets/untitled.glft`, (glft: any) => {
          this.buildingModel = glft.scene;
          this.buildingModel.position.multiplyScalar(0);
          this.scene.add(this.buildingModel);
        });

enter image description here

After zooming in(or out): enter image description here

The gloss of the texture is also not the same. I don't know if it's a file conversion problem or a lighting problem. I am using ambientLight:

 let ambColor = new THREE.Color('rgb(118, 240, 147');
    this.ambientLight = new THREE.AmbientLight(ambColor);
    this.ambientLight.name = 'testname';
    this.scene.add(this.ambientLight)
0

There are 0 best solutions below