three.js为何坐标轴会有平行的情况
     // 场景和相机
    this.scene = new THREE.Scene();
    this.camera = new THREE.PerspectiveCamera(120, width / height, 0.1, 1000);
    this.camera.position.x = 0;
    this.camera.position.y = 10;
    this.camera.position.z = 0;
    this.camera.lookAt(new THREE.Vector3(10, 10, 10));
    // 坐标轴
    this.scene.add(new THREE.AxisHelper(50));

1个回答

主要是观察点的问题, this.camera.lookAt(new THREE.Vector3(10, 10, 10));

this.camera.position.y = 10; 与相机Y轴坐标相同,当然后出现平行情况。

Csdn user default icon
上传中...
上传图片
插入图片
抄袭、复制答案,以达到刷声望分或其他目的的行为,在CSDN问答是严格禁止的,一经发现立刻封号。是时候展现真正的技术了!
立即提问