Support for Multiple Targets


#43

Hey jvouillon thanks for share this. It’s very good for me!

I have a question: How can i increase the image tracking detection? I’ve create a third trackingImage symbol but only detects the trackingImage_0 and trackingImage_1

I read the code but i’m not sure where you increase the targets tracking.

Cheers,

Pablo.


#44

Change the number in “++trackingImageIndex>1” to one less than the number of your tracking images since its zero indexed.

function nextTrackingImage(){
trackingImageIndex = (++trackingImageIndex>7) ? 0 : trackingImageIndex;
trackingImageDisplayed = Z.Symbol(“trackingImage_”+trackingImageIndex);
}