You are not logged in.

HansNyb

Professional

  • "HansNyb" started this thread

Posts: 936

Location: Denmark

Occupation: Photographer

  • Send private message

1

Tuesday, December 7th 2010, 12:58am

Android support for multiresolution

In the documentation Klaus says:
Large single images will slow down the rendering, to avoid this the smaller <mobile> or <tablet> images will be used when available.

Well I just got an Desire z and have tested my panoramas at panoramas.dk

It turns out that it works very good with large multiresolution panoramas.
All 3 KRPano multi resolution panorama I have for example the current Carl Bloch and my Royal Birthday pano works perfect.

The FPP panoramas with just 1 cube face fails to load at around 2000x2000.

So if we use multiresolution + tablets-mobile how do we ad a device parameter in the image tag for android?
LIke this?
<image type="CUBE" devices="desktop I android" multires="true" tilesize="866" progressive="false">



Hans

This post has been edited 1 times, last edit by "HansNyb" (Dec 7th 2010, 2:53am)


HansNyb

Professional

  • "HansNyb" started this thread

Posts: 936

Location: Denmark

Occupation: Photographer

  • Send private message

2

Wednesday, December 8th 2010, 11:42am

Please Klaus I need to know this?

I just added a panorama at panoramas.dk with multisupport 2 levels + tabletand mobile and I can see that like others I tested it fails to use the multiresolution tiles on android but instead loads the tablet.

Hans

HansNyb

Professional

  • "HansNyb" started this thread

Posts: 936

Location: Denmark

Occupation: Photographer

  • Send private message

3

Wednesday, December 8th 2010, 3:41pm

I assume that the only way to get the multiresolution support back for Android is to create 2 xml and make a sniffer in HTML.

Hans

4

Wednesday, December 8th 2010, 5:35pm

Hi,

yes, when there is <mobile> or <tablet> image entry in the xml, this will be taken on Android by default,

one possibility to let Android still use the multires-images would be to remove the <mobile> and <tablet>
tags completely, but then there should be multires levels that have roughly the same size as the mobile
or tablet images for the iPhone and iPad:

when there are no <mobile> and <tablet> entries but <level> entries the krpanoJS viewer will try to
load the biggest level which is still below or equal 1100px (iPhone4,iPad) or 512px (iPhone3),

so by eventually adding one or two smaller levels you can support multires on Android and have
still images for the iPhone and iPad,

an other solution would be to use separate xml files or separate scenes which will be loaded
dynamically either via javascript or via krpano xml action,

best regards,
Klaus