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.

41

Tuesday, June 9th 2009, 8:51pm

This one is good

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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
<events onviewchange="if(hotspot[spot].fly, centerhotspot() );" />

<action name="centerhotspot">
  set(hotspot[spot].ath, get( view.hlookat ) );
  set(hotspot[spot].atv, get( view.vlookat ) );
  div(hotspot[spot].scale, 2.0, view.r_zoom ) );
  set(hotspot[spot1].ath, get( view.hlookat ) );
  set(hotspot[spot1].atv, get( view.vlookat ) );
  div(hotspot[spot1].scale, 2.0, view.r_zoom ) );
  set(hotspot[spot2].ath, get( view.hlookat ) );
  set(hotspot[spot2].atv, get( view.vlookat ) );
  div(hotspot[spot2].scale, 2.0, view.r_zoom ) );

</action>

<action name="flyout">
  copy(backup_ath,ath);
  copy(backup_atv,atv);
  copy(backup_scale,scale);
  copy(backup_rx,rx);
  copy(backup_ry,ry);
  copy(backup_rz,rz);
  adjusthlookat( get(ath) );
  tween(ath, get(view.hlookat) );
  tween(atv, get(view.vlookat) );
  tween(rx, 0);
  tween(ry, 0);
  tween(rz, 0);
  tween(zorder, 10);
  div(destscale, 2.0, view.r_zoom );
  tween(scale, get(destscale), 0.5, default, WAIT );
  set(fly,true);
</action>

<action name="flyin">
  set(fly,false);
  tween(zorder, 0);
  tween(ath, get(backup_ath));
  tween(atv, get(backup_atv));
  tween(scale, get(backup_scale));
  tween(rx, get(backup_rx));
  tween(ry, get(backup_ry));
  tween(rz, get(backup_rz));
</action>

                <hotspot name="spot"
	         url="image.jpg"
	         keep="false"
	         ath="145.69919691235236" atv="20.98875313425885"
	         zoom="true" distorted="true"
	         width="200" height="247"
	         scale="0.5" scale9grid="" scalechildren="false" rotate="0"
	         rx="45.75" ry="-65.25" rz="-0"
	         edge="center" ox="" oy=""
	         crop="" ondowncrop="" onovercrop=""
	         visible="true" enabled="true" handcursor="true" capture="true" children="true"
 	         zorder="0"
	         alpha="1.00" blendmode="normal" smoothing="true"
 	         refreshrate="auto"
 	         onloaded=""
	         onover=""
	         onhover=""
	         onout=""
	         ondown=""
	         onup=""
	         onclick="if(fly, flyin(), flyout());"
	         fly="false"
	         ismovie="false"
	         />


http://www.visionrhd.com/site/photo/phototest.html

Shanti

Intermediate

Posts: 301

Location: Puerto Vallarta

Occupation: Web Developer

  • Send private message

42

Tuesday, June 9th 2009, 11:21pm

Job.1 that one is very good, except for the middle photo, if you open and rotate the panorama a couple of times the photo circles the panorama before getting back to the original position, this is because krpano keeps going further from 360°

Klaus, if there any way to make krpano just report from 0 to 360 ? I mean if you get pass 360 it goes back to 0 and viceversa if you get pass 0 it jumps to 360 ? same for the vertical movement but I don't think the vertical part is needed that much.

I did this using Javascript, but its not an ideal solution...

43

Tuesday, June 9th 2009, 11:36pm

Hi,

I have just uploaded a new version - 1.0.8 beta 8 (build 2009-06-09), there were many important bugfixes (browser crashes) and I also added a new possibility for 'fly-out' hotspots (example included)

just have a look here at the "update" note:
http://krpano.com/forum/wbb/index.php?pa…D=4506#post4506

best regards,
Klaus

machart

Trainee

Posts: 135

Location: Ostfriesland

  • Send private message

44

Wednesday, June 10th 2009, 10:20am

hi, klaus!

thanks for the new version...

now all plugs load (even the simpleviewer in other panos) - exept the fullscreen button... *confused*

same adress: http://www.panographie.net/panorama/Events/ASK_21/
__close to the rainbow__
_D300S|Sunwayfoto|iMaci7|PM|APP|KRP_
www.panographie.net

45

Wednesday, June 10th 2009, 11:12am

now all plugs load (even the simpleviewer in other panos) - exept the fullscreen button... *confused*

same adress: http://www.panographie.net/panorama/Events/ASK_21/
sorry, but it still seems not working "always",

I'm not sure at the moment why this happens...
but it could be related to some wrong settings in the xml,

please try to remove - "autoscale="true" - and the "blur" set/tween - set(blur,15); ... tween(blur,0.8,0.8); from all plugins ("blur" is a attribute of the textfield plugin and not generally available yet),

best regards,
Klaus

machart

Trainee

Posts: 135

Location: Ostfriesland

  • Send private message

46

Wednesday, June 10th 2009, 12:39pm

