在低端设备上支持 ARKit 吗? [英] Support ARKit in lower end devices?

查看:19
本文介绍了在低端设备上支持 ARKit 吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在 Apple 的演示中,他们说如果不支持 ARWorldTrackingConfiguration,我们可以使用较小的 AROrientationTrackingConfiguration(以前称为 ARSessionConfiguration).

In Apple presentation they said if ARWorldTrackingConfiguration not supported we can use the lesser AROrientationTrackingConfiguration (previously named ARSessionConfiguration).

但是当我在 A8 设备(iPad mini 4)上尝试这个时,是否让 ARWorldTrackingConfiguration() 失败并没有区别.跟踪根本行不通.

But when I try this on an A8 device (iPad mini 4), it makes no difference whether to let ARWorldTrackingConfiguration() fail or not. Tracking just don't work.

if ARWorldTrackingConfiguration.isSupported {
    let configuration = ARWorldTrackingConfiguration()
    sceneView.session.run(configuration)
}
else {
    sceneView.session.run(AROrientationTrackingConfiguration())
}

如果 A8 不支持 ARKit,那么支持 AROrientationTrackingConfiguration() 有什么意义?

If A8 will not support ARKit, what's the point of supporting AROrientationTrackingConfiguration()?

推荐答案

所有 ARKit 仅支持 A9 及更高版本,包括 AROrientationTrackingConfiguration.正如他们在 ARKit 文档...

All of ARKit supports only A9 and up, including AROrientationTrackingConfiguration. As they say at the top of the ARKit docs...

重要ARKit 需要配备 A9 或更高版本处理器的 iOS 设备.

Important ARKit requires an iOS device with an A9 or later processor.

要使您的应用仅在支持 ARKit 的设备上可用,请使用应用 Info.plist 的 UIRequiredDeviceCapabilities 部分中的 arkit 键.如果增强现实是您应用的次要功能,请使用 isSupported 属性来确定当前设备是否支持您要使用的会话配置.

To make your app available only on devices supporting ARKit, use the arkit key in the UIRequiredDeviceCapabilities section of your app's Info.plist. If augmented reality is a secondary feature of your app, use the isSupported property to determine whether the current device supports the session configuration you want to use.

因此,您确实可以制作仅在部分 iOS 11 设备上可用的 iOS 11 应用程序.在 UIRequiredDeviceCapabilities 中要求某些内容会使 App Store 不会在您不支持的设备上提供您的应用程序,并使 iTunes 拒绝安装该应用程序.

So you can indeed make an iOS 11 app that's available only on a subset of iOS 11 devices. Requiring something in UIRequiredDeviceCapabilities makes the App Store not offer your app on devices you don't support, and makes iTunes refuse to install the app.

(是的,Apple 似乎花了一些时间才把他们的故事讲清楚.回到 WWDC,他们似乎支持在较小的设备上进行 3DOF 跟踪,但现在你甚至需要 A9.)

(Yeah, it looks like Apple took a bit to get their story straight here. Back at WWDC it looked like they'd support 3DOF tracking on lesser devices, but now you need A9 even for that.)

那么 AROrientationTrackingConfiguration 现在有什么意义?

So what's the point of AROrientationTrackingConfiguration now?

对于某些类型的应用,当当前条件不允许 6DOF 时,从世界跟踪 (6DOF) 退回到仅方向跟踪 (3DOF) 可能是有意义的.这对于将虚拟物体放在桌子上的应用来说没有多大意义,但如果你只是将太空入侵者放在空中供玩家射击,或者使用 AR 在天空上叠加星座,那么失去 6DOF 就不会了.太破坏体验了.

For some kinds of app, it might make sense to fall back from world tracking (6DOF) to orientation-only tracking (3DOF) when current conditions don't allow 6DOF. That doesn't make much sense for apps where you put virtual objects on tables, but if you're just putting space invaders in the air for your player to shoot at, or using AR to overlay constellations on the sky, losing 6DOF doesn't wreck the experience so much.

这篇关于在低端设备上支持 ARKit 吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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