google-ar / arcore-unity-sdk

ARCore SDK for Unity
https://developers.google.com/ar
Other
1.4k stars 402 forks source link

Light Estimation not working in released application #636

Open knightcube opened 4 years ago

knightcube commented 4 years ago

SPECIFIC ISSUE ENCOUNTERED

I developed a game in unity. Here is the closed beta version - https://play.google.com/store/apps/details?id=com.xrcubes.arminoes

When I developed and tested on my device the colors of the objects were like this - Screenshot_20190902-090948

But on downloading from playstore, the colors are very dull - WhatsApp Image 2019-09-03 at 20 41 13

What could be the potential reason for this?

VERSIONS USED

bopangzz commented 4 years ago

Can you clarify is the problem that the color looks different between development build and shipped build? Are you testing the app in the same environment? Not that if you have light estimation turned on, the lighting condition difference may affect the result.

knightcube commented 4 years ago

@bopangzz yes I am testing in the same environment and yes the problem is that color looks different in both the builds.

knightcube commented 4 years ago

So I digged in a little more and found that if I keep the Player Settings > Other setting >Configuration > Scripting backend as Mono. Then the colors look bright. However the backend scipting needs to be IL2CPP so that the project supports ARM64 architecture which is, as of 1st August, a requirement for all apps on play store. Now what should I do to fix this issue?

bopangzz commented 4 years ago

There is a bug in Unity 2019.1 and IL2CPP which is causing this issue: https://github.com/google-ar/arcore-unity-sdk/issues/614 This should be fixed in next release.

dax0229 commented 4 years ago

I temporarily fix it and applied it to my app, and it works fine. #627