hopefully I'm in the right section...
I have a little problem to get the object recognition running and it would be great if anyone could help me out with it.
I have followed the instructions for unity: https://www.wikitude.com/external/doc/documentation/latest/unity/objecttrackingnative.html#object-tracking and also the tutorial on youtube: https://www.youtube.com/watch?v=mpflhDwhSwM
Sadly I couldn't get anything to work as expected.
I'm not quite sure if there is a problem with the wto file or a general one.
Currently I'm using SDK Version 8, so I had to upload 30 images to the targets manager and got a wto file which I have placed into unity as in the tutorial. My WikitudeCamera Object is also set and there is the licence key inserted. Also I have created a small cube which should be shown after the recognition. If I try to run the application on my phone there comes a message with trial all over the screen and then everything is freezing. If I run it on my desktop I see the webcam video but nothing happens if the object comes in view...
I have also tried to change the wto file in the sample with mine, but that doesn't change anything.
Would be very cool if someone has a idea what I could try next, or maybe what I have not done right...
Thanks a lot!
Does this info help:
Please also make sure that you use the latest beta available and to follow the instructions from the documentation that is included the Unity Beta SDK download package.
If the problem persists, please provide further details (Platform, error log,...).
Thx and greetings
thank you for the fast respond.
I'm quite sure, that I use the latest version and followed the instructions.
Unfortunately the info didn't helped me, I forgot to say, that I'm trying to develop an Android App. My development host is a Win 10 machine.
There seems nothing to be wrong with the build itself, because I do not get any errors. But after the app started on my Android device the first image that the camera gets stays there. Screen is never updating and it seems that the app crashes.
I'm not quite sure where I should get an error log from. I found nothing helpful on my device. In the class path are only some files from unity Analytics and my wikitude wto file.
Thanks for you help and best regards,
Can you please provide further details on the following:
Are other samples working as expected? Can you try e.g. with an Image Recognition sample.
Here we go...
Unity Version: 2018.1.6f1 Personal (64bit)
Android Device: Huawei P8 lite (Buildmodel ALE-L21)
Android OS: 6.0 - API Level 23
I tried to run the Image Marker - Simple. It's running perfectly on desktop but on my phone I got the same "error" / behaviour as before. After loading the camera view, the app freeze with the first image.
I have the following build options:
And these are my player settings, or let's say the important part of it.
Do you have any ideas? Thanks again!
Do you have any other device that you can test on? Since we didn't get any similar reports and we couldn't reproduce your issue ourselves, we'd like to know if this problem is only happening in the P8 Lite.
If that still doesn't work, could you please send us the logs from the device when the issue is occurring?
thank you for your reply. Sadly I do not have any other device to try on. But because I'm running out of time to finish it, I have choosen another solution. (Using a simple image marker instead)
I guess you can close this, thank you for your help!
I'm sorry you had to change to a different solution. However, you mentioned before that image markers were also not working for you. Did you change something in the project to get it to work?
I have a similar issue - can't get the object recognition to work on android devices. Video input from camera doesn't show up on the display. I can see only black screen with wikitude watermark and "trial trial trial" on the background instead.
I followed this video tutorial too: https://youtu.be/mpflhDwhSwM?list=PL3839D3D62346FD1D
Wikitude unity plugin version 8.0
Unity 2018.2.0f2 personal
Android device 1 - Philips V387, API version 19, OpenGLES 2 (blank black screen)
Android device 2 - Epson Moverio bt-300, API version 22, OpenGLES 3.1 (black screen with "trial-trial" overlay, nothing happens)
Though the app works in unity editor and even tracks the object.
Thank you in advance
Unity 2018.2 is not supported at the moment. This will be fixed in the next update.
Until then, please use 2018.1.
I've switched to unity 2018.1.9f1 but got the same result, unfortunately. What else can it be?
Here are my player settings:
Can you please try the project provided in the download package, without any modifications with Unity 2018.1? Hopefully that will tell us if the issue is with the project setup or with the device.
If it still doesn't work, can you please post the console log from the app when the SDK is starting up?
Does the issue happen with image or instant tracking as well, or only with object tracking?
Unity warns that the project, namely wikitude example, was saved with another version of unity and gives no other option than re-import assets on startup. So when I do that Unity opens up an empty scene. The project tree is default: main camera, light.
So it seems like unity modifies it somehow anyway...
That is expected. The project is saved with version 5.5 for backwards compatibility, but upgrading to a new version and reimporting it is not an issue.
It is also expected that it opens an empty scene, because you never opened any existing scene in that project. Have you tried building it?
I've successfully compiled and run the
WikitudeUnityExample and in the Unity Editor it works like a charm. However on the device I can only see the prompt to scan photos and a
black screen when point my cam at a dude with the surf. The same black screen is when I chose Simple Object Tracking and Instant Tracking.
08-13 10:06:17.298: I/Unity(3924): URL Resource loaded successfully. 08-13 10:06:17.298: I/Unity(3924): 08-13 10:06:17.298: I/Unity(3924): (Filename: ./Runtime/Export/Debug.bindings.h Line: 43) 08-13 10:06:18.578: I/Unity(3924): Targets loaded successfully. 08-13 10:06:18.578: I/Unity(3924): 08-13 10:06:18.578: I/Unity(3924): (Filename: ./Runtime/Export/Debug.bindings.h Line: 43) 08-13 10:24:19.633: W/Unity(4186): UnityPlayerNativeActivity has been deprecated, please update your AndroidManifest to use UnityPlayerActivity instead 08-13 10:24:19.869: I/Unity(4186): SystemInfo CPU = Intel x86 SSE3, Cores = 4, Memory = 1902mb 08-13 10:24:19.870: I/Unity(4186): ApplicationInfo com.wikitude.unityexample version 8.0.0 build e946dff0-b623-47fc-8a8f-9a56b0ca5835 08-13 10:24:19.870: I/Unity(4186): Built from '2018.1/release' branch, Version '2018.1.9f1 (24bbd83e8b9e)', Build type 'Release', Scripting Backend 'il2cpp'
08-13 10:50:02.406: E/Unity(4186): Could not check if tracking can be started because the InstantTracker doesn't exist! 08-13 10:50:02.406: E/Unity(4186): 08-13 10:50:02.406: E/Unity(4186): (Filename: ./Runtime/Export/Debug.bindings.h Line: 43)