Sie sind nicht angemeldet.

jschrader

Fortgeschrittener

  • »jschrader« ist der Autor dieses Themas

Beiträge: 237

Wohnort: Bavaria, Germany

Beruf: Photographer, Producer

  • Nachricht senden

1

Donnerstag, 8. Juli 2010, 23:21

Please help, my fov settings are not working

I am desperate because I am wrecking my brain for hours now and can't find the error.
Man, how I love debugging *rolleyes*

I have built a tour and everything worked fine and as it is expected.

Now I have found the great all xml thumbnail plugin and managed to get it working with my tour.
But to my surprise, no matter what, the fov settings in each panorama are completely ignored.
Even with the first image and I can't find any setting that may cause this. So maybe someone has a few minutes to take pity on me and have alook at what I've got.

Here goes:
The main xml

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
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
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
<krpano onstart="action(loadfirstpano, panorama1);" >
<!--<include url="is/settings.xml" />-->
<include url="is/interface.xml" />

<scene name="panorama1" onstart="action(showinterface,Firmengebäude);">
<view hlookat="-80.956290" vlookat="-3.656190" camroll="0.000000" fov="74.099580" fovmin="74.099580" fovmax="120.000000" maxpixelzoom="1.000000" limitfov="true" />
	<preview type="CUBESTRIP" url="aussen.tiles/preview.jpg" />
	<image type="CUBE" multires="true" tilesize="4000">
		<level tiledimagewidth="1910" tiledimageheight="1910">
			<left  url="../aussen.tiles/pano_l_%0v%0h.jpg" />
			<front url="../aussen.tiles/pano_f_%0v%0h.jpg" />
			<right url="../aussen.tiles/pano_r_%0v%0h.jpg" />
			<back  url="../aussen.tiles/pano_b_%0v%0h.jpg" />
			<up    url="../aussen.tiles/pano_u_%0v%0h.jpg" />
			<down  url="../aussen.tiles/pano_d_%0v%0h.jpg" />
		</level>
	</image>
</scene>

<scene name="panorama2" onstart="action(showinterface,Chemisches Labor);">
<view hlookat       ="136.982025"
	      vlookat       ="15.755559"
	      camroll       ="0.000000"
	      fov           ="90.000000"
	      fovmin        ="74.099580"
	      fovmax        ="120.000000"
	      maxpixelzoom="1.000000" 
	      limitfov="true" />
	<preview type="CUBESTRIP" url="5187_chem_labor.tiles/preview.jpg" />
		<image type="CUBE" multires="true" tilesize="4000">
		<level tiledimagewidth="1910" tiledimageheight="1910">
			<left  url="../5187_chem_labor.tiles/pano_l_%0v%0h.jpg" />
			<front url="../5187_chem_labor.tiles/pano_f_%0v%0h.jpg" />
			<right url="../5187_chem_labor.tiles/pano_r_%0v%0h.jpg" />
			<back  url="../5187_chem_labor.tiles/pano_b_%0v%0h.jpg" />
			<up    url="../5187_chem_labor.tiles/pano_u_%0v%0h.jpg" />
			<down  url="../5187_chem_labor.tiles/pano_d_%0v%0h.jpg" />
		</level>
	</image>
</scene>

<scene name="panorama3" onstart="action(showinterface,Qualitätssicherung);">
<view hlookat="-47.674147" vlookat="12.870686" camroll="0.000000" fov="74.099580" fovmin="74.099580" fovmax="120.000000" maxpixelzoom="1.000000" limitfov="true" />
	<preview type="CUBESTRIP" url="5649_qs_consumer.tiles/preview.jpg" />
	<image type="CUBE" multires="true" tilesize="4000">
		<level tiledimagewidth="1910" tiledimageheight="1910">
			<left  url="../5649_qs_consumer.tiles/pano_l_%0v%0h.jpg" />
			<front url="../5649_qs_consumer.tiles/pano_f_%0v%0h.jpg" />
			<right url="../5649_qs_consumer.tiles/pano_r_%0v%0h.jpg" />
			<back  url="../5649_qs_consumer.tiles/pano_b_%0v%0h.jpg" />
			<up    url="../5649_qs_consumer.tiles/pano_u_%0v%0h.jpg" />
			<down  url="../5649_qs_consumer.tiles/pano_d_%0v%0h.jpg" />
		</level>
	</image>
</scene>

<scene name="panorama4" onstart="action(showinterface,Technikum);">
	<view hlookat       ="122.357378"
	      vlookat       ="20.813311"
	      camroll       ="0.000000"
	      fov           ="84.386118"
	      fovmin        ="73.667793"
	      fovmax        ="120.000000"
