But I want one tracker is linked many Images. It means that I set the one tracker//var pageOne = new AR.Trackable2DObject(this.tracker, "PageOne"//+
and then use many images which are linked "PageOne"//var imgOne = new AR.ImageResource("assets/imageOne.png");//
//var imgtwoe = new AR.ImageResource("assets/imageTwo.png");//
//var imgthree = new AR.ImageResource("assets/imageThree.png");//
Is it possible?
Please help...me..... :)
A
Andreas Fötschl
said
almost 8 years ago
Hi!
You may either use "*" as targetName to use exact same augmentation on all targetImages or create AR.Trackable2DObjects in a loop, all of them using same AR.ClientTracker. Define e.g. a JSONArray with all your configurations and loop through it.
var myTrackables =
Hope that helps,
Kind regards, Andreas
k
kyuhyup lee
said
almost 8 years ago
Thanks. But I have some questions.
Using loop as you mentioned,
var myTrackables =
and then how to revise the remainder?
such as part of these-
var pageOne = new AR.Trackable2DObject(this.tracker, "Reco", {
drawables: {
cam:
var pageTwo = new AR.Trackable2DObject(this.tracker, "s1", {
That way you can define your augmentations at one point and ensure all of them are implemented same way. If you need you may later on also access Trackable2DObjects via "pages" variable to e.g. change their onEnterFieldOfVision behaviour on the fly.
kyuhyup lee