tomthecarrot / arcore-for-all

Google ARCore (dev preview 1) for "unsupported" Android devices
GNU General Public License v3.0
1.04k stars 145 forks source link

Unreal Engine support #10

Open paramsen opened 6 years ago

paramsen commented 6 years ago

Any clues on how to get it working with Unreal?

tomthecarrot commented 6 years ago

I imagine that internally it's a similar process to the Unity version: the AAR library that is eventually copied to (or compiled together with) the built APK must be replaced with the modified version. However, there is currently not a lot of information, as Google seems to have either pulled or not yet published their Unreal Engine repository. Additionally, it appears to require building Unreal from source. Unfortunately I do not have time to do that at the moment, but I am happy to assist anyone who is interested in doing that.

unktomi commented 6 years ago

Look in Engine/Source/ThirdParty/TangoSDK. You'll find an aar which you can apply a similar hack to.

xmak commented 6 years ago

Hi unktomi.

I also want to try this with Unreal, but I'm having problems finding the file you mentioned.

I have searched for *.aar files in UE 4.18 (preview version), and in Googles own fork 4.17-arcore-sdk-preview (cloned from the google-ar-unreal repo), but I couldn't find the file you mentioned.

Can you specify more precisely, what is the file in UE that should be used for applying the hack, and in which version of UE can be found?

Thank you.

unktomi commented 6 years ago

https://github.com/google-ar-unreal/UnrealEngine/tree/4.17-arcore-sdk-preview/Engine/Source/ThirdParty/TangoSDK/lib/tango_java_lib

xmak commented 6 years ago

Thank you for the link. I didn't find it myself because I forgot to switch to the 4.17-arcore-sdk-preview branch after cloning the repo,

Thanks for the help, and sorry for bothering you.

xmak commented 6 years ago

I can confirm that this works both with google-ar-unreal repo, and latest UE 4.18 preview official branch.

The process is very simple:

If everything goes ok, you will have a working version of the editor with the modified AAR included.

kaimelis commented 6 years ago

Hey xmak. i have tried building for UE4 but the only thing doesn't work is camera. it's says not available the ransform of camera. know how to fix that maybe?

carlesgutierrez commented 6 years ago

Hello @xmak and all, Should this .aar replacement work also for oficial UE 4.19? Right now official UE4 4.19 branch is using ARCore 1.0. And the one from Google it's using ArCore 1.1. So I'm wondering if that replacement will work for both or only for that ones using ArCore1.0. Pd: I do not see any more that aar file or even Tango Folder in 4.19 branches.