maxpixelzoom="1.000000" 
limitfov="true" />
	<preview type="CUBESTRIP" url="5349_technikum2.tiles/preview.jpg" />
		<image type="CUBE" multires="true" tilesize="4000">
		<level tiledimagewidth="1910" tiledimageheight="1910">
			<left  url="../5349_technikum2.tiles/pano_l_%0v%0h.jpg" />
			<front url="../5349_technikum2.tiles/pano_f_%0v%0h.jpg" />
			<right url="../5349_technikum2.tiles/pano_r_%0v%0h.jpg" />
			<back  url="../5349_technikum2.tiles/pano_b_%0v%0h.jpg" />
			<up    url="../5349_technikum2.tiles/pano_u_%0v%0h.jpg" />
			<down  url="../5349_technikum2.tiles/pano_d_%0v%0h.jpg" />
		</level>
	</image>
</scene>

<scene name="panorama5" onstart="action(showinterface,Mischerei);">
	<view hlookat       ="-45.015154"
	      vlookat       ="-0.308347"
	      camroll       ="0.000000"
	      fov           ="84.386118"
	      fovmin        ="74.099580"
	      fovmax        ="120.000000"
	      maxpixelzoom="1.000000" limitfov="true" />
	<preview type="CUBESTRIP" url="5759_mischerei.tiles/preview.jpg" />
	<image type="CUBE" multires="true" tilesize="4000">
		<level tiledimagewidth="1910" tiledimageheight="1910">
			<left  url="../5759_mischerei.tiles/pano_l_%0v%0h.jpg" />
			<front url="../5759_mischerei.tiles/pano_f_%0v%0h.jpg" />
			<right url="../5759_mischerei.tiles/pano_r_%0v%0h.jpg" />
			<back  url="../5759_mischerei.tiles/pano_b_%0v%0h.jpg" />
			<up    url="../5759_mischerei.tiles/pano_u_%0v%0h.jpg" />
			<down  url="../5759_mischerei.tiles/pano_d_%0v%0h.jpg" />
		</level>
	</image>
</scene>

<scene name="panorama6" onstart="action(showinterface,Versand);">
	<view hlookat       ="-3.565515"
	      vlookat       ="-0.199428"
	      camroll       ="0.000000"
	      fov           ="79.087393"
	      fovmin        ="74.099580"
	      fovmax        ="120.000000"
	      maxpixelzoom="1.000000" limitfov="true" />
	<preview type="CUBESTRIP" url="5696_versand.tiles/preview.jpg" />
	<image type="CUBE" multires="true" tilesize="4000">
		<level tiledimagewidth="1910" tiledimageheight="1910">
			<left  url="../5696_versand.tiles/pano_l_%0v%0h.jpg" />
			<front url="../5696_versand.tiles/pano_f_%0v%0h.jpg" />
			<right url="../5696_versand.tiles/pano_r_%0v%0h.jpg" />
			<back  url="../5696_versand.tiles/pano_b_%0v%0h.jpg" />
			<up    url="../5696_versand.tiles/pano_u_%0v%0h.jpg" />
			<down  url="../5696_versand.tiles/pano_d_%0v%0h.jpg" />
		</level>
	</image>
</scene>


<scene name="panorama7" onstart="action(showinterface,Seminarraum);">
	<preview type="CUBESTRIP" url="5539_seminar_consumer.tiles/preview.jpg" />
	<image type="CUBE" multires="true" tilesize="4000">
		<level tiledimagewidth="1910" tiledimageheight="1910">
			<left  url="../5539_seminar_consumer.tiles/pano_l_%0v%0h.jpg" />
			<front url="../5539_seminar_consumer.tiles/pano_f_%0v%0h.jpg" />
			<right url="../5539_seminar_consumer.tiles/pano_r_%0v%0h.jpg" />
			<back  url="../5539_seminar_consumer.tiles/pano_b_%0v%0h.jpg" />
			<up    url="../5539_seminar_consumer.tiles/pano_u_%0v%0h.jpg" />
			<down  url="../5539_seminar_consumer.tiles/pano_d_%0v%0h.jpg" />
		</level>
	</image>
	 	<view hlookat       ="-1.963361"
	      vlookat       ="5.487563"
	      camroll       ="0.000000"
	      fov           ="70.000000"
	      fovmin        ="74.099580"
	      fovmax        ="120.000000"
	      maxpixelzoom  ="1.000000"
	      limitfov      ="true"
	      />
</scene>


