arfoundation-samples
arfoundation-samples copied to clipboard
BasicLightEstimation - adding light direcition
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?
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.
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".