Search Unity

  1. Read here for Unity's latest plans on OpenXR.
    Dismiss Notice

Help Wanted MARS Face Tracking on iOS

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

  1. distastee

    distastee

    Joined:
    Mar 25, 2014
    Posts:
    58
    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.

    LASTLY

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

    Thanks!
     
  2. leweyg_unity

    leweyg_unity

    Unity Technologies

    Joined:
    Jan 29, 2020
    Posts:
    38
    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.
unityunity