"We offer new support options and therefor the forums are now in read-only mode! Please check out our Support Center for more information." - Vuforia Engine Team

Resetting image target detection

Hello,

I am using Vuforia image target (with extended tracking) for a HoloLens app. When the image target is detected, I am disabling Vuforia detection  VuforiaBehaviour.Instance.enabled = false;. At the same time, I am skipping disabling of Renderer, Collider and Canvas in DefaultTrackableEventHandler.OnTrackingLost() in my overridden method so that detected model stays there.

Now, when I try to start Vuforia detection again VuforiaBehaviour.Instance.enabled = true, even before I look at the image target, DefaultTrackableEventHandler.OnTrackingLost() is triggered and the image target gets activated. And, I can see the model in exactly same position where it was visible earlier. In an ideal scenario, when I enable Vuforia detection again, it should scan for the image target to trigger the experience which is not the case here.

Is that because I have used extended tracking and HoloLens still keep track of that object? How can I reset or release that?

What is the best way to reset tracking in this approach?

Any help will be appreciated. Thank you.

 

 

As far as I know, the extended tracking is implemented using the worldanchors of the Hololens, so I assume you need to remove the worldanchor from the tracked object manually before starting to track again.

Ok. Let me query the objects to see whether WorldAnchor is added to that GameObject. Since I am running the app after deploying to device, I have no option to see whether WorldAnchor is added to the object in Unity inspector.

I'll give a try and will update the thread.

Thanks,