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.

olihar

Trainee

  • "olihar" started this thread

Posts: 130

Location: Iceland

Occupation: Interaction Designer

  • Send private message

1

Tuesday, October 13th 2009, 3:03am

Seeing the whole Picture?

Hi gang

I asked here.

Mt Keilir - Iceland - 0.4GP

about if it was possible to see the whole photograph, just like with Zoomify, I am using Zoomify tiles with KrPano and it works good, well almost anyways, I would like to see the whole photograph on the screen.

Take this photo for example.

http://www.olihar.com/pano/017/017fs.html

I am using this here

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
25
26
<script type="text/javascript">
// <![CDATA[
	if (typeof(deconcept) !== 'undefined' && deconcept.SWFObjectUtil.getPlayerVersion().major >= 6)
	{
		// path to krpano.swf
		var so = new SWFObject("../olihar.swf", "krpanoSWFObject", "100%", "100%", "9.0.28","#000000");
		so.addParam("allowFullScreen","true");
		
		so.addVariable("xml", "../buttons.xml");
		
		// path to zoomify's ImageProperties.xml
		so.addVariable("zoomify", "ImageProperties.xml");
		
		// set panorama type of zoomify's image - SPHERE or CYLINDER
		so.addVariable("zoomifytype", "SPHERE");
		
		// set horizontal field of view of zoomify's image
		so.addVariable("hfov", "270");
		
		if ( so.write("krpanoDIV") ) { var mousewheelfixes = new SWFkrpanoMouseWheel(so); }
	}
	else
	{
		document.getElementById("krpanoDIV").innerHTML = '<table width="100%" height="100%"><tr valign="middle"><td><center>ERROR:<br><br>Adobe Flash Player 9 needed<br><br><br><a href="http://www.adobe.com/go/getflashplayer/"  target="_blank"><IMG SRC="http://www.macromedia.com/images/shared/download_buttons/get_flash_player.gif" BORDER="1"></a><br>...click here to download...<br><br><br><br></center></td></tr></table>';
	}
// ]]>

</script>


I tried to add something like

Source code

1
2
3
4
5
6
7
so.addVariable("hfov", "3.535");
so.addVariable("vfov", "9.449");
so.addVariable("vlookatmin", "-0.4724");
so.addVariable("vlookatmax", "+0.4724");
so.addVariable("hlookatmin", "-2");
so.addVariable("hlookatmax", "+2");
so.addVariable("fov", "10");


To this photograph
http://www.olihar.com/pano/019/019fs.html

Without any luck.

The reason I am using the in-file method is because I like to use the same xml file for all the photographs, it must be some tiny mistake I am making.

Hope to solve this soon. Thanks.

2

Tuesday, October 13th 2009, 8:58am

Hi,

the "full path" to the view variables must be used (e.g. - "view." is missing)
e.g. use this:

Source code

1
2
3
4
5
6
7
8
so.addVariable("image.hfov", "3.535");
so.addVariable("image.vfov", "9.449");
so.addVariable("view.limitview", "range");
so.addVariable("view.vlookatmin", "-0.4724");
so.addVariable("view.vlookatmax", "+0.4724");
so.addVariable("view.hlookatmin", "-2");
so.addVariable("view.hlookatmax", "+2");
so.addVariable("view.fov", "10");



or try out the 1.0.8 beta 9 from here:
krpano 1.0.8 beta 8

and just set:

Source code

1
2
3
so.addVariable("image.hfov", "3.535");
so.addVariable("image.vfov", "9.449");
so.addVariable("view.limitview", "fullrange");


best regards,
Klaus

3

Tuesday, October 13th 2009, 9:14am

You did again Klaus *smile*

Perfect solution we are waiting beta 1.9 with documentation ;-)

olihar

Trainee

  • "olihar" started this thread

Posts: 130

Location: Iceland

Occupation: Interaction Designer

  • Send private message

4

Tuesday, October 13th 2009, 7:43pm

Thanks great, I updated to the pre. Beta 9 and it works like a charm.

I tried and tried to get it to work and never got anything working. I then found out that Shiretoko(Intel Firefox) did not clear the cache, worked like a charm in Safari with some tweaks.

I do have another question regarding this. would it be possible when the full screen button is pressed that the image would zoom out for full view, as it is now some of the images zoom in a little bit when full screen is entered it does zoom out a little bit.

