这是我知道的一个非常基本的问题(!),但是如何创建 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 Camera
在Hierarchy
中选择看看Inspector
标签。你会看到Data Set Load Behavior
.在此之下,您应该看到.unitypakage
的名称你进口的更早。检查名称并使其成为Active
.现在在
Qualcomm Augmented Reality
>Prefabs
您还应该看到Image Target
.也将其拖到屏幕上。与
ImageTarget
在Hierarchy
中选择看看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
, underQCAR 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/