Sie sind nicht angemeldet.

1

Dienstag, 23. Dezember 2014, 18:43

Adding code for a splash screen to a vtour

I've just created my first virtual tour by using the make vtour (multires) droplet. I'd like to add a splash screen. I found working code to do this in the introimage example viz

Quellcode

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
	<events name="panoevents"
	    	onloadcomplete="delayedcall(introimage, 4.0, if(layer[introimage], hideintroimage() ); ); set(events[panoevents].onloadcomplete,null);"
	    	onremovepano="stopdelayedcall(introimage);"
	    	/>
	
	
	<layer name="introimage"
	   	url="introimage.png"
	   	align="center"
	   	onloaded="set(alpha,0); tween(alpha,1.0);"
	   	onclick="hideintroimage();"
	   	/>
	
	<action name="hideintroimage">
	    if(layer[introimage].enabled,
	   	 set(layer[introimage].enabled,false);
	   	 tween(layer[introimage].alpha, 0.0, 0.5, default, removelayer(introimage));
	      );
	</action>


and pasted it into my tour's XML file just before the final </krpano>. This was a guess that didn't seem to work - the tour starts in the same way as it did before I added the code i.e. with a black screen. I did remember to copy the PNG file to the same folder as my tour.xml.

What am I missing? Do I have to combine the code from introimage with tour.xml's startup() function?

Tour is here: http://www.kilgore.org.uk/hmc/tests/vtour/tour.html

