标记在Unity中的ARtoolkit中无法正常工作 [英] Marker not working properly in ARtoolkit in Unity
问题描述
我正在使用Unity和ARToolkit进行一个简单的AR项目。出于测试目的,我创建了一个测试项目来跟踪图像并创建一个简单的3d球面,当我从Unity编辑器中对其进行播放时,它可以完美地工作。问题是,当我创建项目的build.exe时,将标记放在Camera前面时,应用程序不会扩展标记的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.
在这件事上请指导我,因为我必须将此项目提交给大学的最后一年的项目。 ThankYou
Kindly guide me in this matter as I have to submit this project to the university final year project. ThankYou
推荐答案
关于以下几点:
- 在构建APP期间标记ID的消失是正常现象,不会影响您的结果
- 在构建APP时,请检查您是否选择了正确的场景:
选择添加打开的场景按钮,然后勾选要包含在APP中的场景。
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,则应该没问题。
让我知道这是否对您有用。
Let me know if that works for you.
这篇关于标记在Unity中的ARtoolkit中无法正常工作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!