Sie sind nicht angemeldet.

1

Dienstag, 29. November 2011, 15:08

per URL auf Szenen zugreifen

Hallo,

habe eine Panoramatour mit dem Droplet (MAKE VTOUR MULTIRES) erstellt.
Ist es möglich per url eine bestimmte Szene aufzurufen? http://www.webseite.de/vtour/index.html?id=12345

Gibt es da Beispiel?

html Datei:

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
<!DOCTYPE html>
<html>
<head>
	<title>krpano.com - 8994</title>
	<meta name="viewport" content="target-densitydpi=device-dpi, width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0" />
	<meta name="apple-mobile-web-app-capable" content="yes" />
	<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
	<style>
		@media only screen and (min-device-width: 800px) { html { overflow:hidden; } }
		html { height:100%; }
		body { height:100%; overflow: hidden; margin:0; padding:0; font-family:Arial, Helvetica, sans-serif; font-size:16px; color:#FFFFFF; background-color:#000000; }
		a{ color:#AAAAAA; text-decoration:underline; }
		a:hover{ color:#FFFFFF; text-decoration:underline; }
	</style>
</head>
<body>
<script src="tour.js"></script>
<div id="pano" style="width:100%; height:100%;">
	<noscript><table style="width:100%;height:100%;"><tr style="valign:middle;"><td><div style="text-align:center;">ERROR:<br/><br/>Javascript not activated<br/><br/></div></td></tr></table></noscript>
	<script>
		embedpano({swf:"tour.swf", xml:"tour.xml", target:"pano"});
	</script>
</div>
</body>
</html>


xml Datei:

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
<krpano version="1.0.8.14" onstart="startup();">
	<include url="skin/androidskin.xml" devices="android+flash" />
	<action name="startup">
		<!-- load the first scene -->
		loadscene(get(scene[0].name), null, MERGE);
		<!-- build thumbnails when there is more than one scene (remove the line below to remove the thumbnails) -->
		if(scene.count GT 1, buildthumbs(); );
	</action>

	<progress showload="none" showwait="none" />
	
	<scene name="scene_8803" title="8803" onstart="" thumburl="panos/8803.tiles/thumb.jpg">
		<view hlookat="0" vlookat="0" fovtype="MFOV" fov="90" maxpixelzoom="2.0" fovmin="60" fovmax="120" limitview="auto" />
		<preview url="panos/8803.tiles/preview.jpg" />
		<image type="CUBE" multires="true" tilesize="728" progressive="false">
			<level tiledimagewidth="2546" tiledimageheight="2546">
				<cube url="panos/8803.tiles/l2_%s_%0v%0h.jpg" />
			</level>
			<level tiledimagewidth="1273" tiledimageheight="1273">
				<cube url="panos/8803.tiles/l1_%s_%0v%0h.jpg" />
			</level>
			<mobile>
				<cube url="panos/8803.tiles/mobile_%s.jpg" />
			</mobile>
			<tablet>
				<cube url="panos/8803.tiles/tablet_%s.jpg" />
			</tablet>
		</image>
	</scene>

	<scene name="scene_8994" title="8994" onstart="" thumburl="panos/8994.tiles/thumb.jpg">
		<view hlookat="0" vlookat="0" fovtype="MFOV" fov="90" maxpixelzoom="2.0" fovmin="60" fovmax="120" limitview="auto" />
		<preview url="panos/8994.tiles/preview.jpg" />
		<image type="CUBE" multires="true" tilesize="728" progressive="false">
			<level tiledimagewidth="2546" tiledimageheight="2546">
				<cube url="panos/8994.tiles/l2_%s_%0v%0h.jpg" />
			</level>
			<level tiledimagewidth="1273" tiledimageheight="1273">
				<cube url="panos/8994.tiles/l1_%s_%0v%0h.jpg" />
			</level>
			<mobile>
				<cube url="panos/8994.tiles/mobile_%s.jpg" />
			</mobile>
			<tablet>
				<cube url="panos/8994.tiles/tablet_%s.jpg" />
			</tablet>
		</image>
	</scene>

...


</krpano>

2

Donnerstag, 1. Dezember 2011, 15:11