【问题标题】:How to change the camera rotation in Threejs如何在 Threejs 中更改相机旋转
【发布时间】:2014-12-29 18:01:00
【问题描述】:

我用 CSS3Renderer 和 TrackballControl 制作了一个 3D 圆锥体,它可以正常工作。 http://chito.hk/three-test/

但是现在,我想修改它以允许用户输入值来控制摄像机旋转,而不是使用 TrackballControl。 http://chito.hk/three-test/index_static.php

但是相机对 lookAt 函数没有响应。谁能告诉我我做错了哪一部分?

【问题讨论】:

    标签: css 3d three.js user-input


    【解决方案1】:

    添加一个渲染();在你的lookAt之后打电话。

    【讨论】:

    • hi mdan... 相机现在正在移动,但它并没有像我预期的那样移动。我希望相机像使用 TrackballControl 一样移动,围绕对象旋转。
    猜你喜欢
    • 2018-08-30
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2015-04-18
    相关资源
    最近更新 更多