wikitude-sdk-samples icon indicating copy to clipboard operation
wikitude-sdk-samples copied to clipboard

target

Open connie1010 opened this issue 7 years ago • 3 comments

hello, I am developing an augmented reality application and I am using wikitude however I would like to recognize several target (.wtc) in the js not only that recognizes one at a time, is that possible with wikitude?

connie1010 avatar Nov 23 '17 16:11 connie1010

It is possible indeed. Here is how to do it.

In short, make sure to download the latest version on the Wikitude SDK (7.1 currently) as multiple image target recognition is supported starting version 7.0, and set the maximumNumberOfConcurrentlyTrackableTargets property of your AR.ImageTracker.

The different targets you want to recognise must be in a single WTC file, as only one tracker may be active at a time.

danielguttenberg avatar Nov 24 '17 06:11 danielguttenberg

thank so much @danielguttenberg but In one section I need to have several .wtc files to recognise any target from the 10 .wtc files that I have, I've been watching the dinosaurs example (several targets) but in fact this is not the thing I need, because I don't want to recognise them all at once, but one at a time in the same js. Furthermore, in that example, they only use one .wtc file, but I have created 10 (because each one represents one sculpture in a museum or a dinosaur).

I mean, I don't want all the dinosaurs in the screen, I want them one by one but in the same screen depending on the QR that I would be focusing.

connie1010 avatar Nov 25 '17 19:11 connie1010

(duplicate of #15)

In short: you want one WTC file with ten targets in it and you want to not set maximumNumberOfConcurrentlyTrackableTargets (or set it to 1). Any one of your targets will be recognised, but only one at a time.

May I ask where you got the idea of using multiple WTC for this purpose files from?

danielguttenberg avatar Nov 27 '17 06:11 danielguttenberg