hi, klaus!

removing the blur didnt work, but autoscale=false was the solution... ;-)
__close to the rainbow__
_D300S|Sunwayfoto|iMaci7|PM|APP|KRP_
www.panographie.net

machart

Trainee

Posts: 135

Location: Ostfriesland

  • Send private message

47

Wednesday, June 10th 2009, 1:59pm

another issue with beta8:

when i put the new preload=true to the sound plug, it doesnt play unless i do sound off and on again...
what do i do wrong with it?

Source code

1
2
3
4
5
<plugin name="soundinterface" 
		url="plugins/soundinterface.swf" 
		preload="true"
		onloaded="action(preloadsounds); action(play);"			
/>
__close to the rainbow__
_D300S|Sunwayfoto|iMaci7|PM|APP|KRP_
www.panographie.net

48

Friday, June 12th 2009, 2:30pm

krpano beta 8

Hi Nice work,

made up my mind to purchase krpano. i downloaded the beta version and tried to browse through examples so see my pano fits in but when i try to run the example it gives me "license" error. Is there any type of license necessary to run the beta example? if yes then from where i can download it and include so that i can check with my panos.

Thanks

49

Friday, June 12th 2009, 6:12pm

You should be able to run it locally on your machine, but it will not run on a server without the license.



Jarredja

50

Friday, June 12th 2009, 6:18pm

You should be able to run it locally on your machine, but it will not run on a server without the license.



Jarredja
I tried to run it locally but it gives me "license" error is it because i have replaced the default pano with my pano and made some changes in the xml ?
Thanks

joekki

Trainee

Posts: 78

Location: Turku, Finland

Occupation: Panoramic photographer and web site builder

  • Send private message

51

Friday, June 12th 2009, 11:06pm

Bug in scenes or I have done something wrong.

I tried to test that "scene" thing and I managed to do the following: (don't click on the "olohuone", that isn't ready yet ;) )

http://panoraamakuvat.fi/kuvat/omat/virtuaali

When you click though the rooms, you see that everything works except the "Bed room no. 3 - upstairs" (Makuuhuone 3 - yläkerta). When clicking that one, the view is going towards the opposite direction without even zooming.

there's the XML I'm using:

http://panoraamakuvat.fi/asiakkaat/Villa…ly_20090612.xml

And the relevant section of the code: (can also been seen from the XML):

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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
<scene name="kaytava" onstart="showtext('[b][i]Käytävä[/i][/b]', infostyle);">
	<image type="CUBE">
<left url="VillaWolax_mh1_20090526/kaytava_left.jpg"/>
<front url="VillaWolax_mh1_20090526/kaytava_front.jpg"/>
<right url="VillaWolax_mh1_20090526/kaytava_right.jpg"/>
<back url="VillaWolax_mh1_20090526/kaytava_back.jpg"/>
<up url="VillaWolax_mh1_20090526/kaytava_up.jpg"/>
<down url="VillaWolax_mh1_20090526/kaytava_down.jpg"/>
</image>
	<preview type="sphere" url="prev_VillaWolax_kaytava_20090605.jpg" />
	<view hlookat   	="-30"
      	vlookat   	="0"
      	fov       	="110"
      	fovmin    	="6"
      	fovmax    	="179"
      	fisheye   	="0.35"
      	fisheyefovlink="0.90"
	/>
<!-- hotspots -->		
	<hotspot name="mh3"
	     	keep="false"
	     	visible="true" enabled="true" handcursor="true" capture="true" children="true"
 	     	zorder="0"
	     	fillcolor 	="0xffffff" fillalpha 	="0.00" borderwidth 	="0.0" bordercolor 	="0xffffff" borderalpha 	="0.00"
	     	fillcolorhover="0xffffff" fillalphahover="0.10" borderwidthhover="4.0" bordercolorhover="0xffffff" borderalphahover="0.80"
	     	fadeintime="0.150" fadeouttime="0.300" fadeincurve="1.100" fadeoutcurve="0.700"
	     	onover=""
	     	onhover="showtext(Makuuhuone 3 - yläkerta)"
	     	onout=""
	     	ondown=""
	     	onup=""
	     	onclick="looktohotspot(mh3); loadscene(mh3, null, MERGE, BLEND(1));"
	        		     	ath="-42" atv="-12" scale="0.6" zoom="true"
		>
 
				<point ath="162.6494" atv="-22.6172" />
		<point ath="-169.1680" atv="-34.9636" />
		<point ath="-170.6473" atv=" 57.1126" />
		<point ath="162.6576" atv=" 43.0773" />
	</hotspot>

52

Sunday, June 14th 2009, 11:47am

Hi,
another issue with beta8:

when i put the new preload=true to the sound plug, it doesnt play unless i do sound off and on again...
what do i do wrong with it?
when "preload" is enabled (="true") it is not possible to use the "onloaded" event of this plugin anymore (sorry, I see that was not documented yet), the reason for this is that the plugin is loaded before the pano and before any action can happen,
but in this case you could use the normal "onstart" or "onxmlcomplete" events,