tour.xml follows - thanks!

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
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
<krpano version="1.18" title="Virtual Tour" onstart="startup();">
  <include url="skin/vtourskin.xml" />
  <!-- set skin settings: bingmaps? gyro? thumbnails? tooltips? -->
  <skin_settings maps="false" maps_type="bing" maps_bing_api_key=""
  maps_zoombuttons="false" gyro="true" title="true" thumbs="true"
  thumbs_width="120" thumbs_height="80" thumbs_padding="10"
  thumbs_crop="0|40|240|160" thumbs_opened="false"
  thumbs_text="false" thumbs_dragging="true"
  thumbs_onhoverscrolling="false" thumbs_scrollbuttons="false"
  thumbs_scrollindicator="false" thumbs_loop="false"
  tooltips_thumbs="false" tooltips_hotspots="false"
  tooltips_mapspots="false" loadscene_flags="MERGE"
  loadscene_blend="BLEND(0.5)" controlbar_offset="20" />
  <!-- set optional skin logo url -->
  <layer name="skin_logo" url="" scale="0.25"
  opened_onclick="openurl('...',_blank);" />
  <action name="startup">if(startscene === null,
  copy(startscene,scene[0].name)); loadscene(get(startscene), null,
  MERGE);</action>
  <scene name="scene_1_balcony_1__nat__IMG_8385_6_7Natural_IMG_8616_7_8Natural-78_images"
  title="1 balcony 1, nat, IMG_8385_6_7Natural_IMG_8616_7_8Natural-78 images"
  onstart=""
  thumburl="panos/1_balcony_1__nat__IMG_8385_6_7Natural_IMG_8616_7_8Natural-78_images.tiles/thumb.jpg"
  lat="" lng="" heading="" devices="flash">
	<view hlookat="-43.651" vlookat="5.750" fovtype="MFOV"
	fov="64.988" maxpixelzoom="1.0" fovmin="70" fovmax="140"
	limitview="auto" />
	<preview url="panos/1_balcony_1__nat__IMG_8385_6_7Natural_IMG_8616_7_8Natural-78_images.tiles/preview.jpg" />
	<image type="SPHERE" hfov="161.22" vfov="79.451392"
	voffset="10.93" multires="true" tilesize="512"
	progressive="true">
  	<level tiledimagewidth="35328" tiledimageheight="17410">
    	<sphere url="panos/1_balcony_1__nat__IMG_8385_6_7Natural_IMG_8616_7_8Natural-78_images.tiles/l6/%v/l6_%v_%h.jpg" />
  	</level>
  	<level tiledimagewidth="17664" tiledimageheight="8706">
    	<sphere url="panos/1_balcony_1__nat__IMG_8385_6_7Natural_IMG_8616_7_8Natural-78_images.tiles/l5/%v/l5_%v_%h.jpg" />
  	</level>
  	<level tiledimagewidth="8832" tiledimageheight="4354">
    	<sphere url="panos/1_balcony_1__nat__IMG_8385_6_7Natural_IMG_8616_7_8Natural-78_images.tiles/l4/%v/l4_%v_%h.jpg" />
  	</level>
  	<level tiledimagewidth="4416" tiledimageheight="2178">
    	<sphere url="panos/1_balcony_1__nat__IMG_8385_6_7Natural_IMG_8616_7_8Natural-78_images.tiles/l3/%v/l3_%v_%h.jpg" />
  	</level>
  	<level tiledimagewidth="2208" tiledimageheight="1090">
    	<sphere url="panos/1_balcony_1__nat__IMG_8385_6_7Natural_IMG_8616_7_8Natural-78_images.tiles/l2/%v/l2_%v_%h.jpg" />
  	</level>
  	<level tiledimagewidth="1104" tiledimageheight="546">
    	<sphere url="panos/1_balcony_1__nat__IMG_8385_6_7Natural_IMG_8616_7_8Natural-78_images.tiles/l1/%v/l1_%v_%h.jpg" />
  	</level>
	</image>
	<!-- place your scene hotspots here -->
	<hotspot name="spot1" style="skin_hotspotstyle" ath="-45.700"
	atv="23.341"
	linkedscene="scene_beta_6_entrance-img_9256_a_bnatural_img_9303_a_bnatural-48_images" />
	<hotspot name="spot2" style="skin_hotspotstyle" ath="27.139"
	atv="3.208"
	linkedscene="scene__3_carpet_1__nat-img_8726_7_8natural_img_8903_4_5natural-60_images" />
	<hotspot name="spot3" style="skin_hotspotstyle" ath="25.156"
	atv="3.342"
	linkedscene="scene_beta_4_carpet_2-img_8912_img_8959-48_images" />
	<hotspot name="spot4" style="skin_hotspotstyle" ath="28.030"
	atv="9.279"
	linkedscene="scene_5-race__nat-img_9306_a_bnatural_img_9353_a_bnatural-48_images" />
  </scene>
  <scene name="scene_5-race__nat-IMG_9306_a_bNatural_IMG_9353_a_bNatural-48_images"
  title="5-race, nat-IMG_9306_a_bNatural_IMG_9353_a_bNatural-48 images"
  onstart=""
  thumburl="panos/5-race__nat-IMG_9306_a_bNatural_IMG_9353_a_bNatural-48_images.tiles/thumb.jpg"
  lat="" lng="" heading="">
	<view hlookat="0" vlookat="0" fovtype="MFOV" fov="120"
	maxpixelzoom="1.0" fovmin="70" fovmax="140" limitview="range"
	vlookatmin="-84.690" vlookatmax="84.690" />
	<preview url="panos/5-race__nat-IMG_9306_a_bNatural_IMG_9353_a_bNatural-48_images.tiles/preview.jpg" />
	<image type="CUBE" multires="true" tilesize="512">
  	<level tiledimagewidth="8520" tiledimageheight="8520">
    	<cube url="panos/5-race__nat-IMG_9306_a_bNatural_IMG_9353_a_bNatural-48_images.tiles/%s/l5/%v/l5_%s_%v_%h.jpg" />
  	</level>
  	<level tiledimagewidth="4260" tiledimageheight="4260">
    	<cube url="panos/5-race__nat-IMG_9306_a_bNatural_IMG_9353_a_bNatural-48_images.tiles/%s/l4/%v/l4_%s_%v_%h.jpg" />
  	</level>
  	<level tiledimagewidth="2130" tiledimageheight="2130">
    	<cube url="panos/5-race__nat-IMG_9306_a_bNatural_IMG_9353_a_bNatural-48_images.tiles/%s/l3/%v/l3_%s_%v_%h.jpg" />
  	</level>
  	<level tiledimagewidth="1024" tiledimageheight="1024">
    	<cube url="panos/5-race__nat-IMG_9306_a_bNatural_IMG_9353_a_bNatural-48_images.tiles/%s/l2/%v/l2_%s_%v_%h.jpg" />
  	</level>
  	<level tiledimagewidth="512" tiledimageheight="512">
    	<cube url="panos/5-race__nat-IMG_9306_a_bNatural_IMG_9353_a_bNatural-48_images.tiles/%s/l1/%v/l1_%s_%v_%h.jpg" />
  	</level>
  	<mobile>
    	<cube url="panos/5-race__nat-IMG_9306_a_bNatural_IMG_9353_a_bNatural-48_images.tiles/mobile_%s.jpg" />
  	</mobile>
	</image>
	<!-- place your scene hotspots here -->
	<hotspot name="spot1" style="skin_hotspotstyle" ath="-33.797"
	atv="-6.670"
	linkedscene="scene__3_carpet_1__nat-img_8726_7_8natural_img_8903_4_5natural-60_images" />
	<hotspot name="spot2" style="skin_hotspotstyle" ath="-38.571"
	atv="-7.394"
	linkedscene="scene_beta_4_carpet_2-img_8912_img_8959-48_images" />
	<hotspot name="spot3" style="skin_hotspotstyle" ath="154.632"
	atv="1.686"
	linkedscene="scene_1_balcony_1__nat__img_8385_6_7natural_img_8616_7_8natural-78_images" />
	<hotspot name="spot4" style="skin_hotspotstyle" ath="175.880"
	atv="6.830"
	linkedscene="scene_beta_6_entrance-img_9256_a_bnatural_img_9303_a_bnatural-48_images" />
  </scene>
  <scene name="scene__2_balcony_2__nat_import-IMG_8625_6_7Natural_IMG_8718_19_20Natural-32_images"
  title="_2 balcony 2, nat import-IMG_8625_6_7Natural_IMG_8718_19_20Natural-32 images"
  onstart=""
  thumburl="panos/_2_balcony_2__nat_import-IMG_8625_6_7Natural_IMG_8718_19_20Natural-32_images.tiles/thumb.jpg"
  lat="" lng="" heading="" devices="flash">
	<view hlookat="0" vlookat="0" fovtype="MFOV" fov="120"
	maxpixelzoom="1.0" fovmin="70" fovmax="140" limitview="auto" />
	<preview url="panos/_2_balcony_2__nat_import-IMG_8625_6_7Natural_IMG_8718_19_20Natural-32_images.tiles/preview.jpg" />
	<image type="SPHERE" hfov="299.17" vfov="162.616078"
	voffset="1.24" multires="true" tilesize="512"
	progressive="true">
  	<level tiledimagewidth="22522" tiledimageheight="12242">
    	<sphere url="panos/_2_balcony_2__nat_import-IMG_8625_6_7Natural_IMG_8718_19_20Natural-32_images.tiles/l5/%v/l5_%v_%h.jpg" />
  	</level>
  	<level tiledimagewidth="11264" tiledimageheight="6124">
    	<sphere url="panos/_2_balcony_2__nat_import-IMG_8625_6_7Natural_IMG_8718_19_20Natural-32_images.tiles/l4/%v/l4_%v_%h.jpg" />
  	</level>
  	<level tiledimagewidth="5632" tiledimageheight="3062">
    	<sphere url="panos/_2_balcony_2__nat_import-IMG_8625_6_7Natural_IMG_8718_19_20Natural-32_images.tiles/l3/%v/l3_%v_%h.jpg" />
  	</level>
  	<level tiledimagewidth="2816" tiledimageheight="1532">
    	<sphere url="panos/_2_balcony_2__nat_import-IMG_8625_6_7Natural_IMG_8718_19_20Natural-32_images.tiles/l2/%v/l2_%v_%h.jpg" />
  	</level>
  	<level tiledimagewidth="1408" tiledimageheight="766">
    	<sphere url="panos/_2_balcony_2__nat_import-IMG_8625_6_7Natural_IMG_8718_19_20Natural-32_images.tiles/l1/%v/l1_%v_%h.jpg" />
  	</level>
	</image>
	<!-- place your scene hotspots here -->
	<hotspot name="spot1" style="skin_hotspotstyle" ath="-61.934"
	atv="32.200"
	linkedscene="scene_beta_7_jag__nat-img_9355_6_7natural_img_9499_500_501natural-49_images" />
	<hotspot name="spot2" style="skin_hotspotstyle" ath="22.298"
	atv="19.955"
	linkedscene="scene_beta_8_penelope__nat-img_9502_3_4natural_img_9667_8_9natural-54_images" />
  </scene>
  <scene name="scene__3_carpet_1__nat-IMG_8726_7_8Natural_IMG_8903_4_5Natural-60_images"
  title="_3 carpet 1, nat-IMG_8726_7_8Natural_IMG_8903_4_5Natural-60 images"
  onstart=""
  thumburl="panos/_3_carpet_1__nat-IMG_8726_7_8Natural_IMG_8903_4_5Natural-60_images.tiles/thumb.jpg"
  lat="" lng="" heading="" devices="flash">
	<view hlookat="0" vlookat="0" fovtype="MFOV" fov="120"
	maxpixelzoom="1.0" fovmin="70" fovmax="140" limitview="auto" />
	<preview url="panos/_3_carpet_1__nat-IMG_8726_7_8Natural_IMG_8903_4_5Natural-60_images.tiles/preview.jpg" />
	<image type="SPHERE" hfov="169.83" vfov="61.172747"
	voffset="22.76" multires="true" tilesize="512"
	progressive="true">
  	<level tiledimagewidth="37222" tiledimageheight="13408">
    	<sphere url="panos/_3_carpet_1__nat-IMG_8726_7_8Natural_IMG_8903_4_5Natural-60_images.tiles/l5/%v/l5_%v_%h.jpg" />
  	</level>
  	<level tiledimagewidth="18612" tiledimageheight="6704">
    	<sphere url="panos/_3_carpet_1__nat-IMG_8726_7_8Natural_IMG_8903_4_5Natural-60_images.tiles/l4/%v/l4_%v_%h.jpg" />
  	</level>
  	<level tiledimagewidth="9306" tiledimageheight="3352">
    	<sphere url="panos/_3_carpet_1__nat-IMG_8726_7_8Natural_IMG_8903_4_5Natural-60_images.tiles/l3/%v/l3_%v_%h.jpg" />
  	</level>
  	<level tiledimagewidth="4608" tiledimageheight="1660">
    	<sphere url="panos/_3_carpet_1__nat-IMG_8726_7_8Natural_IMG_8903_4_5Natural-60_images.tiles/l2/%v/l2_%v_%h.jpg" />
  	</level>
  	<level tiledimagewidth="2304" tiledimageheight="830">
    	<sphere url="panos/_3_carpet_1__nat-IMG_8726_7_8Natural_IMG_8903_4_5Natural-60_images.tiles/l1/%v/l1_%v_%h.jpg" />
  	</level>
	</image>
	<!-- place your scene hotspots here -->
	<hotspot name="spot1" style="skin_hotspotstyle" ath="38.136"
	atv="22.844"
	linkedscene="scene_5-race__nat-img_9306_a_bnatural_img_9353_a_bnatural-48_images" />
	<hotspot name="spot2" style="skin_hotspotstyle" ath="50.549"
	atv="0.739"
	linkedscene="scene_1_balcony_1__nat__img_8385_6_7natural_img_8616_7_8natural-78_images" />
	<hotspot name="spot3" style="skin_hotspotstyle" ath="68.338"
	atv="6.090"
	linkedscene="scene_beta_6_entrance-img_9256_a_bnatural_img_9303_a_bnatural-48_images" />
  </scene>
  <scene name="scene_beta_4_carpet_2-IMG_8912_IMG_8959-48_images"
  title="beta 4 carpet 2-IMG_8912_IMG_8959-48 images" onstart=""
  thumburl="panos/beta_4_carpet_2-IMG_8912_IMG_8959-48_images.tiles/thumb.jpg"
  lat="" lng="" heading="">
	<view hlookat="0" vlookat="0" fovtype="MFOV" fov="120"
	maxpixelzoom="1.0" fovmin="70" fovmax="140" limitview="auto" />
	<preview url="panos/beta_4_carpet_2-IMG_8912_IMG_8959-48_images.tiles/preview.jpg" />
	<image type="CUBE" multires="true" tilesize="512">
  	<level tiledimagewidth="8512" tiledimageheight="8512">
    	<cube url="panos/beta_4_carpet_2-IMG_8912_IMG_8959-48_images.tiles/%s/l5/%v/l5_%s_%v_%h.jpg" />
  	</level>
  	<level tiledimagewidth="4256" tiledimageheight="4256">
    	<cube url="panos/beta_4_carpet_2-IMG_8912_IMG_8959-48_images.tiles/%s/l4/%v/l4_%s_%v_%h.jpg" />
  	</level>
  	<level tiledimagewidth="2128" tiledimageheight="2128">
    	<cube url="panos/beta_4_carpet_2-IMG_8912_IMG_8959-48_images.tiles/%s/l3/%v/l3_%s_%v_%h.jpg" />
  	</level>
  	<level tiledimagewidth="1024" tiledimageheight="1024">
    	<cube url="panos/beta_4_carpet_2-IMG_8912_IMG_8959-48_images.tiles/%s/l2/%v/l2_%s_%v_%h.jpg" />
  	</level>
  	<level tiledimagewidth="512" tiledimageheight="512">
    	<cube url="panos/beta_4_carpet_2-IMG_8912_IMG_8959-48_images.tiles/%s/l1/%v/l1_%s_%v_%h.jpg" />
  	</level>
  	<mobile>
    	<cube url="panos/beta_4_carpet_2-IMG_8912_IMG_8959-48_images.tiles/mobile_%s.jpg" />
  	</mobile>
	</image>
	<!-- place your scene hotspots here -->
	<hotspot name="spot1" style="skin_hotspotstyle" ath="42.715"
	atv="25.605"
	linkedscene="scene_5-race__nat-img_9306_a_bnatural_img_9353_a_bnatural-48_images" />
	<hotspot name="spot2" style="skin_hotspotstyle" ath="53.358"
	atv="2.241"
	linkedscene="scene_1_balcony_1__nat__img_8385_6_7natural_img_8616_7_8natural-78_images" />
	<hotspot name="spot3" style="skin_hotspotstyle" ath="69.871"
	atv="7.434"
	linkedscene="scene_beta_6_entrance-img_9256_a_bnatural_img_9303_a_bnatural-48_images" />
	<hotspot name="spot4" style="skin_hotspotstyle" ath="0.642"
	atv="69.141"
	linkedscene="scene__3_carpet_1__nat-img_8726_7_8natural_img_8903_4_5natural-60_images" />
  </scene>
  <scene name="scene_beta_6_entrance-IMG_9256_a_bNatural_IMG_9303_a_bNatural-48_images"
  title="beta 6 entrance-IMG_9256_a_bNatural_IMG_9303_a_bNatural-48 images"
  onstart=""
  thumburl="panos/beta_6_entrance-IMG_9256_a_bNatural_IMG_9303_a_bNatural-48_images.tiles/thumb.jpg"
  lat="" lng="" heading="" devices="flash">
	<view hlookat="0.000" vlookat="0.000" fovtype="MFOV"
	fov="120.000" maxpixelzoom="1.0" fovmin="70" fovmax="140"
	limitview="auto" />
	<preview url="panos/beta_6_entrance-IMG_9256_a_bNatural_IMG_9303_a_bNatural-48_images.tiles/preview.jpg" />
	<image type="SPHERE" hfov="333.79" vfov="163.240859"
	voffset="-3.36" multires="true" tilesize="512"
	progressive="true">
  	<level tiledimagewidth="24846" tiledimageheight="12152">
    	<sphere url="panos/beta_6_entrance-IMG_9256_a_bNatural_IMG_9303_a_bNatural-48_images.tiles/l5/%v/l5_%v_%h.jpg" />
  	</level>
  	<level tiledimagewidth="12424" tiledimageheight="6076">
    	<sphere url="panos/beta_6_entrance-IMG_9256_a_bNatural_IMG_9303_a_bNatural-48_images.tiles/l4/%v/l4_%v_%h.jpg" />
  	</level>
  	<level tiledimagewidth="6212" tiledimageheight="3038">
    	<sphere url="panos/beta_6_entrance-IMG_9256_a_bNatural_IMG_9303_a_bNatural-48_images.tiles/l3/%v/l3_%v_%h.jpg" />
  	</level>
  	<level tiledimagewidth="3072" tiledimageheight="1502">
    	<sphere url="panos/beta_6_entrance-IMG_9256_a_bNatural_IMG_9303_a_bNatural-48_images.tiles/l2/%v/l2_%v_%h.jpg" />
  	</level>
  	<level tiledimagewidth="1536" tiledimageheight="752">
    	<sphere url="panos/beta_6_entrance-IMG_9256_a_bNatural_IMG_9303_a_bNatural-48_images.tiles/l1/%v/l1_%v_%h.jpg" />
  	</level>
	</image>
	<!-- place your scene hotspots here -->
	<hotspot name="spot1" style="skin_hotspotstyle" ath="40.117"
	atv="-10.245"
	linkedscene="scene_1_balcony_1__nat__img_8385_6_7natural_img_8616_7_8natural-78_images" />
	<hotspot name="spot2" style="skin_hotspotstyle" ath="-52.515"
	atv="-2.814"
	linkedscene="scene__3_carpet_1__nat-img_8726_7_8natural_img_8903_4_5natural-60_images" />
	<hotspot name="spot3" style="skin_hotspotstyle" ath="-54.966"
	atv="-2.794"
	linkedscene="scene_beta_4_carpet_2-img_8912_img_8959-48_images" />
	<hotspot name="spot4" style="skin_hotspotstyle" ath="-41.950"
	atv="1.457"
	linkedscene="scene_5-race__nat-img_9306_a_bnatural_img_9353_a_bnatural-48_images" />
	<hotspot name="spot5" style="skin_hotspotstyle" ath="73.167"
	atv="-0.751"
	linkedscene="scene_beta_8_penelope__nat-img_9502_3_4natural_img_9667_8_9natural-54_images" />
	<hotspot name="spot6" style="skin_hotspotstyle" ath="63.371"
	atv="-4.814"
	linkedscene="scene__2_balcony_2__nat_import-img_8625_6_7natural_img_8718_19_20natural-32_images" />
  </scene>
  <scene name="scene_beta_7_jag__nat-IMG_9355_6_7Natural_IMG_9499_500_501Natural-49_images"
  title="beta 7 jag, nat-IMG_9355_6_7Natural_IMG_9499_500_501Natural-49 images"
  onstart=""
  thumburl="panos/beta_7_jag__nat-IMG_9355_6_7Natural_IMG_9499_500_501Natural-49_images.tiles/thumb.jpg"
  lat="" lng="" heading="">
	<view hlookat="0" vlookat="0" fovtype="MFOV" fov="120"
	maxpixelzoom="1.0" fovmin="70" fovmax="140" limitview="range"
	vlookatmin="-83.555" vlookatmax="83.555" />
	<preview url="panos/beta_7_jag__nat-IMG_9355_6_7Natural_IMG_9499_500_501Natural-49_images.tiles/preview.jpg" />
	<image type="CUBE" multires="true" tilesize="512">
  	<level tiledimagewidth="8500" tiledimageheight="8500">
    	<cube url="panos/beta_7_jag__nat-IMG_9355_6_7Natural_IMG_9499_500_501Natural-49_images.tiles/%s/l5/%v/l5_%s_%v_%h.jpg" />
  	</level>
  	<level tiledimagewidth="4250" tiledimageheight="4250">
    	<cube url="panos/beta_7_jag__nat-IMG_9355_6_7Natural_IMG_9499_500_501Natural-49_images.tiles/%s/l4/%v/l4_%s_%v_%h.jpg" />
  	</level>
  	<level tiledimagewidth="2126" tiledimageheight="2126">
    	<cube url="panos/beta_7_jag__nat-IMG_9355_6_7Natural_IMG_9499_500_501Natural-49_images.tiles/%s/l3/%v/l3_%s_%v_%h.jpg" />
  	</level>
  	<level tiledimagewidth="1024" tiledimageheight="1024">
    	<cube url="panos/beta_7_jag__nat-IMG_9355_6_7Natural_IMG_9499_500_501Natural-49_images.tiles/%s/l2/%v/l2_%s_%v_%h.jpg" />
  	</level>
  	<level tiledimagewidth="512" tiledimageheight="512">
    	<cube url="panos/beta_7_jag__nat-IMG_9355_6_7Natural_IMG_9499_500_501Natural-49_images.tiles/%s/l1/%v/l1_%s_%v_%h.jpg" />
  	</level>
  	<mobile>
    	<cube url="panos/beta_7_jag__nat-IMG_9355_6_7Natural_IMG_9499_500_501Natural-49_images.tiles/mobile_%s.jpg" />
  	</mobile>
	</image>
	<!-- place your scene hotspots here -->
	<hotspot name="spot1" style="skin_hotspotstyle" ath="-33.139"
	atv="-6.809"
	linkedscene="scene__2_balcony_2__nat_import-img_8625_6_7natural_img_8718_19_20natural-32_images" />
  </scene>
  <scene name="scene_beta_8_penelope__nat-IMG_9502_3_4Natural_IMG_9667_8_9Natural-54_images"
  title="beta 8 penelope, nat-IMG_9502_3_4Natural_IMG_9667_8_9Natural-54 images"
  onstart=""
  thumburl="panos/beta_8_penelope__nat-IMG_9502_3_4Natural_IMG_9667_8_9Natural-54_images.tiles/thumb.jpg"
  lat="" lng="" heading="">
	<view hlookat="0" vlookat="0" fovtype="MFOV" fov="120"
	maxpixelzoom="1.0" fovmin="70" fovmax="140" limitview="range"
	vlookatmin="-83.785" vlookatmax="83.785" />
	<preview url="panos/beta_8_penelope__nat-IMG_9502_3_4Natural_IMG_9667_8_9Natural-54_images.tiles/preview.jpg" />
	<image type="CUBE" multires="true" tilesize="512">
  	<level tiledimagewidth="8500" tiledimageheight="8500">
    	<cube url="panos/beta_8_penelope__nat-IMG_9502_3_4Natural_IMG_9667_8_9Natural-54_images.tiles/%s/l5/%v/l5_%s_%v_%h.jpg" />
  	</level>
  	<level tiledimagewidth="4250" tiledimageheight="4250">
    	<cube url="panos/beta_8_penelope__nat-IMG_9502_3_4Natural_IMG_9667_8_9Natural-54_images.tiles/%s/l4/%v/l4_%s_%v_%h.jpg" />
  	</level>
  	<level tiledimagewidth="2126" tiledimageheight="2126">
    	<cube url="panos/beta_8_penelope__nat-IMG_9502_3_4Natural_IMG_9667_8_9Natural-54_images.tiles/%s/l3/%v/l3_%s_%v_%h.jpg" />
  	</level>
  	<level tiledimagewidth="1024" tiledimageheight="1024">
    	<cube url="panos/beta_8_penelope__nat-IMG_9502_3_4Natural_IMG_9667_8_9Natural-54_images.tiles/%s/l2/%v/l2_%s_%v_%h.jpg" />
  	</level>
  	<level tiledimagewidth="512" tiledimageheight="512">
    	<cube url="panos/beta_8_penelope__nat-IMG_9502_3_4Natural_IMG_9667_8_9Natural-54_images.tiles/%s/l1/%v/l1_%s_%v_%h.jpg" />
  	</level>
  	<mobile>
    	<cube url="panos/beta_8_penelope__nat-IMG_9502_3_4Natural_IMG_9667_8_9Natural-54_images.tiles/mobile_%s.jpg" />
  	</mobile>
	</image>
	<!-- place your scene hotspots here -->
	<hotspot name="spot1" style="skin_hotspotstyle" ath="-22.537"
	atv="-10.387"
	linkedscene="scene__2_balcony_2__nat_import-img_8625_6_7natural_img_8718_19_20natural-32_images" />
	<hotspot name="spot2" style="skin_hotspotstyle" ath="-74.455"
	atv="2.643"
	linkedscene="scene_beta_6_entrance-img_9256_a_bnatural_img_9303_a_bnatural-48_images" />
  </scene>
	<events name="panoevents"
	    	onloadcomplete="delayedcall(introimage, 4.0, if(layer[introimage], hideintroimage() ); ); set(events[panoevents].onloadcomplete,null);"
	    	onremovepano="stopdelayedcall(introimage);"
	    	/>
	
	
	<layer name="introimage"
	   	url="introimage.png"
	   	align="center"
	   	onloaded="set(alpha,0); tween(alpha,1.0);"
	   	onclick="hideintroimage();"
	   	/>
	
	<action name="hideintroimage">
		if(layer[introimage].enabled,
			set(layer[introimage].enabled,false);
			tween(layer[introimage].alpha, 0.0, 0.5, default, removelayer(introimage));
		  );
	</action>
