By elecman
on Sat, 01/26/2013 - 10:04
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?:
tb.Trackable.ID incorrect
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...);
tb.Trackable.ID incorrect
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
tb.Trackable.ID incorrect
Indeed, as I was mentioning before, you need to use Marker.MarkerID and not Marker.ID;
tb.Trackable.ID incorrect
Hello,
tb.Trackable.ID incorrect
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