I tried to run it locally but it gives me "license" error is it because i have replaced the default pano with my pano and made some changes in the xml ?
locally (file or localhost server) there should be no license error, and the license is always independet from the version (a license for all versions), have you renamed the krpano.swf maybe? in this case you need to rename the .license file too.


When you click though the rooms, you see that everything works except the "Bed room no. 3 - upstairs" (Makuuhuone 3 - yläkerta). When clicking that one, the view is going towards the opposite direction without even zooming.
I see, thanks for this note, this is a bug, the problem was that the point coordniates wrap around (162, -169, -170, 162) and this causes a wrong caluclation of the hotspot center, this will be fixed very soon
you could fix it manually for the moment by adding 360 to all negative point "ath" values,

best regards,
Klaus

Posts: 55

Location: FRance

Occupation: rock clinbing, scuba diving, motorbike....

  • Send private message

53

Monday, June 15th 2009, 11:13am

Did something changed on display setting ?
HIGHSHARP doesn't seens to change anything compared to HIGH !

<display fps="60"
details="24"
tessmode="auto"
movequality="HIGH"
stillquality="HIGHSHARP"
stilltime="0.250"
/>
Pro website : www.bziegler.com
Blog : blog.bziegler.com

Zephyr

Professional

Posts: 994

Location: Netherlands

Occupation: Web developer

  • Send private message

54

Monday, June 15th 2009, 12:12pm

Did something changed on display setting ?
HIGHSHARP doesn't seens to change anything compared to HIGH !

<display fps="60"
details="24"
tessmode="auto"
movequality="HIGH"
stillquality="HIGHSHARP"
stilltime="0.250"
/>


disable flash 10. flash10="off"

Question: I used thickbox to call up some popups that load an external site. This worked with Beta 7. But now with Beta 8, it doens't execute the javascript anymore. I then tested it with a simple alert box in javascript:
onclick="js(alert('test'));"

Works in beta 7, but not in beta 8. Some kind of bug?

I alsoo tried onclick="openurl(javascript:alert('test'));" Didnt work either (tested both Ie and ff3)
3d childrens game using krpano Game
Minify your xml with my krpano XML Compressor
Krpano XML Parsing Error Checklist
Available for hire (krpano xml, javascript, actionscript, flash, php and ipad plugins).

55

Monday, June 15th 2009, 2:49pm

Question: I used thickbox to call up some popups that load an external site. This worked with Beta 7. But now with Beta 8, it doens't execute the javascript anymore. I then tested it with a simple alert box in javascript:
onclick="js(alert('test'));"

Works in beta 7, but not in beta 8. Some kind of bug?
Hi,

this was the effect of the new quote (') parsing in beta 8,
there the quotes were used to mark parameters, e.g. for - showtext('abc, xyz');
but in this such situations it works wrong - internals it just get parsed as - js(test);

but I have already found a way to fix that, I will release today a updated version,

best regards,
Klaus


best regards,
Klaus

56

Monday, June 15th 2009, 10:53pm

Hi,

a new update of the 1.0.8 beta 8 is out - build 2009-06-15,
have a look at the first post for details:
http://krpano.com/forum/wbb/index.php?pa…D=4506#post4506

best regards,
Klaus

57

Monday, June 15th 2009, 11:08pm

Thank a lot Klaus for your really great job

the flying hotspot are great now !! *thumbsup* *thumbsup*

Posts: 27

Location: the Netherlands

Occupation: Apple Consultant & Engineer

  • Send private message

58

Tuesday, June 16th 2009, 8:09pm

Wow Klaus, you've outdone yourself this time, distorted hotspots ans fly-out hotspots were the features I was waiting (hoping) for.

Excellent, thank you very much!!

flash360

Trainee

Posts: 89

Location: All over

Occupation: this

  • Send private message

59

Wednesday, June 17th 2009, 2:33pm

KLAUS thats great!!!

Is there any examples of xml parsing - "url" attributes

I want to try a CD with the App or exe in a seperate directory to the xml.

At the moment I have to change the url to specific directorys in the xml e.g. ../../images/image.jpg

I would love to ditch this.

Cheers

60

Wednesday, June 17th 2009, 4:23pm

Hi,

you can use "placeholders" in the "url" attributes:

e.g.

Source code

1
.. url="%HTMLPATH%/images/image.jpg"
%HTMLPATH% - the path of the main html file where the krpano.swf is included

Source code

1
.. url="%SWFPATH%/images/image.jpg"
%SWFPATH% - the path of the krpano.swf file

Source code

1
.. url="%FIRSTXML%/images/image.jpg"
%FIRSTXML% - the path of the first loaded xml file

Source code

1
.. url="%CURRENTXML%/images/image.jpg"
%CURRENTXML% - the path of the current loaded xml file

best regards,
Klaus