Giter Site home page Giter Site logo

Comments (17)

bopangzz avatar bopangzz commented on June 28, 2024 1

Yeah, good to know that 4.20 source code version works fine!

from arcore-unreal-sdk.

bopangzz avatar bopangzz commented on June 28, 2024

It looks like it crashes because it has a corrupted AugmentedImageDatabase. Not sure how could that happened though. Can you attach the log when you build the application in Unreal editor?

from arcore-unreal-sdk.

SirLouLou avatar SirLouLou commented on June 28, 2024

You're right, I see some errors in the build log. But don't know what those mean. Below you can find the build log:

Log-BuildUE4.txt

Thank you very much for the fast response!

from arcore-unreal-sdk.

bopangzz avatar bopangzz commented on June 28, 2024

It is possible that the arcoreimg tool couldn't add some of your images because it doesn't have enough feature point. Can you try run the arcoreimg tool in the command line and see if you have any images that has 0 score?

See https://developers.google.com/ar/develop/c/augmented-images/arcoreimg for details.

from arcore-unreal-sdk.

SirLouLou avatar SirLouLou commented on June 28, 2024

I tried, and that's not the problem. I used the standard images that came with the package. I didn't change anything from the package. I immediately build the package on my S7 edge and it continuously crashes after opening. The 'AR handheld template' works just fine, so i don't get it why this won't work :(

Below some screenshots of my settings, if that may help:

image

image

image

image

from arcore-unreal-sdk.

bopangzz avatar bopangzz commented on June 28, 2024

Sorry I didn't realized you are building the Augmented Image sample. The image in that sample should work without problem. It looks like there is something wrong with the augmented image cooking process. The handheld ar works fine because it didn't load the augmented image database.

I wonder if it is because you have space in your Unreal Engine. Can you try put your Unreal Engine to a path without space and try package again? In particular, try remove space in the path in this command

../../../Engine/Plugins/Runtime/GoogleARCore/Tools/Windows/arcoreimg.exe build-db --input_image_list_path=S:/Program Files/Unreal Engine/UE_4.20/Engine/Plugins/Runtime/GoogleARCore/Intermediate/ARCoreImgTemp/image_list.txt --output_db_path=S:/Program Files/Unreal Engine/UE_4.20/Engine/Plugins/Runtime/GoogleARCore/Intermediate/ARCore

from arcore-unreal-sdk.

SirLouLou avatar SirLouLou commented on June 28, 2024

Hi bopangzz,

I did what you said and did even more than that. I deleted UE4.20, all the SDK's and all the CodeWorksforAndroid installation. I reinstalled everything and installed them directly on my S: drive (SSD). I downloaded a fresh ARCORE package from GIT and got the same result, the application crashes after launch.

image

image

It seems that the Google ARCore plugin isn't correctly loading at the beginning. Maybe it doesn't connect with the plugin correctly and cannot create the augmented images database.

image

Below you can find the UE4 log from this last build:

Log-BuildUE4-V2.txt

Below you can find the logcat when I launch the application on my S7 edge

It doens't want to upload. See my next comment for the logcat

image


Perhaps it is clearer for you if I show you the code that is highlighted in UE4 below:

Below you can find all code lines displayed in YELLOW in UE4:

image

image

image

image

image

Below you can find all code lines displayed in RED in UE4:

image

image

image


ps. I'm located in Europe, so our interactions could intefere depending on the time difference :)

from arcore-unreal-sdk.

SirLouLou avatar SirLouLou commented on June 28, 2024

Here you have my logcat from when I launch the application:

adbLogCat-V2.txt

Again, Tnx!

from arcore-unreal-sdk.

SirLouLou avatar SirLouLou commented on June 28, 2024

Hi bopangzz,

I want to let you know that I've read some simelar issues on this GIT and tried the following, but no results.

image

image

I also duplicated the the original database and deleted the old one, like BryanChrisBrown did above (also changed the name to 'none'. But still crashes after launch on S7 edge:

image

image


There is also an error that keeps repeating:

Folder doesn't exist:

image

And indeed, if I go to this path, the folder 'Tools' is missing in the GoogleARCore pluginsfolder.

image

Don't know why its missing, but every time when this error shoes up, the augmented image database is failing its build. So maybe there is a connection.

image

For my master thesis I am working on a project to showcase the possibilities of Augmented Reality in Marketing and advertisement. In mid August, I will have my first presentation. I hope this issue will fix before the end of this week, so I can start building my project in UE4 :/

Nevertheless, I'm convinced that ARCore will be a breakthrough in 2019 and wish you developers all the luck with solving the problems that it will carry with :) 🥇

from arcore-unreal-sdk.

bopangzz avatar bopangzz commented on June 28, 2024

Hmm, it looks like the binary build of Unreal Engine is missing the Tools folder inside GoogleARCore plugin. You might need to use the source code version of Unreal Engine and build your self. You can find the source code version of 4.20 here: https://github.com/EpicGames/UnrealEngine of if you want to get the latest GoogleARCore integration, you can use Google's version of Unreal Engine which you can find here: https://github.com/google-ar-unreal/UnrealEngine. Note that the Google's version is currently on 4.19 for now.

from arcore-unreal-sdk.

bopangzz avatar bopangzz commented on June 28, 2024

Also, if you want to keep use the binary version of Unreal Engine. You can use the source code version of Unreal Engine and run the setup.bat script inside it. That script should download the Tools folder in GoogleARCore plugin and you can try copy it to the binary version folder.

from arcore-unreal-sdk.

SirLouLou avatar SirLouLou commented on June 28, 2024

Hi bopangzz,

Tnx for the tip! It's late at the moment. I will try this tomorrow morning and will update you on it.

from arcore-unreal-sdk.

SirLouLou avatar SirLouLou commented on June 28, 2024

Hi bopangzz,

After a lot of hassle (deleting, installing and debugging the installation of the source code UE4 & Visual Studio) I finally got a working build of the augmented reality ARCore package. I even uploaded a custom image and everything is tracking very well on my Galaxy S7 Edge :)

I finally can go and build my AR application in Unreal.

Tnx for all the help! :)

