google-ar / arcore-unity-extensions

Google ARCore Extensions and Geospatial Creator for Unity's AR Foundation
Other
354 stars 96 forks source link

Camera colors are inverted in the camera feed #140

Open VicM opened 1 year ago

VicM commented 1 year ago

I have a unity project with Vuforia that uses ARcore

Unity version: 2022.3.7f1 Vuforia version: 10.17 linear color space rendering pipeline: URP

I was using the include ARCore checkbox in Vuforia but i had to turn it off and manually add AR code (arcore_client.aar) in the Assets/Plugins/Android folder to ensure ARCore was included as it seems vuforia did not include it and in some devices the ground plane tracking was not working.

As expected AR code was included in the build (APK) and my ground plane tracking started to work, however i noticed a change:

Testing on a physical device: xiamo poco x3 nfc the camera feed colors looks inverted, not the UI elements, just the camera feed. However in a Galaxy S8 phone colors looks ok.

I am attaching the screenshots off the app with the colors inverted and a normal picture i take with the camera to show the differences.

This issue describe a very similar behaviour report here in and old unity ar code repo: https://github.com/google-ar/arcore-unity-sdk/issues/244

1694199044741 1694199044728

Any possible solutions or workarounds? Thanks!

devbridie commented 1 year ago

Just to narrow it down to a device issue -- have you been able to try the HelloAR sample (in Java) or the default AR Foundation sample, or any other AR application?

Please provide the device fingerprint so I can procure a similar device: adb shell getprop ro.build.fingerprint.

VicM commented 1 year ago

Hi, Here the device fingerprint: POCO/surya_global/surya:12/SKQ1.211019.001/V14.0.2.0.SJGMIXM:user/release-keys

I have not tried any other AR apps outside the ones I have developed using Unity the past couple of years and I have observed this incorrect colors in this device particularly since a while ago using different Unity and Vuforia versions.