Start a new topic

Multiple Target Recognition Problem

  Hi, I was testing the program by using my own trackers and targets.

What I did was just altering the name of the wtc file ( "assets/" to "assets/" ) and target files ( "assets.imgOne.png" to "assets.EaglesBeanie.png").

It worked when I was working on "Image on Target", but as it got multiple, the program was not able to create the augmentation. Of course, all those alterations I mentioned above were preceded by addition of wtc and png files.

What should I additionally check or fix?

I'm also curious about how the program discerns each target and output each different augmentation.


Code below is the part I altered.

createOverlays: function createOverlaysFn() {
		this.tracker = new AR.ClientTracker("assets/", {
			onLoaded: this.worldLoaded


		// Create overlay for page one
		var imgOne = new AR.ImageResource("assets/EaglesBeanie.png");
		var overlayOne = new AR.ImageDrawable(imgOne, 1, {
			offsetX: -0.15,
			offsetY: 0

		var pageOne = new AR.Trackable2DObject(this.tracker, "pageOne", {
			drawables: {
				cam: overlayOne

		var imgTwo = new AR.ImageResource("assets/BroncosBeanie.png");
		var overlayTwo = new AR.ImageDrawable(imgTwo, 0.5, {
			offsetX: 0.12,
			offsetY: -0.01

		var pageTwo = new AR.Trackable2DObject(this.tracker, "pageTwo", {
			drawables: {
				cam: overlayTwo


1 Comment

Hello Sean,

From my understanding you changed the .wtc file and created your own. What you need to make sure is that inside the new .wtc file you have created, the names of your trackers are 'pageOne' and 'pageTwo' because these are the names you are using as targets in your code.

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

Otherwise you need to update that part of your code as well.



Login or Signup to post a comment