Start a new topic

AnimatedImageDrawable not loading at first time

AnimatedImageDrawable not loading at first time
1 Comment


Hi,

 

The problem is when I scan the target AR  does not display on Camera at the first time.When I restart the app & scan  the target it will display AR on my camera.Actually Image is not loading at the first time.So I reduce the image (width & height) to 600 x 600 so it working great !! no issue.So I want to know from you. Is the Image Size matter ? or width & height of the Image.What will be the limit?

I have used Sprite Image and pass to AnimatedImage Drawable method and the same object is pass to Trackabel2Dobject.             

image1(sprite Image)- size 600KB

Width & Height: 2400 × 960

 

Code:

Drawable1 = new AR.AnimatedImageDrawable(image1, 1.0,200,120,{

                                                         offsetX:  0.1,

                                                         offsetY: -0.4,

                                                         });

 

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

                                               drawables: {

                                               cam:

 

                                               }

});

 

 

Thanks & Regards,

Tarun Kumar

 

 
Login or Signup to post a comment