小编blu*_*nda的帖子

ARKit 的相机空间朝向是什么?

我想更好地理解 ARKit 的 ARCamera 变换所在的相机坐标空间。在文档中,它说

\n\n
\n

此变换为相机创建一个相对于设备方向恒定的局部坐标空间。在相机空间中,当设备处于UIDeviceOrientation.landscapeRightorientation \xe2\x80\x94 时, x 轴指向右侧,即 x 轴始终沿着设备的长轴指向,从前置摄像头朝向主页按钮。y 轴指向上方(相对于 UIDeviceOrientation.landscapeRight 方向),z 轴指向远离屏幕一侧的设备。

\n
\n\n

接下来,UIDeviceOrientation.landscapeRight 文档说:

\n\n
\n

设备处于横向模式,设备直立且主页按钮位于左侧。

\n
\n\n

当我试图理解这一点时,似乎"the x-axis points to the right when the device is in UIDeviceOrientation.landscapeRight orientation"和之间存在冲突"that is, the x-axis always points along the long axis of the device, from the front-facing camera toward the Home button"。前者向右有+x,后者向左有+x。

\n\n

这是我的想象"the x-axis points to the right when the device …

transform augmented-reality ios swift arkit

5
推荐指数
2
解决办法
2761
查看次数

标签 统计

arkit ×1

augmented-reality ×1

ios ×1

swift ×1

transform ×1