本部分将介绍一些影响使用 Unity 开发 Vuforia 增强现实/混合现实应用程序的重要 XR 平台设置。
下面列出了 Vuforia Unity 集成中使用的重要 XR 设置。要访问这些设置,请打开 Player 设置(__Edit__ > Project Settings__,然后选择 Player__ 类别),然后选择目标构建设备的相应选项卡):
__Vuforia Augmented Reality support__:在应用程序中启用 Vuforia 增强现实支持
__Virtual Reality SDKs__:允许将 Vuforia 功能集成到 VR 应用程序中。选中 Virtual Reality Supported 复选框时显示此菜单。
Vuforia 支持以下 XR SDK:
Vuforia VR SDK__(位于 Virtual Reality SDKs__ 列表中)是一种没有外部依赖项的独立 VR 配置。该 SDK 提供立体渲染和失真校正、头部和手部跟踪(具有适用于 Tango 的位置跟踪)以及查看器配置文件支持(用于定义各种 VR 头盔的参数)。
立体渲染方法仅在使用 Vuforia 虚拟现实 SDK 时才有意义。Android、iOS 和 Windows Mixed Reality 设备支持多通道实例化、单通道实例化和非实例化。
将 Vuforia 增强现实与另一个虚拟现实 SDK 结合使用时,立体渲染支持由所使用的虚拟现实 SDK 决定。
建议:__在 Unity 的 Player 设置(菜单:__Edit > Project Settings__,然后选择 Player__ 类别),选择目标构建设备的相应选项卡以打开 Other Settings 面板,并启用 Use Auto Graphics API。
Android | iOS | Windows |
---|---|---|
OpenGL ES 2.0 OpenGL ES 3.x |
OpenGL ES 2.0 OpenGL ES 3.x Metal (iOS 8+) |
Windows 10 上的 DirectX 11 |
Vuforia 提供了许多功能来协助开发 AR/MR 应用程序。
下表列出了这些功能以及支持它们的操作系统和设备类型。
功能 | 描述 | 操作系统 | 手机设备 | 眼镜 |
---|---|---|---|---|
图像目标 | 跟踪平面图像 | Android、iOS、UPW | 是 | 是 |
多个目标 | 跟踪图像的几何排列 | Android、iOS、UPW | 是 | 是 |
圆柱体目标 | 跟踪包裹在圆柱和圆锥上的图像 | Android、iOS、UPW | 是 | 是 |
用户定义的目标 | 跟踪用户在运行时捕获的图像 | Android、iOS、UPW | 是 | 不推荐 |
云端识别 | 基于云端的图像目标 | Android、iOS、UPW | 是 | 是 |
设备跟踪 | 3 DoF 和 6 DoF 位置跟踪* | Android、iOS、UPW | 是(仅限于 6 DoF) | 是(仅限于 6 DoF) |
VuMark | 可定制、可编码的 AR 标记 | Android、iOS、UPW | 是 | 是 |
对象识别 | 跟踪扫描中的 3D 对象 | Android、iOS、UPW | 是 | 是 |
模型目标** | 跟踪 3D 模型中的 3D 对象 | Android、iOS、UPW | 是 | 是 |
智能地形 | 跟踪用户环境中的表面和几何体 | Android、iOS、UPW | 是 | 受限 |
AR + VR | VR 应用程序的 AR 功能支持 | Android、iOS、UPW | 是 | 是 |
* Tango 和 HoloLens 设备可使用 6 种自由度跟踪
** 模型目标通过 Vuforia 早期访问计划 (Vuforia Early Access Program) 提供并在 Unity 2017.3 中公开
Did you find this page useful? Please give it a rating:
Thanks for rating this page!
What kind of problem would you like to report?
Thanks for letting us know! This page has been marked for review based on your feedback.
If you have time, you can provide more information to help us fix the problem faster.
Provide more information
You've told us this page needs code samples. If you'd like to help us further, you could provide a code sample, or tell us about what kind of code sample you'd like to see:
You've told us there are code samples on this page which don't work. If you know how to fix it, or have something better we could use instead, please let us know:
You've told us there is information missing from this page. Please tell us more about what's missing:
You've told us there is incorrect information on this page. If you know what we should change to make it correct, please tell us:
You've told us this page has unclear or confusing information. Please tell us more about what you found unclear or confusing, or let us know how we could make it clearer:
You've told us there is a spelling or grammar error on this page. Please tell us what's wrong:
You've told us this page has a problem. Please tell us more about what's wrong:
Thank you for helping to make the Unity documentation better!
Your feedback has been submitted as a ticket for our documentation team to review.
We are not able to reply to every ticket submitted.