Sie sind nicht angemeldet.

Lieber Besucher, herzlich willkommen bei: krpano.com Forum. Falls dies Ihr erster Besuch auf dieser Seite ist, lesen Sie sich bitte die Hilfe durch. Dort wird Ihnen die Bedienung dieser Seite näher erläutert. Darüber hinaus sollten Sie sich registrieren, um alle Funktionen dieser Seite nutzen zu können. Benutzen Sie das Registrierungsformular, um sich zu registrieren oder informieren Sie sich ausführlich über den Registrierungsvorgang. Falls Sie sich bereits zu einem früheren Zeitpunkt registriert haben, können Sie sich hier anmelden.

olihar

Schüler

  • »olihar« ist der Autor dieses Themas

Beiträge: 132

Wohnort: Iceland

Beruf: Interaction Designer

  • Nachricht senden

1

Dienstag, 13. Oktober 2009, 03:03

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

Quellcode

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

Quellcode

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

Dienstag, 13. Oktober 2009, 08:58

Hi,

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

Quellcode

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:

Quellcode

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


best regards,
Klaus

3

Dienstag, 13. Oktober 2009, 09:14

You did again Klaus *smile*

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

olihar

Schüler

  • »olihar« ist der Autor dieses Themas

Beiträge: 132

Wohnort: Iceland

Beruf: Interaction Designer

  • Nachricht senden

4

Dienstag, 13. Oktober 2009, 19:43

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

Samstag, 17. Oktober 2009, 19:01

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:

Quellcode

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

Schüler

  • »olihar« ist der Autor dieses Themas

Beiträge: 132

Wohnort: Iceland

Beruf: Interaction Designer

  • Nachricht senden

6

Samstag, 17. Oktober 2009, 22:17


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:

Quellcode

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

Samstag, 17. Oktober 2009, 22:25

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

Schüler

  • »olihar« ist der Autor dieses Themas

Beiträge: 132

Wohnort: Iceland

Beruf: Interaction Designer

  • Nachricht senden

8

Samstag, 17. Oktober 2009, 22:28

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

Samstag, 17. Oktober 2009, 22:31

here it works now
(try clearing the browser cache)

olihar

Schüler

  • »olihar« ist der Autor dieses Themas

Beiträge: 132

Wohnort: Iceland

Beruf: Interaction Designer

  • Nachricht senden

10

Samstag, 17. Oktober 2009, 22:39

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

Dienstag, 20. Oktober 2009, 10:30

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.

Quellcode

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.

Quellcode

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