from arcore-unreal-sdk.

SirLouLou avatar SirLouLou commented on June 28, 2024

A screenshot from my phone:

image

from arcore-unreal-sdk.

bopangzz avatar bopangzz commented on June 28, 2024

@SirLouLou Glad you got it working! Just curious, are you using 4.20 source code version or Google's 4.19 branch?

from arcore-unreal-sdk.

SirLouLou avatar SirLouLou commented on June 28, 2024

First I tried to install Google's 4.19 branch. But when trying to install the GenerateProjectFiles.bat file, it gave me an error and didn't wanted to generate the projectfiles. I then installed the source code from Unreal version 4.20 but it gave me the same error. After re-installing, installing,... I did some research and found a solution on this post

I needed to install the "NuGet package manager" in Visual Studio Installer, which Unreal never mentioned (or updated) in their documentation files. I tried another time and it did generate all the project files and after that I could successfully launch the UE4 source code and build the Augmented Images package on my phone.

In short: I sticked with the 4.20 source code version of Unreal, but I think that Google's branch would have worked fine, apart from the general error it gave on the GenerateProjectFiles.bat file, but that isn't an issue from your development team's side.

I hope this information may be useful to you, when solving other problems in this branch. If I could help in any way don't hesitate to message me :)

from arcore-unreal-sdk.

bopangzz avatar bopangzz commented on June 28, 2024

The following issues mentioned on this thread should be fixed in the ARCore 1.4 release:

  • AugmentedImageDatabase cooking process correctly handles engine and project paths that contain spaces.
  • Fixed crash when starting ARCore session if AugmentedImageDatabase failed to cook correctly.

from arcore-unreal-sdk.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.