AR Foundation and HRD/Lightning issue or a feature?

Hi,
I am working on image processing project with AR Foundation. It’s important for me to read accurate colors as much as possible and average them over time. However, I noticed that scene/camera gets different light when I rotate it.

On left, chair image comes as gray. The moment I turn the camera down (it’s the same position), image get’s more light and becomes kind of blue.


Is this something that can be configured from Unity camera/AR/lighting settings? I tried turning/tweaking HDR. I also experimented with auto focus.

I know that by using my OS phone camera, I am getting similar result and it’s probably a camera feature but in this case, I want the same chair color regardless how I rotate the phone.

Anyone?

Wild guess.
I would say that your camera (real camera) is using some kind of auto exposure system.
Or maybe it is in unity ? But still it looks like exposure problem.

ARKit (on iOS) and ARCore (on Android) do make changes to various camera settings at runtime. You could try disabling autofocus to see if that improves your scenario by setting ARCameraManager.autoFocusRequested to off.

https://docs.unity3d.com/Packages/com.unity.xr.arfoundation@4.2/api/UnityEngine.XR.ARFoundation.ARCameraManager.html#UnityEngine_XR_ARFoundation_ARCameraManager_autoFocusRequested

1 Like