Sie sind nicht angemeldet.

sasky

Anfänger

  • »sasky« ist der Autor dieses Themas

Beiträge: 17

Beruf: Trying to live as anybody else...

  • Nachricht senden

1

Freitag, 24. Februar 2012, 18:11

iPad issue

Hey lads,


I have done virtual tour and it works on Chrome , FF etc (pc / mac), but when it comes to test it on iPad it fail.
Could you tell me what is wrong with my xml code? I am in rush and I have no clue for now :(

"I forget to add that I have FATAL ERROR: file.xml - loading or parsing failed!"

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
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
<krpano version="1.0.8.14" onstart="loadscene(sala_start,null, MERGE(2))">
<include url="skin/defaultskin.xml" />

<autorotate enabled="true" />	
<style name="hotspot_ani_white"
	       url="hotspot_ani_white.swf"
	       alturl="hotspot_ani_white_big.gif"
	       altscale="0.25"
	       altonloaded="if(isphone, mul(scale,2));"
	       />
	       
	<!-- events - show a infotext on start, update logo rotation -->
	<events onviewchange="if(hotspot[nadirlogo].rotatewithview, set(hotspot[nadirlogo].rotate,get(view.hlookat)) );"
	        />	       


<scene name="sala_start">	
	<!-- nadir logo (distored hotspot) -->
	<hotspot name="nadirlogo"
	         url="skin/nadir.png"
	         ath="0"
	         atv="90"
	         distorted="true"
	         scale="1.0"
	         rotate="0.0"
	         rotatewithview="false"
	         onclick="switch(rotatewithview); invalidatescreen(); openurl(http://www.indecity.pl);"
	         keep="true"
	         />


	<view hlookat="0" vlookat="0" fovtype="MFOV" fov="100" maxpixelzoom="0.5" fovmax="120" limitview="auto" />
	<preview url="start.tiles/preview.jpg" />
	<image>
		<cube url="start.tiles/pano_%s.jpg" />
		<mobile>
			<cube url="start.tiles/mobile_%s.jpg" />
		</mobile>
		<tablet>
			<cube url="start.tiles/tablet_%s.jpg" />
		</tablet>
	</image>
	
		<hotspot name="do_hol1"
		         style="hotspot_ani_white"
		         ath="180"
		         atv="0"
		         onhover="showtext('idz dalej');"
		         onclick="set(view.maxpixelzoom,null);
		                  set(view.fovmin,20);
		                  looktohotspot(get(name),20);
		                  loadscene(hol1, null, MERGE, BLEND(2));
		                  lookat(1.08, 3.82, 50);
			              wait(LOAD);
			              oninterrupt(break);
			              wait(BLEND);
			              lookto(62, 0, 99, smooth(45,45,60));
		                 "
		         />
</scene>

<scene name="hol1">
	<view hlookat="90" vlookat="0" fovtype="MFOV" fov="95" maxpixelzoom="0.5" fovmax="110" limitview="auto" />
	<preview url="poziom_a_1.tiles/preview.jpg" />
	<image>
		<cube url="poziom_a_1.tiles/pano_%s.jpg" />
		<mobile>
			<cube url="poziom_a_1.tiles/mobile_%s.jpg" />
		</mobile>
		<tablet>
			<cube url="poziom_a_1.tiles/tablet_%s.jpg" />
		</tablet>
	</image>

		<hotspot name="do_start1"
		         style="hotspot_ani_white"
		         ath="87"
		         atv="0"
		         onhover="showtext('idz dalej');"
		         onclick="set(view.maxpixelzoom,null);
		                  set(view.fovmin,20);
		                  looktohotspot(get(name),20);
		                  loadscene(sala_start, null, MERGE, BLEND(2));
		                  lookat(1.08, 3.82, 50);
			              wait(LOAD);
			              oninterrupt(break);
			              wait(BLEND);
			              lookto(62, 0, 99, smooth(45,45,60));
		                 "
		         />
		         
		<hotspot name="do_srodek1"
		         style="hotspot_ani_white"
		         ath="-45"
		         atv="0"
		         onhover="showtext('idz dalej');"
		         onclick="set(view.maxpixelzoom,null);
		                  set(view.fovmin,20);
		                  looktohotspot(get(name),20);
		                  loadscene(srodek_hol, null, MERGE, BLEND(2));
		                  lookat(1.08, 3.82, 50);
			              wait(LOAD);
			              oninterrupt(break);
			              wait(BLEND);
			              lookto(-165, 0, 99, smooth(45,45,60));
		                 "
		         />	

	
</scene>

<scene name="srodek_hol">
	<view hlookat="195" vlookat="0" fovtype="MFOV" fov="95" maxpixelzoom="0.5" fovmax="110" limitview="auto" />
	<preview url="srodek.tiles/preview.jpg" />
	<image>
		<cube url="srodek.tiles/pano_%s.jpg" />
		<mobile>
			<cube url="srodek.tiles/mobile_%s.jpg" />
		</mobile>
		<tablet>
			<cube url="srodek.tiles/tablet_%s.jpg" />
		</tablet>
	</image>
	
	
		<hotspot name="do_wejscie1"
		         style="hotspot_ani_white"
		         ath="-55"
		         atv="25"
		         onhover="showtext('idz dalej');"
		         onclick="set(view.maxpixelzoom,null);
		                  set(view.fovmin,20);
		                  looktohotspot(get(name),20);
		                  loadscene(wejscie_hol, null, MERGE, BLEND(2));
		                  lookat(1.08, 3.82, 50);
			              wait(LOAD);
			              oninterrupt(break);
			              wait(BLEND);
			              lookto(-55, 0, 99, smooth(45,45,60));
		                 "
		         />		
		<hotspot name="do_poziom2"
		         style="hotspot_ani_white"
		         ath="182"
		         atv="2"
		         onhover="showtext('idz dalej');"
		         onclick="set(view.maxpixelzoom,null);
		                  set(view.fovmin,20);
		                  looktohotspot(get(name),20);
		                  loadscene(gora_1, null, MERGE, BLEND(2));
		                  lookat(1.08, 3.82, 50);
			              wait(LOAD);
			              oninterrupt(break);
			              wait(BLEND);
			              lookto(110, 5, 99, smooth(45,45,60));
		                 "
		         />		
	
		<hotspot name="do_hol1-2"
		         style="hotspot_ani_white"
		         ath="55"
		         atv="2"
		         onhover="showtext('idz dalej');"
		         onclick="set(view.maxpixelzoom,null);
		                  set(view.fovmin,20);
		                  looktohotspot(get(name),20);
		                  loadscene(hol1, null, MERGE, BLEND(2));
		                  lookat(1.08, 3.82, 50);
			              wait(LOAD);
			              oninterrupt(break);
			              wait(BLEND);
			              lookto(20, 0, 99, smooth(45,45,60));
		                 "
		         />		
</scene>





<scene name="wejscie_hol">
	<view hlookat="40" vlookat="0" fovtype="MFOV" fov="100" maxpixelzoom="1.0" fovmax="120" limitview="range" hlookatmin="-120" hlookatmax="150"/>
	<preview url="poziom_a_3.tiles/preview.jpg" />
	<image>
		<cube url="poziom_a_3.tiles/pano_%s.jpg" />
		<mobile>
			<cube url="poziom_a_3.tiles/mobile_%s.jpg" />
		</mobile>
		<tablet>
			<cube url="poziom_a_3.tiles/tablet_%s.jpg" />
		</tablet>
	</image>
	
		<hotspot name="do_srodek_hol2"
		         style="hotspot_ani_white"
		         ath="35"
		         atv="2"
		         onhover="showtext('idz dalej');"
		         onclick="set(view.maxpixelzoom,null);
		                  set(view.fovmin,20);
		                  looktohotspot(get(name),20);
		                  loadscene(srodek_hol, null, MERGE, BLEND(2));
		                  lookat(1.08, 3.82, 50);
			              wait(LOAD);
			              oninterrupt(break);
			              wait(BLEND);
			              lookto(-165, 0, 99, smooth(45,45,60));
		                 "
		         />		
	
</scene>

<scene name="gora_1">
	<view hlookat="0" vlookat="0" fovtype="MFOV" fov="95" maxpixelzoom="0.5" fovmax="120" limitview="auto" />
	<preview url="poziom_b_1.tiles/preview.jpg" />
	<image>
		<cube url="poziom_b_1.tiles/pano_%s.jpg" />
		<mobile>
			<cube url="poziom_b_1.tiles/mobile_%s.jpg" />
		</mobile>
		<tablet>
			<cube url="poziom_b_1.tiles/tablet_%s.jpg" />
		</tablet>
	</image>	
	
		<hotspot name="do_sala_odsluchu_mala"
		         style="hotspot_ani_white"
		         ath="-135"
		         atv="2"
		         onhover="showtext('idz dalej');"
		         onclick="set(view.maxpixelzoom,null);
		                  set(view.fovmin,20);
		                  looktohotspot(get(name),20);
		                  loadscene(gora2, null, MERGE, BLEND(2));
		                  lookat(1.08, 3.82, 50);
			              wait(LOAD);
			              oninterrupt(break);
			              wait(BLEND);
			              lookto(0, 5, 105, smooth(45,45,60));
		                 "
		         />			
		<hotspot name="do_hol_srodek3"
		         style="hotspot_ani_white"
		         ath="-185"
		         atv="2"
		         onhover="showtext('idz dalej');"
		         onclick="set(view.maxpixelzoom,null);
		                  set(view.fovmin,20);
		                  looktohotspot(get(name),20);
		                  loadscene(srodek_hol, null, MERGE, BLEND(2));
		                  lookat(1.08, 3.82, 50);
			              wait(LOAD);
			              oninterrupt(break);
			              wait(BLEND);
			              lookto(-165, 0, 99, smooth(45,45,60));
		                 "
		         />		
	
	
</scene>
<scene name="gora2">
	<view hlookat="0" vlookat="0" fovtype="MFOV" fov="90" maxpixelzoom="1.0" fovmax="120" limitview="auto" />

	<preview url="poziom_b_2.tiles/preview.jpg" />

	<image>
		<cube url="poziom_b_2.tiles/pano_%s.jpg" />
		<mobile>
			<cube url="poziom_b_2.tiles/mobile_%s.jpg" />
		</mobile>
		<tablet>
			<cube url="poziom_b_2.tiles/tablet_%s.jpg" />
		</tablet>
	</image>
		<hotspot name="do_gora_srodek"
		         style="hotspot_ani_white"
		         ath="-72"
		         atv="2"
		         onhover="showtext('idz dalej');"
		         onclick="set(view.maxpixelzoom,null);
		                  set(view.fovmin,20);
		                  looktohotspot(get(name),20);
		                  loadscene(gora_1, null, MERGE, BLEND(2));
		                  lookat(1.08, 3.82, 50);
			              wait(LOAD);
			              oninterrupt(break);
			              wait(BLEND);
			              lookto(0, 0, 99, smooth(45,45,60));
		                 "
		         />		
		
	
	
</scene>



</krpano>


 



Thanks in advance
Martin *blink*

Dieser Beitrag wurde bereits 1 mal editiert, zuletzt von »sasky« (25. Februar 2012, 12:03)


2

Samstag, 25. Februar 2012, 13:11

Hi,

the posted xml code doesn't seem to have a xml syntax error,
so there might be a loading problem, e.g. wrong paths or other reasons...

without link it's of course not possible to say what's exactly the reason...

btw - the correct syntax of a xml file can be checked by opening it directly in the browser,

best regards,
Klaus