ZhangXianQiang
2024-04-17 dda78e2eb4a04f55d01de2645b4a6abc821cc8f9
src/views/screen/components/screen-map-three/experience/camera.js
@@ -15,16 +15,17 @@
    // 设置透视相机
    setInstance() {
        this.instance = new PerspectiveCamera(75,this.sizes.width / this.sizes.height, 0.1, 1000);
        this.instance.position.set(0, 2, 2);
        this.instance = new PerspectiveCamera(45,this.sizes.width / this.sizes.height, 0.001, 90000000);
        this.instance.position.set(0, 45, 45);
        this.scene.add(this.instance);
        const help = new CameraHelper(this.instance);
        this.scene.add(help);
        // const help = new CameraHelper(this.instance);
        // this.scene.add(help);
    }
    setOrbitControls() {
        this.controls = new OrbitControls(this.instance, this.canvas);
        this.controls.target.set(0, 0, 1);
        this.controls.target.set(0, 0, 5);
        this.controls.enableDamping = true;
    }
    resize() {