Log in or register to post comments

Device Tracking breaks Face Camera on iOS

December 20, 2017 - 1:35pm #1

Vuforia SDK Version: 7.0.36 -

Description with steps to reproduce: 1. What happened?
When Vuforia is configured to "Track Device Pose", switching the mobile device's camera direction from Back to Front freezes the camera feed that is displayed on the scene ARCamera.

2. How we can reproduce it?
This can be reproduced with the Vuforia Core Sample Project. Just tweak the VuforiaConfiguration.asset to use Device Tracking. ie. have "Track Device Pose" enabled. and make sure the ARCamera should have "World Center Mode" = "Device_Tracking". Then just Build the Sample Project to an iOS device. When the app opens try to toggle between the front and back camera in the menu options (double tap). If it doesn't happen on the first attempt, toggle the camera direction a few times. To see that this is caused by Device Tracking, you can rebuild the project with the "Track Device Pose disabled and the bug will not occur. -

Development OS (Mac OS X, Windows, Linux): Mac OS X -

Mobile OS and Version: iOS 11 -

Mobile Device Manufacturer and Model name: Apple iPhone and iPad -

Do the Vuforia Sample Applications show the same behavior?: Yes. see above.

Device Tracking breaks Face Camera on iOS

April 18, 2018 - 2:30pm #6

Hello,

When switching between Device Tracking WCM and another WCM, make sure you disable the Positional Device Tracker.

PositionalDeviceTracker pdt = TrackerManager.Instance.GetTracker<PositionalDeviceTracker>();
if( pdt != null && pdt.IsActive )
{
   pdt.Stop();
}
VuforiaManager.Instance.WorldCenterMode = VuforiaARController.WorldCenterMode.FIRST_TARGET;

Run code similar to this before switching to the front camera.

Please note that in my experience the Unity Inspector does not properly update the state of the WCM when using Playmode. You can confirm the WCM you have set by reading back the WCM field above.

Thanks,

Vuforia Support

Device Tracking breaks Face Camera on iOS

April 18, 2018 - 12:05pm #5

Just want to reiterate that this bug still exists in the most recent Vuforia (7.0.47) and Unity (2017.3.1f1). Can we please get a response from Vuforia Support on the status of this ship-stopping bug?

FYI, Vuforia confirmed this bug by email and recommended that we not use device tracking when in selfie mode. Unfortuanately, we have been unsuccessful at changing tracking mode at runtime. We are using the following without success.

if (isFrontCamera)
    VuforiaARController.Instance.SetWorldCenterMode(VuforiaARController.WorldCenterMode.FIRST_TARGET);
else
    VuforiaARController.Instance.SetWorldCenterMode(VuforiaARController.WorldCenterMode.DEVICE_TRACKING);

Device Tracking breaks Face Camera on iOS

February 9, 2018 - 6:57am #4

+1 on this.  I've been waiting for this to get fixed for a long time.  Bug been around since 6.2 or so, seems like it should've been sorted by now.

 

Device Tracking breaks Face Camera on iOS

February 9, 2018 - 1:55am #3

Oh, find out, that it is known issue according to release notes.

Device Tracking breaks Face Camera on iOS

February 9, 2018 - 1:34am #2

Hello.

 

We have the same issue.

And it's necessary for our project to have an ability to switch camera and make a selfie with augmented objects.

 

Thanks.

 

Log in or register to post comments