unity3d - 如何为 Vuforia/Unity 创建 AR 标记?

标签 unity3d augmented-reality vuforia

这是我知道的一个非常基本的问题(!),但是如何创建 AR 标记并将其导入 Unity?我知道我打算通过 Vuforia Marker Manager 页面来完成。我已经创建了一个目标数据库并下载了数据库,但是如何让标记在 Unity 中显示?

另外:目标数据库到底是什么?这是“标记”的另一个名称吗?

最佳答案

要具体回答您的问题,是的,您的标记就是您的目标。

所以你需要做的是:

  • 转至 License Manager . Add a License Key选择无作为您的许可计划。

  • 现在转到 Target Manager .创建 Database并从下拉列表中为其添加许可证。

  • 添加目标,然后从您的计算机中选择您想要成为标记的图像,然后上传它。

  • 一旦 Target 的状态变为事件状态,您可以单击“下载数据库”并确保单击“For UnityEditor”。这会下载一个 .unitypackage

  • 现在在 Unity 中,转到 Assets > Import New Assets...并定位到.unitypackage你下载了

这就是您导入数据库的方式。

If you haven't Imported the Vuforia package Unity Extension then you simply need to download it from the Downloads section and Import it through the Assets>Import Package> Custom Package

  • 现在最理想的情况是使用 AR,您可以使用 AR Camera ,位于您的 Assets酒吧 Qualcomm Augmented Reality > Prefabs .拖ARCamera到你的场景中。

  • AR CameraHierarchy 中选择看看Inspector标签。你会看到 Data Set Load Behavior .在此之下,您应该看到 .unitypakage 的名称你进口的更早。检查名称并使其成为Active .

  • 现在在 Qualcomm Augmented Reality > Prefabs您还应该看到 Image Target .也将其拖到屏幕上。

  • ImageTargetHierarchy 中选择看看Inspector应该有Image Target Behaviour

如下填写

Type: Predefined
Data Set: <Name of imported .unitypackage>
Image Target: <Name of Picture uploaded into the Database>

现在您可以根据您的应用要求解决图像目标。

NOTE: In the License Manager, click on the Name of the License and you'll see a Alpha-numeric code. Copy that code, and within the Inspector of the AR Camera, under QCAR Behaviour>App License Key paste the code in. This must be done in order for your app to work on your > device.

希望这对您有所帮助。请随时问我有什么问题。

关于unity3d - 如何为 Vuforia/Unity 创建 AR 标记?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/29876928/

相关文章:

swift - 如何点击更改模型的颜色,然后将其改回原来的颜色?

android - ARCore Android – 本地位置与世界位置

c# - 泛型类约束,其中 <T> 是约束泛型类的类型

c# - 如何在 Unity (C#) 中将字符串列表转换为单个字符串

ios - 在横向模式下使用 Core Motion

android - Vuforia 在 Android L 上初始化失败?

ios - 是否可以在没有相机的情况下使用 Vuforia?

unity3d - Vuforia - 使用 Cardboard 时看不到地形

Unity3D Slider onValueChanged 仅发送 0(或其他定义的值)

optimization - Unity3D:优化垃圾收集