tomthecarrot/arcore-for-all

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

Closed this issue · 3 comments

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

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?

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!

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:(