Because I want to switch from the back to the front camera at running iOS device.And then search review Unity document.I think I can to use WebCamTexture switch device camera, get new Camere pixels info.and reset YUV texture at UnityARVideo.
But It is to my mind,Maybe have some option can use in ARKit API reference? I’d like to use it.
Front facing camera can only be used with ARKit if you have iPhone X, and only for the face tracking configuration. You can only have one configuration active at a time as well, so either front for face tracking or back for regular arkit apps.
Thanks for the answer. Jimmya.
By the way. The video demo is Animoji-like project by our team,and using Animator and Blend Shape on face tracking component.Model is Unity-Chan from Unity Japan.
If it is possible give me some comment,please. Thanks. And enjoy it !
is it possible to get anything from both cameras at the same time? I tried to get video from the portrait camera while running AR on the back facing camera, it could only bring in one frame then stopped.
Can I use two scenes, one with the front facing and one with the rear facing?
I’m trying with the ARKit 1.5 sample scenes and it doesn’t seem to work. First scene is the face mesh sample ( front ) , second scene is the sample mesh painter. ( rear )
@jimmya has there been a update so the front camera can also be used for regular arkit tracking? specifically focusing on object recognition. I want to be able to flick front back to front camera no need for face tracking
I am changing the back camera to the front camera using the ARFoundation 4.0.2.
There is an option to select either the “World” or the “User” camera. The changing camera works fine on an iPhone 11 and higher. I have not tested it on an iPhone X but it is not working on an iPhone 8.
I have the Face tracking disabled, I am just changing the “World” camera to the “User” camera by following the samples of ARKit provided.
This is the log that I see on Xcode:
Using session configuration 0x1e74da940
Requested Features: User Facing Camera
Supported Features: (None)
Requested features not satisfied: User Facing Camera
UnityEngine.XR.ARSubsystems.XRSessionSubsystem:smile:ebugPrintConfigurationChange(Configuration, Feature)
UnityEngine.XR.ARSubsystems.XRSessionSubsystem:Update(XRSessionUpdateParams)
UnityEngine.XR.ARFoundation.ARSession:Update()
Hi everyone, this video describes how to check supported configurations per device which may be helpful. Going to close this thread since it’s outdated. If you have additional questions, please start a new thread and the team will be happy to help. Cheers!