I'm building a HoloLens application in Unity to demo some AR concepts using Vuforia. I'm trying to display an overlay on top of an image target, but the Unity Canvas does not seem to cooperate with the DefaultTrackableEventHandler.
Usually the tracking found/lost enable/disable logic will work fine for the first couple of iterations of finding/losing the image target. However, it always ends with the canvas not being disabled on tracking lost, and then skipping to the current location of the image target every 3 seconds or so. The canvas remains in the position it was when tracking was lost, and when the target is within view again the canvas will jump to the location of the target after a few seconds. This repeats with this lack of continuous tracking while the canvas is enabled this entire time.
I've tried adding some custom logic to the tracking found/lost events to explicitly enable/disable any Canvas components found in the child hierarchy, but this does not seem to change anything.
Is there something special that I need to do for Canvas to work properly with the tracking found/lost events, or any detail that I could be missing?
Any advice is appreciated,
Thanks
Hello,
Hello,
The Extended Tracking feature behaves a bit differently on HoloLens compared to standard embedded devices. Let me explain.
Thanks for the reply!
Thanks for the reply!
Hello,
Hello,
Perhaps there is a terminology confusion, so let me define the Extended Tracking feature in hopes of a common understanding.
Ok, that makes much more
Ok, that makes much more sense. However, I'm unable to turn extended tracking off due to the editor/inspector having both the checkboxes for Extended Tracking and Smart Terrain disabled (image on my previous post). Any idea what's going on there?
Hello,
Hello,
This is not a known issue. However, Unity's HoloLens Technical Preview and Vuforia's EAP Extension are both in beta, thus, it is likely that bugs will be observed.
Just posting a follow up in
Just posting a follow up in case someone else runs into this:
I was not able to reproduce the bug with smart terrain and extended tracking deadlocking one other.
I think this has to do with
I think this has to do with what is enabled and disabled on tracking and on tracking lost.
Oh I solved it, was pretty
Oh I solved it, was pretty easy actually.
I added Canvas stuff: