"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

tb.Trackable.ID incorrect

Vuforia SDK Version: vuforia-unity-android-ios-2-0-30.unitypackage - Description with steps to reproduce: If you get the ID of a frame marker using this method, the ID will be incorrect: StateManager stateManager = TrackerManager.Instance.GetStateManager(); foreach(TrackableBehaviour tb in stateManager.GetTrackableBehaviours()){ if(tb.CurrentStatus == TrackableBehaviour.Status.DETECTED || tb.CurrentStatus == TrackableBehaviour.Status.TRACKED){ //this ID will be incorrect tb.Trackable.ID For example, if marker 1 is tracked, the ID will show up as marker 4 - Development OS (Mac OS X, Windows, Linux): Windows - Mobile OS and Version: NA - Mobile Device Manufacturer and Model name: NA - Do the Vuforia Sample Applications show the same behavior?:

AlessandroB

Sun, 01/27/2013 - 08:51

Hi, the marker ID is obtained via the following API:

Marker.MarkerID

this is not the same as Trackable.ID, which represents a sort of "instance ID" of any trackable (be it an Image Target or a Frame Marker...);

I tried that as well but it is still incorrect as this screenshot proves:

http://pilotpage.monosock.org/fileadmin/hidden_files/bug.jpg

It states the ID is 4 instead of 1

The Marker.MarkerID belongs to the Marker class (interface), which works form Frame Markers, not for Image Targets.

The API has not changed in 3.0.9, see:

https://developer.vuforia.com/resources/api/unity/interface_marker