答案 0 :(得分:0)
您可以设置时钟并更新相机的位置并查看每次刷新。
var clock = new THREE.Clock();
var increment;
function animate() {
delta = clock.getDelta();
increment += delta;
// moves camera parallel to x axis
camera.position.x += increment;
camera.position.y = 100;
camera.position.z = 200;
render();
}
或者你可以http://expressjs.com/guide/using-template-engines.html。