如何在Threebox中更改相机位置? [英] How to change the camera position in threebox?

查看:112
本文介绍了如何在Threebox中更改相机位置?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用ThreeBox来构建和设计带有3D对象的地图.有什么方法可以在ThreeBox中更改相机位置?

I'm using ThreeBox to build and design a map with 3D Objects. Is there any way to change the camera position in ThreeBox?

我应该将相机放置在对象后面,并使其以第三人称视角导航,但是我的第一个问题是如何将相机放置在对象后面.

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.

推荐答案

Threebox 使用Mapbox摄像头同步透视图,因此您只需通过地图框 flyTo .

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. You have an example of mapbox flyTo.

事实上,我在所有项目中都亲自使用了此功能,并将这些属性添加到用于生成每个3D对象的 feature.properties

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

这篇关于如何在Threebox中更改相机位置?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