</krpano>

2

Donnerstag, 25. Dezember 2014, 20:04

Here you go ho ho ho:
http://www.kilgore.org.uk/hmc/tests/vtou…ents].keep=true

Quellcode

1
2
<layer name="introimage" keep="true" .... />
<events name="panoevents" keep="true" ... />

3

Dienstag, 30. Dezember 2014, 22:23

Thanks! Easy when you know how :-) But here's a follow-up question: how could I have found that out for myself? Or put another way: the documentation for how to use KRPano seems non-existent. Am I missing something?

4

Dienstag, 30. Dezember 2014, 23:48

Couldn't agree with you on that documentation is not existing:
- top of the screen link DOCUMENTATION
- http://krpano.com/docu/quickref/#top
- http://krpano.com/docu/actions/#top
- http://krpano.com/docu/quickref/#top,
.
.
Than you have huge collection of the code in examples folder from Krpano package

Than you have this forum full of nice people willing to help. Huge collection of experiences collected at one place with lot of other examples and virtual tours.
But most important you have to invest a lot of hours trying to do something on your own. When stucked come here and I am pretty sure someone will give you a hand.
regards
Umalo

5

Freitag, 2. Januar 2015, 17:25

Hi Umalo,

I disagree with your disagreement. I think KRPano is really good and I am a very happy user. I also agree with you about the support available on the fora. However, I feel my original point stands: there is no documentation about how to use KRPano. There are examples and examples can be informative but they don't provide any explanation unless they are documented. There are also pages of reference information but this again is not the same as explanation. It is also true that if someone has plenty of time and is already clever enough, perhaps an experienced computer programmer, then they can make at least a very good guess about how things work based on examples and reference information.

