Search code examples
swiftaugmented-realityscenekitarkit

How to set ARSCNView to non-mirroring?


When ARSCNView is configured as ARFaceTrackingConfiguration, how can it be set to non-mirroring ?


Solution

  • Selfie camera's matrix is mirrored absolutely correctly.

    ARFaceTrackingConfig uses selfie camera that is oriented 180 degrees - away from the rear camera. Such an orientation places a user's face in the positive Z direction. To the right of the user is the negative X-axis. Thus, when combining the scene with the ARWorldTrackingConfig and ARFaceTrackingConfig, we get an absolutely correct 3D environment.

    enter image description here