标记在 Unity 中的 ARtoolkit 中无法正常工作 [英] Marker not working properly in ARtoolkit in Unity

查看:23
本文介绍了标记在 Unity 中的 ARtoolkit 中无法正常工作的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用 Unity 和 ARToolkit 开发一个简单的 AR 项目.出于测试目的,我创建了一个测试项目来跟踪图像并创建一个简单的 3d 球体,当我从 Unity 编辑器中播放它时,它运行良好.问题是,当我创建项目的 build .exe 时,当我将标记放在相机前面时,应用程序不会增强标记的 3D 模型(从编辑器内部播放时它应该可以正常工作).在我构建项目时,它也显示了两个错误.请注意,我已将 .dll 文件包含在 .exe 文件所在的文件夹中.

I am working on a simple AR project using Unity and ARToolkit. For testing purposes, I have created a test project to track the image and create a simple 3d sphere and it is working perfectly when I play it from inside the Unity editor. The problem is that when I create the build .exe of the project, the application does not augment the 3D model of the marker when I put the marker in front of Camera (it should work as it is working when playing from inside the editor). It is also showing two errors as I build the project. Note that I have included the .dll files in the folder where .exe file is located.

我还看到,在构建项目后,标记的 UID 消失了,并且从 Unity 编辑器内部播放时它显示得很好.

Also I see that after building the project, the UID of the marker disappears as well as it is showing perfectly when played from inside the Unity Editor.

请在这件事上指导我,因为我必须将此项目提交给大学最后一年的项目.谢谢你

Kindly guide me in this matter as I have to submit this project to the university final year project. ThankYou

推荐答案

关于此的几件事:

  • APP构建过程中marker ID消失属于正常现象,不影响你的结果
  • 请检查您在构建应用程序时是否选择了正确的场景:

构建视图

选择添加打开的场景"按钮并勾选您想要包含在您的应用程序中的场景.

select the "Add open scenes" button and tick the scene(s) you would like to include in your APP.

(经常出现选错场景的情况)

(It happens quite often that the wrong scene is picked)

  • 还要确保您复制了正确版本的 dll(32 位与 64 位),但如果您从 [appname]_data/Plugins 目录中复制了 dll,则应该没问题.

告诉我这是否适合您.

这篇关于标记在 Unity 中的 ARtoolkit 中无法正常工作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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