You are not logged in.

1

Monday, July 7th 2014, 4:45pm

"devices" property for image object doesn't work after upgrading to recent krpano version.

Hi,
I am using following code for displaying panorama images for different devices.

Source code

1
<image type="CUBE" multires="yes" tilesize="1024">	<level tiledimagewidth="2048" tiledimageheight="2048">		<cube url="2/pano_%s_%v_%u.jpg"/>	</level>	<mobile devices="mobile">		<cube url="2/mobile_%s.jpg"/>	</mobile>	<mobile devices="tablet|iphone|ipod ">		<cube url="2/tablet_%s.jpg"/>	</mobile></image>


After I have upgraded to recent version of krapno (1.17.4) AND ALSOmy iphone 4s to iOS 7.1.2, my iphone 4S does NOT load mobile images anymore. Instead, it loads images for PC version which leads to crash after all.
I am kind of lost because I am not sure what I should modify..
Anybody have an idea?
Thank you!
hyung

2

Tuesday, July 8th 2014, 7:54am

Hi,

krpano 1.17 supports multires in HTML5 and therefore it is using the multires images by default.
But in your case, you are using tilesize=1024 and this is too large to work stable on mobile devices.

You could add this code:

Source code

1
<image multires="false" devices="mobile|tablet" />
after/below the original <image> code to disable the multires image for these devices.

Best regards,
Klaus

3

Tuesday, July 8th 2014, 9:30am

Thank you Klaus,

It seems that I have to add this code inside every scene object.

Quoted

<image multires="false" devices="mobile|tablet" />
Now it works fine as before :)



Thank you again!


hyung