arfoundation-samples icon indicating copy to clipboard operation
arfoundation-samples copied to clipboard

BasicLightEstimation - adding light direcition

Open novavision opened this issue 1 year ago • 2 comments

So, as we know there are 2 samples - Basic and HDR light estimations. Everything clear about iOS - ARKit supports only Basic (brightness & color), while Android is much interesting... I got pretty old Xiaomi K20Pro, and testing sample scenes I found that it tracks HDR values using back camera, but if ARCameraManager light estimations is set to Everything, it provides only HDR data, but doesn't provide brightness and color temperature and vice versa - if I enable Ambient Intensity and Ambient Color + Main Light Direction I can get only direction values.

Not sure it should be like that. The idea is to use basic brightness and color values, but also add light direciton.

Is it possible at all? Or, at least, is it possible to define what options may be enabled on the current Android device?

novavision avatar Jun 01 '23 07:06 novavision

Hi @novavision, I have noticed the same issue. The team that implemented the Android HDR feature several years ago did not document their work unfortunately. We have created a task to update our docs to include information about Android HDR, but I don't know the answer to your question offhand.

andyb-unity avatar Jun 21 '23 18:06 andyb-unity

Or, at least, is it possible to define what options may be enabled on the current Android device?

Different devices support different combinations of light estimation types, and few (or none) support them all. Thus, if you request all of them, you get whatever is determined to best support what you asked for, which can vary. You can reason about which configuration will be chosen given a set of requested features (see DetermineConfiguration) and you can override the default behavior by implementing a custom "configuration chooser".

tdmowrer avatar Jun 23 '23 04:06 tdmowrer