Search Unity

  1. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Question MARS Face Tracking on iOS

Discussion in 'Unity MARS' started by distastee, Jul 25, 2020.

  1. distastee


    Mar 25, 2014
    Hey Folks!
    I've been trying to get face tracking on iOS + MARS to play together nicely and haven't found a way. Everything works nicely on device (tracked 3d objects on a face). As soon as I add a MARS session, however, it removes my camera in "AR Session Origin" and places it in the MARS session. I then reconnect the camera to my AR Session origin script.

    When I run this setup on my device - the objects no longer show up on the face. Is there a step somewhere that I'm missing? Are these (weirdly) incompatible with each other? I'm using 4.0.2 for foundation/arkit and 1.0.2 for MARS.


    My MARS camera feed displays upside-down in the simulator but correctly on device. Whats the proper way to fix this?

  2. leweyg_unity


    Unity Technologies

    Jan 29, 2020
    After adding the MarsSession in your scene, be sure to zero out the transforms on the AR session, MarsSession etc. also you may have to keep the new arrangement rather than trying to return it (know issue).

    Re: upside down, this is using the built in face recordings? If you could post a sample project with that issue would be appreciated. Definitely check your transforms are all at the origin first.
    distastee likes this.