<scene name="panorama8" onstart="action(showinterface,Kantine);">
	<view hlookat       ="-108.852900"
	      vlookat       ="18.028901"
	      camroll       ="0.000000"
	      fov           ="84.375487"
	      fovmin        ="74.099580"
	      fovmax        ="120.000000"
	      maxpixelzoom="1.000000" limitfov="true" />
	<preview type="CUBESTRIP" url="5482_cantina.tiles/preview.jpg" />
	<image type="CUBE" multires="true" tilesize="4000">
		<level tiledimagewidth="1910" tiledimageheight="1910">
			<left  url="../5482_cantina.tiles/pano_l_%0v%0h.jpg" />
			<front url="../5482_cantina.tiles/pano_f_%0v%0h.jpg" />
			<right url="../5482_cantina.tiles/pano_r_%0v%0h.jpg" />
			<back  url="../5482_cantina.tiles/pano_b_%0v%0h.jpg" />
			<up    url="../5482_cantina.tiles/pano_u_%0v%0h.jpg" />
			<down  url="../5482_cantina.tiles/pano_d_%0v%0h.jpg" />
		</level>
	</image>
</scene>


<!-- create thumbs -->
<action name="createbuttons">
	set(xpos,5); set(scrollw,477);
	createbutton(panorama1, Firmengebäude, thumbs/thumb_aussen.jpg, get(xpos)); inc(xpos,90); inc(scrollw,-90);
	createbutton(panorama2, Chemisches Labor, thumbs/thumb_chem_labor_consumer.jpg, get(xpos)); inc(xpos,90); inc(scrollw,-90);
	createbutton(panorama3, Qualitätssicherung, thumbs/thumb_qs_consumer.jpg, get(xpos)); inc(xpos,90); inc(scrollw,-90);
	createbutton(panorama4, Technikum, thumbs/thumb_technikum1.jpg, get(xpos)); inc(xpos,90); inc(scrollw,-90);
	createbutton(panorama5, Mischerei, thumbs/thumb_mischerei.jpg, get(xpos)); inc(xpos,90); inc(scrollw,-90);
	createbutton(panorama6, Versand, thumbs/thumb_versand.jpg, get(xpos)); inc(xpos,90); inc(scrollw,-90);
	createbutton(panorama7, Seminarraum, thumbs/thumb_seminar_consumer.jpg, get(xpos)); inc(xpos,90); inc(scrollw,-90);
	createbutton(panorama8, Kantine, thumbs/thumb_cantina.jpg, get(xpos)); inc(xpos,90); inc(scrollw,-90);
</action>

</krpano>


hu, i have to split this because the code exceed a 10.000 character limit

jschrader

Fortgeschrittener

  • »jschrader« ist der Autor dieses Themas

Beiträge: 237

Wohnort: Bavaria, Germany

Beruf: Photographer, Producer

  • Nachricht senden

2

Donnerstag, 8. Juli 2010, 23:21

continued:

The interface.xml

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
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
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
<textstyle name="buttontext" origin="cursor" edge="left" xoffset="20" yoffset="20" textalign="center" background="false" border="false" font="Arial"  	fontsize="12" textcolor="0xFFFFFF" bold="false" effect="glow(0x000000,1,5,2);" />

<action name="loadfirstpano">
	action(createbuttons);
	loadscene(%1, null, MERGE);
</action>

<action name="showinterface">
	set(plugin[panonametext].html,[p]%1[/p]);
	tween(plugin[panonametext].alpha, 1, distance(10,2), linear);
	tween(plugin[scrollthumbs].alpha, 1, distance(10,2), linear);
	timerset(0.6,0,,,,,,false,
		set(plugin[scrollthumbs].enabled,true);
		);
	timerset(1,0,,,,,,false,
		tween(plugin[panonametext].alpha, 0.15, distance(10,30), linear);
		);
	timerset(1.5,0,,,,,,false,
		tween(plugin[scrollthumbs].alpha, 0.15, distance(10,10), linear);
		);
</action>

<plugin name="panonametext" url="textfield.swf"
	children="false"
	align="top" edge="center" x="0" y="15"
	width="800"
	height="30"
	background="false"
	textshadow="2"
	css="p{color:#FFFFFF;font-family:Arial;font-weight:bold;font-size:20px;line-height:25px;text-align:center;}"
	html=""
	alpha="1.15"
	keep="true"
/>

<plugin name="scrollthumbs" url="thumbsbg.png"
		align="leftbottom" x="15" y="10"
		scale9grid="18|4|4|54"
		width="500" height="64"
		scalechildren="true"
		scale="1"
		keep="true"
		zorder="98"
		onhover="tween(plugin[scrollthumbs].alpha, 1, distance(10,2), linear); "
		onout="timerset(1,0,,,,,,false, tween(plugin[scrollthumbs].alpha, 0.15, distance(10,10), linear););"
		enabled="false"
/>

