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
        });

 


Hi and apologies for the late reply,


Could you please elaborate a bit further and tell me what your issue is?


Thanks,

Eva

HI!


I was able to solve this issue.


Thank you!

Login or Signup to post a comment