What I would like is (1) for there to be a proper explanation of KRPano that I can read and (2) directions for finding that information. This would be a more effecient use of my time than making guesses based on inadequate documentation and undocumented examples, having to think about how to describe my problems for a KRPano user, typing that up, posting it and waiting for an unspecified time in the hope of an intelligent answer (and remembering to keep checking to see if anyone has replied). I find this irritating and it potentially takes days for every problem I encounter.

I hope these comments are not interpreted as an unconstructive criticism - as I said, I like KRPano. But if anyone asked me "what's KRPano like" I'd have to say "Excellent and very good value for money if you have a degree in computer science and plenty of time to mess about".

A

Beiträge: 1 857

Beruf: Virtual Tours - Photography - Krpano developer

  • Nachricht senden

6

Samstag, 3. Januar 2015, 07:01

keep="true" is probably the biggest, most common, and first learning curve for the krpano coder.

The documentation should say that elements OUTSIDE of scenes need keep=true to be visible but it's only partly true. If you use scenes, you need that to "KEEP" your elements in play.
Why do you need that at all? Because each scene is it's own complete universe so otherwise, you'd need to put everything inside the scenes duplicated. Or you can put it ONCE with keep=true.
Some people don't use scenes. And then you don't have that issue.


You're probably right. There could be a good tutorial on krpano basics and how to get started. most of us just stared at the examples folder until things started to make sense and then asked questions when we got stuck.
Good luck with krpano and keep at it. It's so far ahead of many other virtual tour/ panoramic viewers out there, that almost all of them are not even used anymore.
KRPano Developer: Portfolio ::Gigapixel Tagging Solutions - Porfolio 2 :: Facebook :: Twitter :: reddit.com/r/VirtualTour