Start a new topic

wikitude- object target

can i make different .wto file and integrate into unity and make different trakable for each .wto file? if yes then how do i do it? 


Hi,


Yes you can use your own .wto file and include up to 10 objects in a .wto for recognizing up to 10 objects. We don't have a specific sample which recognizes multiple objects in a .wto file, but you can refer to the Image Recognition samples which recognize different target images - the concept is the same.


Greetings

Nicola

Hi Nicola, 


I'm also trying to detect different objects with one single .wto file, based on the following documentation:

https://www.wikitude.com/documentation/latest/phonegap/multipletargets.html


Unfortunately, the Object Detection doesn't seem to work exactly like the Image Detection: there is no ObjectTarget class in your API documentation ( https://www.wikitude.com/external/doc/documentation/latest/Reference/JavaScript%20API/ ).


I can't figure out a way to access an objectTarget's name when it's detected (to differentiate which object from the target collection has been detected and thus display something different for each object of the collection).


Thanks in advance for your help,

Gabriel 






Hi,

I actually figured it out on my own: there is a slight difference between onObjectRecognized and onImageRecognized. "onImageRecognized()" will have an ImageTarget as the payload (from which you can retrieve the targetName), whereas "onObjectRecognized()" directly has the targetName as the payload. Why the difference between these 2 modes ?


Gabriel


Login or Signup to post a comment