Sie sind nicht angemeldet.

1

Dienstag, 5. Mai 2020, 14:41

Animated hotspots not working on mobile - fine on pc

Hi
This example works on pc and mobile so I copied the action
https://krpano.com/releases/1.20.6/viewe…anihotspots.xml
and pasted it into my tour.xml
I made a new animated hotspot (png) and uploaded to my server

The animation works fine when viewed on pc, but on mobile it only shows a black square

Quellcode

1
<hotspot name="hologram1" url="boards/hologram.png" onloaded="do_crop_animation(320,320, 7);" ath="145" atv="15.8" tooltip="click to view" distorted="true" scale="0.5"/>
Any ideas?

2

Dienstag, 5. Mai 2020, 15:57

It appears to be a resolution limit somehow
320 X 320 (strip of 15) didnt work on mobile
but 50 X 50 works fine

3

Dienstag, 5. Mai 2020, 22:21

Hi,

Zitat

it only shows a black square

That can happen when the hotspot image is larger than the maximum texture size that a device support.
On older or lower-end mobiles this can be 2048x2048px.

So if you keep the hotspot images below that size you're safe.

But it's already on my list to check automatically for that size limit and automatically downscale the hotspot image at runtime to avoid that problem. Then the hotspot loading will be slightly longer and the hotspot maybe slightly blurred on such devices, but it will work.

Best regards,
Klaus

4

Mittwoch, 6. Mai 2020, 09:42

Hi,

Zitat

it only shows a black square

That can happen when the hotspot image is larger than the maximum texture size that a device support.
On older or lower-end mobiles this can be 2048x2048px.

So if you keep the hotspot images below that size you're safe.

But it's already on my list to check automatically for that size limit and automatically downscale the hotspot image at runtime to avoid that problem. Then the hotspot loading will be slightly longer and the hotspot maybe slightly blurred on such devices, but it will work.

Best regards,
Klaus

Thanks Klaus, I'll try keep within those limits for now

5

Montag, 25. Mai 2020, 17:32

Hi,

here the new krpano 1.20.7 release, there too large hotspot images will be automatically downscaled.

Best regards,
Klaus

6

Montag, 25. Mai 2020, 20:30

Hi,

here the new krpano 1.20.7 release, there too large hotspot images will be automatically downscaled.

Best regards,
Klaus



Awesome, thanks Klaus!