Start a new topic

Points of interest image not showing

Points of interest image not showing


Hi Andreas,

yes, for background image I reuse one image from my folder, just like in the example and for clubIcons I download them using ImageResource.

But, my trouble happens at first launch time to time. So, when I load the architect view and start rendering, then I get the location of the user and load my data from the server , convert to the data and use callJavaScript to display the data on screen.

So, after that, my images will not be displayed at all, evern if I reload the architect view by destroing the objects and calling the callJavaScript method again. Only my Labels (objects) are bieng displyed always. If I pop viewController and push again, the process will repeat and the images will show. 

Regards,

Valerii

Hi Valerii,
So far this sounds all quite good. Do you load the background image 30 times? You can reuse the same ImageResource for multiple ImageDrawables.

Best regards

Andreas

Hi Andreas,

Thanks for your response. I use the image as the background with resolution 256x66 in jpg format (also tried png format).

Here is my code: for background image of POI. I make the image to increse its size by setting to 7.

this.markerDrawable_idle = new AR.ImageDrawable(World.markerDrawable_idle, 7, {

        zOrder: 0,

        opacity: 1.0,

        onClick: Marker.prototype.getOnClickTrigger(this)

 

    });

 

Meanwhile, the other image drawable upload the images from the links I provided for the marker object. The club icons, which are being downloaded also has a small resolution, for example 40x40 or 100x100.

 

Here is my code:

var imageres = new AR.ImageResource(poiData.clubIcon);

    this.clubIcon = new AR.ImageDrawable(imageres, 7, {

        zOrder: 3,

        horizontalAnchor: AR.CONST.HORIZONTAL_ANCHOR.RIGHT,

        offsetX: -4.5

    });

 

About the zOrder, I thought it was set to tell the image to lay above or below some layer of labels?

So, to sum up, I load the data form my server, then isnsert the received data in the architet view. The background image is static and the other image are donwloading the images in realtime from the provided links (see above). I load at once 30 pois.

Regards,

Valerii

Hi Valerii,
Can you tell us the resolution of those images? Depending on the size it might indeed be related to memory pressure.

It might also be related to the zOrder of your image drawables. Have you tried to set the zOrder to define which image drawable should be rendered first?

Best regards

Andreas

Hi everyone,

I have the problem with the image drawing/rendering when I display the points of interest on camera view. I am using the latest Wikitude SDK 5.1.4 javascript version and Xcode 7.3.

It seems the problem is related to imageDraweble object, as it sometime does not displays the image at all. On camera view my POI is consisted from the background/main image. On this background I place one more image(avatar icon) to show and 2 labels with the text. This problem happens not in 100% cases, but rather often. So sometimes when I open my screen and make the init of the architect view, loading the evironment, fetching the data adn rendering, my images do now show at all. Only labels are visible, but the images somehow, I do not know why, does not rendering in right way, either my background nor avatar icon. If I close and return my screen controlller and will open again it will show the images properly. I want to underline, that the labels are always displayed. Only the images sometimes do not show up.

Can somebody help me? Maybe you face such issue from your side, what could the problem? Where is the source or the weak spot? Can this issue could be related the memory pressure or warnings? Or could it be the bug with the Wikitude sdk itself?

My implemetation of POI showing are similar to the demo prject from the Wikitude (application model case loading), but with my updates.

Thanks in advance,

Regards,

Valerii
Login or Signup to post a comment