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

查看:90
本文介绍了在低端设备中支持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.

(是的,苹果似乎花了点时间在这里讲故事.回到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天全站免登陆