<plugin name="scrollthumbscont" url="spacer.png"
		parent="scrollthumbs"
		align="lefttop" origin="lefttop"  x="18" y="7"
		width="464"
		height="50"
		keep="true"
		mask="thumbsmask"
/>


<plugin name="thumbsmask" url="spacerb.png"
		parent="scrollthumbs"

		align="lefttop" origin="lefttop"
		x="18" width="464"
		y="7" height="50"
		keep="true"
		enabled="false"
/>

<plugin name="scrollleft" url="scrollbuttons.png"
		parent="scrollthumbs"
		align="left" edge="left"
		x="0"
		y="0"
		crop="17|0|17|62" onovercrop="0|0|17|62" ondowncrop="34|0|17|62"
		ondown="tween(plugin[scrollthumbscont].x, 18, distance(200,0.3), linear);"
		onhover="tween(plugin[scrollthumbscont].x, 18, distance(200,0.3), linear);"
		onup="stoptween(plugin[scrollthumbscont].x);"
		zorder="102"
		keep="true"
/>

<plugin name="scrollright" url="scrollbuttons.png"
		parent="scrollthumbs"
		align="right" edge="left"
		x="0"
		y="0"
		rotate="180"
		crop="17|0|17|62" onovercrop="0|0|17|62" ondowncrop="34|0|17|62"
		ondown="tween(plugin[scrollthumbscont].x, get(scrollw), distance(200,0.3), linear);"
		onhover="tween(plugin[scrollthumbscont].x, get(scrollw), distance(200,0.3), linear);"
		onup="stoptween(plugin[scrollthumbscont].x);"
		zorder="102"
		keep="true"
/>

<plugin name="frame" url="frame.png"
	parent="scrollthumbscont"
	align="lefttop" origin="lefttop" x="5" y="0"
	scale9grid="3|3|94|44"
	width="85" height="50"
	zorder="101"
	enabled="false"
	keep="true"
/>

<action name="createbutton">
addplugin(%1);
set(plugin[%1].children,false);
set(plugin[%1].url,%3);
set(plugin[%1].parent,scrollthumbscont);
set(plugin[%1].align,lefttop);
set(plugin[%1].origin,lefttop);
set(plugin[%1].x,%4);
set(plugin[%1].y,0);
set(plugin[%1].width,85);
set(plugin[%1].height,50);
set(plugin[%1].zorder,100);
set(plugin[%1].onclick,set(plugin[scrollthumbs].enabled,false); 
set(plugin[frame].x,%4); loadscene(%1, null, MERGE, BLEND(0.7) ););
set(plugin[%1].onhover,showtext( %2,buttontext););
set(plugin[%1].keep,true);
set(
</action>


And for the sake of completeness )although I have commented this out because at them momoent there is nothing I would want and changing parameters did not affect anything) the settings.xml

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
27
28
29
	<progress showwait="none" showload="bar(center,250,17,-80,-50,shaded,0x000000,0xd1d1d1,0xAAAAAA)"/>

<!--		<control
         mousetype      ="moveto"
         mouseaccelerate="1.2"
         mousespeed      ="10.00"
         mousefriction  ="0.80"
         mousefovchange ="1.00"
         keybaccelerate ="0.60"
         keybspeed      ="10.00"
         keybfriction   ="0.80"
         movetocursor   ="arrow"
         cursorsize     ="12.0"
         headswing		="0.0"
	/>
	 -->

<view hlookat="0" vlookat="0" fovtype="MFOV" fov="40" maxpixelzoom="1.0" fovmax="120" fovmin="74"/>

    <display details="18" movequality="LOW" stillquality="HIGHSHARP" />

	<autorotate enabled="false"
        waittime="3"
        accel="3"
        speed="12"
        horizon="0"
        tofov="80"
    />
	<events onloadcomplete="set(autorotate.enabled,true); " />


Thank you very much!
Jürgen

3

Freitag, 9. Juli 2010, 13:18

hallo jürgen,

ich schreib mal deutsch *g*

hast recht, hab ich auch gerade bei meinen testpanos gemerkt.

ist das nicht ein ding von merge/keepall, wenn parameter übergeben werden sollen oder nicht?

vg

markus

jschrader

Fortgeschrittener

  • »jschrader« ist der Autor dieses Themas

Beiträge: 237

Wohnort: Bavaria, Germany

Beruf: Photographer, Producer

  • Nachricht senden

4

Freitag, 9. Juli 2010, 13:30

Danke, Markus,
aber das hab ich ja alles schon probiert. Deswegen desperate :D
Selbst das erst Bild startet nicht so wie es sollte, da ist noch gar nix mit Übergabe.

Schöne Grüße
Jürgen