google-ar / arcore-unreal-sdk

ARCore SDK for Unreal
https://developers.google.com/ar/
Apache License 2.0
277 stars 122 forks source link

ARCore not detected the target image #41

Closed worma27 closed 5 years ago

worma27 commented 5 years ago

Hello,

I am totally new using AR core. I am now using AR core package 1.6 and UE 4.20.3. I successfully build Augmented Images application on my mobile phone. I used Augmented Image sample file. I have a problem when I try to scan the target image, nothing got tracked and nothing showed on my screen.

What I am doing wrong? Any advise? Thank you in advance

47579849_1931959573767734_2289144704647823360_n

bopangzz commented 5 years ago

The Augmented Image sample in ARCore 1.6 release isn't compatible with Unreal 4.20.3 from Epic, as it uses our latest changes in GoogleARCore plugin to use the Unreal cross-platform api. You can:

  1. Use ARCore 1.5 release if you want to use the Epic version of 4.20.3
  2. Use our latest GoogleARCore plugin shipped with our forked version of Unreal Engine. You can find it here: https://github.com/google-ar-unreal/UnrealEngine
worma27 commented 5 years ago

Thank you. I have tried. Please help it error 1

bopangzz commented 5 years ago

Can you describe what you have tried? Which version of Unreal Engine you end up using?

worma27 commented 5 years ago

I use AugmentedImage example file from AR core package 1.5 and UE 4.20.3. I copy the folder of AugmentedImage to a new folder and run it. Then, set up in the project setting and lunch it.

Can you please help? What should I do? What I set up is below. I also would like to know what UE version that is compatible with ARcore package 1.6?

3 4

1 2

worma27 commented 5 years ago

I also try to remove Enable Gradle instead of Ant. It turns out like the picture below. I use Huawei Y9 2019.

screenshot_20181211-215127 1

5 6

bopangzz commented 5 years ago

It looks like your AR session failed to start. Can you attach the adb logcat so I can take a closer look?

worma27 commented 5 years ago

This is the logcat after I turn on Enable Gradle instead of Ant.

Logcat.txt

bopangzz commented 5 years ago

So you got the error because the editor failed to cook the AugmentedImageDatabase. I would suggest you to switch to use our forked version of Unreal Engine with the latest GoogleARCore plugin. But you will have to build from source code. You can find the forked repo here: https://github.com/google-ar-unreal/UnrealEngine

If you would like to stay on the Epic's version, we need to figure out why the cooking process failed.

worma27 commented 5 years ago

Thank you for your suggestions. Finally, I successfully build my AR app.

48372715_1864218933686847_307913090282815488_n

I followed the steps in the links below. https://forums.unrealengine.com/development-discussion/vr-ar-development/1494917-ue-4-20p4-arcore-image-database-cannot-build/page2

https://wiki.unrealengine.com/Dedicated_Server_Guide_(Windows_%26_Linux)

https://www.youtube.com/watch?v=u0jtHK7BdzY&feature=youtu.be