I put in the "assets" folder and change the name in the "imagerecognition.jsl" file.
But it does not detect anything.
createOverlays: function createOverlaysFn() {
// Initialize Tracker
this.tracker = new AR.Tracker("assets/volcan.wtc", {
onLoaded: this.worldLoaded
});
// Create overlay for page one
var imgOne = new AR.ImageResource("assets/imageOne.png");
var overlayOne = new AR.ImageDrawable(imgOne, 1, {
offsetX: -0.15,
offsetY: 0
});
var pageOne = new AR.Trackable2DObject(this.tracker, "pageOne", {
drawables: {
cam: overlayOne
}
});
},
P
Philipp Nagele
said
about 9 years ago
You need to change the target name in the definition of the Trackable2DObject to the name of your target image. In your case you need to change the ID "pageOne" in the code below to the target name of your target. Here is how to get the target name:
var pageOne = new AR.Trackable2DObject(this.tracker, "pageOne", {
stephane marry