Log in or register to post comments

VuforiaBehaviour.Instance.enabled = true doesn't automatically reinitialize trackers

June 20, 2018 - 8:29pm #1

I'm trying to re-initialize vuforia using VuforiaBehaviour.Instance.enabled = true as has been suggested. However, on doing so it doesn't seem to automatically reinitialize everything else like trackers/smart terrain/etc.

Also, the callback registered using VuforiaARController.Instance.RegisterVuforiaStartedCallback doesn't fire on re-initialization either.

How am I supposed to properly reinitialise the vuforia and all its components?

VuforiaBehaviour.Instance.enabled = true doesn't automatically reinitialize trackers

June 28, 2018 - 11:59pm #3

To rectify, after making sure that the disposal of everything camera related was finished, 

 

CameraDevice.Instance.Stop();

CameraDevice.Instance.Deinit();

...[take photo with the Hololens]

CameraDevice.Instance.Init(CameraDevice.CameraDirection.CAMERA_DEFAULT);

CameraDevice.Instance.Start();

 

worked as expected.

VuforiaBehaviour.Instance.enabled = true doesn't automatically reinitialize trackers

June 28, 2018 - 1:37am #2

I have a similar issue, as after I do a disable/re-enable the targets are not recognised anymore. I need to take some pictures with the Hololens in the same scene between target recognitions.

I tried both

VuforiaBehaviour.Instance.enabled=false;

...

VuforiaBehaviour.Instance.enabled=true;

and

CameraDevice.Instance.Stop();

CameraDevice.Instance.Deinit();

...

CameraDevice.Instance.Init(CameraDevice.CameraDirection.CAMERA_DEFAULT);

CameraDevice.Instance.Start();

Did anyone manage to find a suitable solution?

Log in or register to post comments