简体   繁体   English

如何更换三合一相机position?

[英]How to change the camera position in threebox?

I'm using ThreeBox to build and design a map with 3D Objects.我正在使用 ThreeBox 构建和设计带有 3D 对象的 map。 Is there any way to change the camera position in ThreeBox?有什么办法可以改变ThreeBox中的摄像头position?

I am supposed to put the camera behind an object and make it navigate in the third person, but my first problem is how to position the camera behind the object.我应该把摄像头放在 object 后面,让它以第三人称导航,但我的第一个问题是如何将摄像头 position 放在 object 后面。

Threebox uses Mapbox camera to sync the perspective, so you only have to change the map camera view through map.flyTo where you can specify coords, zoom, pitch and bearing to find your desired position. Threebox使用 Mapbox 相机同步视角,因此您只需通过map.flyTo更改 map 相机视图,您可以在其中指定坐标、缩放、俯仰和方位,以找到您想要的 Z4757FE07FD492A8BE60EA6A760EZ68。 You have an example of mapbox flyTo .你有一个mapbox flyTo的例子。

Indeed I personally use this feature in all my projects adding these attributes to the feature.properties that I use to generate every 3D object事实上,我个人在我的所有项目中都使用此功能,将这些属性添加到我用来生成每个 3D object 的feature.properties

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM