You are not logged in.

Dear visitor, welcome to krpano.com Forum. If this is your first visit here, please read the Help. It explains in detail how this page works. To use all features of this page, you should consider registering. Please use the registration form, to register here or read more information about the registration process. If you are already registered, please login here.

1

Thursday, March 19th 2009, 9:02pm

Download "view only" in multirez not working

Hi Klaus,

I'm just about to publish your player on our network. There is one small problem left: the download="view" attribute in <view/> doesn't seem to be working.
My idea is to load only the view tiles in the appropriate size for the viewer and as soon as the user presses the play button, everything else will be loaded as usual. However, when I integrate the download attribute, nothing changes and the player still downloads all tiles. 2MB at least.

Maybe have a look at this sample: http://ilovesquamish.blogspot.com/

When I check the downloaded files with firebug, it shows me that all tiles are downloaded instead of just the viewed tiles.
NOTE: the attributes reside in the pano.xml file (removed attributes online, but here is what I tried):

Source code

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
<krpano version="1.0.8">

	<preview type="CUBESTRIP" url="pano.tiles/preview.jpg" />

	<image type="CUBE" multires="true" tilesize="650">
		<level tiledimagewidth="1300" tiledimageheight="1300" download="view" decode="view">
			<left  url="pano.tiles/l2_l_%v_%h.jpg" />
			<front url="pano.tiles/l2_f_%v_%h.jpg" />
			<right url="pano.tiles/l2_r_%v_%h.jpg" />
			<back  url="pano.tiles/l2_b_%v_%h.jpg" />
			<up	url="pano.tiles/l2_u_%v_%h.jpg" />
			<down  url="pano.tiles/l2_d_%v_%h.jpg" />
		</level>
		<level tiledimagewidth="897" tiledimageheight="897" download="view" decode="view">
			<left  url="pano.tiles/l1_l_%v_%h.jpg" />
			<front url="pano.tiles/l1_f_%v_%h.jpg" />
			<right url="pano.tiles/l1_r_%v_%h.jpg" />
			<back  url="pano.tiles/l1_b_%v_%h.jpg" />
			<up	url="pano.tiles/l1_u_%v_%h.jpg" />
			<down  url="pano.tiles/l1_d_%v_%h.jpg" />
		</level>
	</image>

</krpano>


Thanks. Looking forward to putting this new player online after this little fix.
P

This post has been edited 2 times, last edit by "pb360" (Mar 19th 2009, 9:44pm)


2

Thursday, March 19th 2009, 10:54pm

Hi,

you're right! normally that should work! it's a bug in the current beta!
currently the first (lowest) level is always downloaded completely!
I fixed it now for the next beta (1.0.8 beta 7),

btw - great user interface/styling!

best regards,
Klaus

3

Thursday, March 19th 2009, 10:58pm

Any release date in mind? We're really eager to publish! *attention*
Thanks for the response.
P

4

Thursday, March 19th 2009, 11:06pm

I have originally planed to release it this week, but especially the GUI of kprotect tool has needed more time then expected...
so hopefully this or more probable next weekend...

5

Thursday, March 19th 2009, 11:12pm

can't wait! *thumbsup*