By gary-oak
on Mon, 09/24/2012 - 09:43
I need to detect if the frame markers are positioned in ascending order of ID from left to right, e.g. [0] [1] [2] [4] [6].
The endgoal is to change the 3D model for any marker that is in the incorrect order, e.g. [0] [3] [2] [4].
Does anybody know of a simple solution or can provide hints? I'm fairly new to this - so far I have edited the FrameMarkers sample to pass the trackable ID to java, and to dynamically change the 3D object on screen touch.
Thanks for any help.
Sorting frame markers based on id ascending
You should be able to accomplish this by analyzing and comparing the pose matrices for your frame markers (e.g. trackable->getPose() in the sample ).
Sorting frame markers based on id ascending
Thanks, this worked for me.