Unity-Technologies / arfoundation-samples

Example content for Unity projects based on AR Foundation
Other
3.03k stars 1.13k forks source link

Light estimation and direction shows unavailable #539

Closed rezonated closed 4 years ago

rezonated commented 4 years ago

Unity 2019.3.14f1 ARFoundation 4.1.0 preview 2 iPhone 7 iOS 13.5.1 Latest samples IMG_3774

Hi, there. Is this kind of behavior normal on iPhone 7 device? I'm trying to see how the light estimation and direction functionality works. Before this all the text fields are showing 'unavailable' and then I looked around in the AR Camera game object, inside the AR Camera Manager component that the Light Estimation option could be set to everything, thus I selected that option. The only thing that has changed is the brightness value. image

Is there something else that I've probably missed? Or is it normal on iPhone 7? Since I saw the Readme.md file for this repo and I saw that a virtual arrow (I assume it is for showing the light's direction) requires camera that is equipped with TrueDepth that is not present in iPhone 7's camera.

image

466 I also see this issue where as @tdmowrer stated that ARKit only returns intensity and temperature, but oddly enough the color temperature does not showing any value at all.

image

So yeah, is this normal? Or is there something that i might have missed?

Thank you in advance.

mdurand42 commented 4 years ago

This looks like a bug. We will investigate.

christougher commented 4 years ago

Same here on iphone 6s but works fine on an XR. I thought perhaps it was a limitation of the device.

mdurand42 commented 4 years ago

This has been addressed in the newly updated Light Estimation sample.

https://github.com/Unity-Technologies/arfoundation-samples/commit/37a47c95e161fb9857e4b8375ddd3ab64a4e782d