Start a new topic
Solved

Image tracking object drawing

I'm trying to combine Image Tracking with Object drawing


I have the following code in my world file

 

 /* Create overlay for page one of the magazine. */
        var imgOneScale = 0.04;
        var imgOnePositionX = -0.52;
        var imgOnePositionY = 0.24

        this.imgOne = new AR.Model("https://www.docummedia.com/WikitudePlugin/01_ImageTracking_3_Interactivity/assets/ruption.wt3", {
            scale: {
                x: imgOneScale,
                y: imgOneScale,
                z: imgOneScale
            },
            translate: {
                x: imgOnePositionX,
                y: imgOnePositionY
            },
            rotate: {
                y: 180
            },
            enabled: false
        });

        World.drawables.push(this.imgOne);

        this.pageOne = new AR.ImageTrackable(this.tracker, "CircleRuption_Black_MagentaFont_Large", {
            drawables: {
                cam: World.drawables
            },
            onObjectRecognized: World.hideInfoBar,
            onError: World.onError
        });

 

Login or Signup to post a comment