I have dual back camera on android. Can’t it use depth texture?
Will it anytime soon? Any problem or limitation?
I have dual back camera on android. Can’t it use depth texture?
Will it anytime soon? Any problem or limitation?
Hey it’s coming in 2018.3
@ My android have dual back and it does not work. It seem the release note mention that it only work in iOS and don’t work in android, even android also have dual back
Hey so let me just try to understand what you’re trying to do, I am correct in assuming that you want to get a depth preview from your dual hardware camera?
On ios it’s possible since ios devices have a depth camera.
My knowledge is limited in this subject so correct me if I’m wrong. On android having a “dual” camera, doesn’t actually equal to having a depth camera.
That means that doesn’t matter you can have 5 cameras but if the android os doesn’t provide a way for us to get depth data we can’t do much about it.
You could maybe/possibly, program a plugin which takes two images with the dual cameras and then based on some algorithm translate that into some sort of depth data and then pass that into Unity. But I can only image what this would take or even if this is possible.
@Mykolas_M What I know is in ios dual camera (not a TrueDepth camera) is the depth just came from a disparity map, not a real depth camera. So technically both android dual camera and ios dual camera has the same depth capability and technicality . And actually they was using it just for the same thing, a bokeh photoshot. So if ios dual camera can do anything, android should also able to too
But right, I’m not sure about the detail of lower level api in each platform, I would research a little bit more
@Mykolas_M OK I have a little more information
Currently now the API for accessing dual camera at once, aka multi camera Android 9-Funktionen und -APIs | Android Developers is exist only in android P which is API level 28 and that was not exist in unity yet
AFAIK the difference here is that Apple provides the depth data as a iOS platform feature regardless of the used technique and device (ie. dual cameras or depth sensors as newest iPhones have both). Android platform does not have any depth data support at the moment(?) and it would not make sense for Unity implement such support by themselves for different models. It would have to be a platform feature that phone manufacturers feed data to from their cameras and Android passing the standardized data to Unity.
@Ostwind I see now the android SDK is the blocking issue. Thank you very much