MARS Face Tracking on iOS

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!

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.

1 Like