Start a new topic

About AR.ImageResource

About AR.ImageResource


Hi again,

I think we're almost there...

 

var myTrackables =



var pages = ;

for (myTrackable in myTrackables) {

var camDrawables = <...>;

pages.push( <YOUR Trackable2DObject definition> );

}

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.

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", {

drawables: {

cam:

 

help me plz.


 

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

Hi, guys.

I worked example of WikitudeSDKSamples via Vuzix.

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..... :)
Login or Signup to post a comment