Have a look here for example.

http://www.olihar.com/gallery/Panorama/I…/Keilir.txt.php

5

Saturday, October 17th 2009, 7:01pm

I do have another question regarding this. would it be possible when the full screen button is pressed that the image would zoom out for full view, as it is now some of the images zoom in a little bit when full screen is entered it does zoom out a little bit.
Hi,

that could be done by setting "view.fov" to a too high value (e.g. in this case 90) in the onfullscreen event,
the fov will be automatically limit then to the real possible value,

e.g. in your buttons-include.xml:

Source code

1
<events onenterfullscreen="set(view.fov,90); set(plugin[openfs].visible,false); set(plugin[closefs].visible,true);" onexitfullscreen="set(plugin[openfs].visible,true);  set(plugin[closefs].visible,false);"/>


best regards,
Klaus

olihar

Trainee

  • "olihar" started this thread

Posts: 130

Location: Iceland

Occupation: Interaction Designer

  • Send private message

6

Saturday, October 17th 2009, 10:17pm


I do have another question regarding this. would it be possible when the full screen button is pressed that the image would zoom out for full view, as it is now some of the images zoom in a little bit when full screen is entered it does zoom out a little bit.
Hi,

that could be done by setting "view.fov" to a too high value (e.g. in this case 90) in the onfullscreen event,
the fov will be automatically limit then to the real possible value,

e.g. in your buttons-include.xml:

Source code

1
<events onenterfullscreen="set(view.fov,90); set(plugin[openfs].visible,false); set(plugin[closefs].visible,true);" onexitfullscreen="set(plugin[openfs].visible,true);  set(plugin[closefs].visible,false);"/>


best regards,
Klaus

I gave this a try but no go, there still seems to be possible to zoom out when you hit the full screen button. I just find it strange it displays the photo fine when its small but when full screen is pressed its like it zooms in a little.

7

Saturday, October 17th 2009, 10:25pm

have you also changed the online code yet?

here is still the old one at the moment:
http://www.olihar.com/pano/buttons-include.xml

olihar

Trainee

  • "olihar" started this thread

Posts: 130

Location: Iceland

Occupation: Interaction Designer

  • Send private message

8

Saturday, October 17th 2009, 10:28pm

have you also changed the online code yet?

here is still the old one at the moment:
http://www.olihar.com/pano/buttons-include.xml
Yes I changed it back, I have now changed it again for you to see.

9

Saturday, October 17th 2009, 10:31pm

here it works now
(try clearing the browser cache)

olihar

Trainee

  • "olihar" started this thread

Posts: 130

Location: Iceland

Occupation: Interaction Designer

  • Send private message

10

Saturday, October 17th 2009, 10:39pm

Here we go... I thought I did clear the cache.. I guess I didn't

While I got you looking into this, are there any reasons why Cmd and shift buttons do not work in Full screen on Shiretoko(FireFox for Intel) but works fine in Safari. On the Mac.

As well Do you think anyone would be interested in the buttons I created, should I post them on the forum or any other place? I did wonder about how to make them smaller in the small window and then this size when FullScreen. Did not figure out how to.

Thanks again.

11

Tuesday, October 20th 2009, 10:30am

Hi,
While I got you looking into this, are there any reasons why Cmd and shift buttons do not work in Full screen on Shiretoko(FireFox for Intel) but works fine in Safari. On the Mac.
this is mac safari special thing...

the keys in fullscreen mode are normally limited (by the Flashplayer for security reasons) to:
Tab, Spacebar and the (up, down, left, right) arrow keys.
see:
http://www.adobe.com/devnet/flashplayer/…s_03.html#head5
I did wonder about how to make them smaller in the small window and then this size when FullScreen. Did not figure out how to.

it's possible to use percent values for width and/or height,
e.g.

Source code

1
width="5%" height="prop"
to make the sizes relative to the full window size,

or by using the "onresize" event and calculate/set the sizes manually,
e.g.

Source code

1
2
3
4
5
6
7
8
9
<events onresize="setbuttonsizes()" />

<action name="setbuttonsizes">
  mul(newwidth, stagewidth, 0.05);
  if(newwidth LT 10, set(newwidth,10));
  if(newwidth GT 30, set(newwidth,30));
  set(plugin[...].width, get(newwidth));
  ...
</action>


best regards,
Klaus