threeJS 重新初始化控件并保持相机位置
threeJS reinit controls and keep camera position
使用 threeJS 创建一个带有 360 度图像的球体。
初始化:
this.controls = new THREE.DeviceOrientationControls(this.camera, true);
然后单击我将控件更改为 OrbitControls。
有没有办法keep/find当前相机位置?
通过将 DeviceOrientationControls 和 OrbitControls 与控件 enable/disable 切换结合在一起获得的结果,如下所示。
this.controls.enabled = !this.controls.enabled;
使用 threeJS 创建一个带有 360 度图像的球体。 初始化:
this.controls = new THREE.DeviceOrientationControls(this.camera, true);
然后单击我将控件更改为 OrbitControls。
有没有办法keep/find当前相机位置?
通过将 DeviceOrientationControls 和 OrbitControls 与控件 enable/disable 切换结合在一起获得的结果,如下所示。
this.controls.enabled = !this.controls.enabled;