Start a new topic

How do I use ade.js for simple AR.Trackable2DObject

How do I use ade.js for simple AR.Trackable2DObject


How do I use ade.js for simple AR.Trackable2DObject

 

I am testing script on browser by ade.js.

 

For example ,

I can see object ImageResource / ImageDrawble / GeoObeject on browser ADE tab.

 

var location = new AR.RelativeLocation(null, 5, 0, 1);

var modelEarth = new AR.Model("assets/earth.wt3", {
    onLoaded: this.worldLoaded,
    scale: {
        x: 1,
        y: 1,
        z: 1
    }

});

var obj = new AR.GeoObject(location, {

    drawables: {

       cam: ,

    }

});

 

however, in this  script, 

 

this.tracker = new AR.ClientTracker("assets/magazine.wtc", {
    onLoaded: this.worldLoaded
});

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

     cam: overlayOne

});

 

Nothing appears in the browser.

(That might be of course because tracker recognition is not happend yet, so no image appeares yet.)

How can I test if recognition function works and see the overlayOne correctly apeppars on browser?



 

Hi,

The ADE currently has some known issues. Therefor we recommend to follow the chapters in the documentation which deal with debugging (e.g. for Android)

Greetings

Nicola

Hi Nicola

Thanks.

It looks lilke quite helpful, I am writing application by titanium module.

I will try this source code with my Android device.

 

 

By the way,

My problem is solved thanks to @nicoles reply.

How can I close or make the flag of this article 'sloved'?
Login or Signup to post a comment