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

[Camera upside-down] Nexus 5X with Pixel build.prop device name #93

Closed abdullahibneat closed 4 years ago

abdullahibneat commented 6 years ago

It works, however camera is upside down... I was expecting ARCore to use Google's newest camera API which should fix the problem (more about it from The Verge).

The way I changed the device name is by using Magisk Root and using the Pixelify Magisk Mod (which is nothing more than a build.prop with device name to "marlin") to trick apps to think your device is a Pixel.

I attach a screenshot below (from the Sketchfab app, which recently added ARCore support). screenshot_20171112-193446

abdullahibneat commented 6 years ago

Logcat from running the sample HelloAR core with your edits. logcat.txt

Also, I tried to run WebAR on ARCore.... Interestingly, the camera is displayed correctly, but no surfaces are detected...

Lastly, I forgot to mention I got the Tango Core directly from Google's repo... Am I supposed to use a custom version of it?

tomthecarrot commented 6 years ago

I added a modified service APK to the repo, which is based on research in the service-mod branch. Your progress is promising, so please let us know if the new service works!

KeiShadow commented 6 years ago

in my project i solve this problem like this: 1) i set in manifest the app will be in landscape mode 2) in OnCameraFrame im used this method Core.flip(mRgba,mFlip,1); Core.flip(mFlip,mRgba,0); 3) Works very well:(