You can use all 512 frame markers in a single project.
Here's the bit of code that creates the frame markers in the sample (in the initTracker method of FrameMarkers.cpp):
// Create frame markers:
if (!markerTracker->createFrameMarker(0, "MarkerQ", QCAR::Vec2F(50,50)) ||
!markerTracker->createFrameMarker(1, "MarkerC", QCAR::Vec2F(50,50)) ||
!markerTracker->createFrameMarker(2, "MarkerA", QCAR::Vec2F(50,50)) ||
!markerTracker->createFrameMarker(3, "MarkerR", QCAR::Vec2F(50,50)))
{
LOG("Failed to create frame markers.");
return 0;
}
The first parameter is the markerID. You could of course create the markers in a loop, just make sure each one has a unique name (e.g. append the markerID to the name string).
No, you cannot currently track the same marker multiple times.
- Kim
Thanks guy's but I posted this thread more then a year ago >.<
I tought I do point out that I already worked it out a long time ago eheh :P
@moderators
Is necroposting allowed?