Start a new topic

Dynamic Augmentations

Dynamic Augmentations

1 person has this problem

ia mreading my augmentations through a json file which contains the name of the augmentation its type ( image video 3dModel) and its properties like ortate offsetx offsety


 how can i create these augmenttions dynamially without overridig them as i loop through the objects retrived from the json

Please have a look a the Browsing POIs section in the SDK sample application/documentation.

Best regards

Thank you for your fast reply , but iam not using point of interests this is what iam doing 

//reading json method

//method to check the type of the augmentation 

 switch (objectType)


               case 'image': 

  //create image objects with prop.




               case 'video': alert("video");

  //create video objects with prop.



               case '3Dmodel': alert("3DModel");

  //create 3dModel objects with prop.


               default:  return;




//create image augmentation 

createImageDrawable:function createImageDrawableFn(object)



alert("inside createdrawable image");

var imgOne = new AR.ImageResource(object.url); // create the image

var overlayOne = new AR.ImageDrawable(imgOne, 1, {

offsetX: object.offsetX,

offsetY: object.offsetY


var pageOne = new AR.Trackable2DObject(this.tracker,, {

drawables: {

cam: overlayOne




alert("end of createdrawable image");



so lets say i have like 4 objects of type images i will loop and call this createImageDrawable() function but as u can c the last object will be actually initialized and saved the rest are being overrriden 


if u have any way so that i can achieve multiple image recognition using this strategy 


best regards


sorry for the long thread

Note that a "Trackable2DObject" is basically the definition of the target's augmentations.
In order to create a set of augmentations for a single target you have to create them first and then use the list of camDrawables (namely ImageDrawables, VideoDrawables etc.) as attribute of one trackable2DObject.

Best regards,
Login or Signup to post a comment