Front camera snapshot while using back camera for AR?

Hi all,

We’re trying to get a snapshot from the front camera while we use the back camera for AR plane tracking. I don’t even need a streaming camera feed, I just need to grab a single snapshot from the front camera.

I have tried to do it using WebCamTexture, and even if I use the front facing camera for the WebCamTexture, I can’t get it to work. On Android the WebCamTexture wont start streaming from the front camera if the back camera is used for ARFoundation. On iOS the ARFoundation tracking breaks if we turn on the front camera for WebCamTexture.

Is there a way to get a snapshot from the front camera, while using back camera for AR plane tracking?

We’re on ARFoundation 3.0.1 and Unity 2019.2.11.

Thanks a lot in advance for all help.

Kind regards,
Uffe Flarup

I just updated to ARFoundation 3.1.0 preview 1, and tested the RearCameraWithFrontCam scene from the ARFoundation Samples repository.

However, it seems like using the front camera disables the back camera, and the surface tracking with the back camera easily can loose tracking meanwhile.

Is there a way to utilize both cameras simultaneously?

Any help would be much appreciated.

Kind regards,
Uffe Flarup

No. Neither ARCore nor ARKit allows you to capture video from the front-facing camera while tracking from the back-facing camera.

Thank you very much for clarifying this. Hope they both will add this feature in the near future :wink: