【发布时间】:2015-12-26 09:58:49
【问题描述】:
我有以下代码:
...
camera = new THREE.PerspectiveCamera(75, screenRatio, 1, 10000 );
camera.position.z = -10; // position.set(0, 0, -10) also not working.
controls = new THREE.VRControls( camera );
effect = new THREE.VREffect( renderer );
effect.setSize( window.innerWidth, window.innerHeight );
...
VRControls 与加速度计同步工作,但我无法更改摄像机位置。它似乎卡在原点(0,0,0)。在应用 VRControls 和 VREffect 之前它工作得很好。
【问题讨论】:
标签: javascript three.js virtual-reality