Sie sind nicht angemeldet.

designsubway

Anfänger

  • »designsubway« ist der Autor dieses Themas

Beiträge: 40

Wohnort: York, UK

Beruf: Graphic Designer

  • Nachricht senden

1

Dienstag, 6. Oktober 2009, 13:16

Image hotspots not showing

Hi all
I am trying to create a virtual tour but I am a bit of a newbie.
I am doing ok but when I use image hotspots the don't show in my pano.
Polygonal hotspots work fine, it is just image hotspots I am having trouble with.
Here is the code;

Quellcode

1
2
3
4
5
6
7
8
9
	<hotspot name="hotspot1"
			url="hotspots/hotspot1.png"
			ath="0"
			atv="0"
			scale="1"
			zoom="true"
			onhover="showtext(load next pano);"
			onclick="loadpano(pano2.xml);"
			/>

Thank you, David.

2

Dienstag, 6. Oktober 2009, 14:37

Hi,

Seems to be a Path problem... *sad*

Look at this post from KLAUS about paths inside the xml file: Problem on changing URL of a plugin

Try to use %SWFPATH% "placeholder" in your url: url="%SWFPATH%/PathToYourHotspot/hotspot1.png"

Quellcode

1
2
3
4
5
6
7
8
9
<hotspot name="hotspot1"
url="%SWFPATH%/hotspots/hotspot1.png"
ath="0"
atv="0"
scale="1"
zoom="true"
onhover="showtext(load next pano);"
onclick="loadpano(pano2.xml);"
/>


Salut.

designsubway

Anfänger

  • »designsubway« ist der Autor dieses Themas

Beiträge: 40

Wohnort: York, UK

Beruf: Graphic Designer

  • Nachricht senden

3

Dienstag, 6. Oktober 2009, 15:34

Thank you for your reply but unfortunatly that does not solve the problem.
Here is the full code;

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
<krpano version="1.0.6" onstart="" basedir="%FIRSTXML%" logkey="true" onstart="lookat(0,0,0,smooth);lookto(0,0,90,smooth);">

	<memory maxmem="350" />
	<network downloadqueues="" decodequeues="" />


	<progress showload="bar()"
	      	showwait="loopings()"
	      	/>

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

	<preview type="CUBESTRIP" url="boutinot.tiles/preview.jpg" />
	
	<image type="SPHERE" multires="true" tilesize="512" baseindex="1">
		<level tiledimagewidth="5636" tiledimageheight="2818" details="24">
			<sphere url="boutinot.tiles/l3_%0v_%0h.jpg" />
		</level>
		<level tiledimagewidth="2818" tiledimageheight="1409" details="20">
			<sphere url="boutinot.tiles/l2_%0v_%0h.jpg" />
		</level>
		<level tiledimagewidth="1409" tiledimageheight="705" details="16">
			<sphere url="boutinot.tiles/l1_%0v_%0h.jpg" />
		</level>
	</image>

	<view
	  	camroll   	="1"
	  	fov       	="90"
	  	fovmin    	="20"
	  	fovmax    	="150"
	  	limitfov  	="true"
	  	fisheye   	="0.30"
	  	fisheyefovlink="0.50"
	  	architectural ="0.0"
	  	architecturalonlymiddle="false"
	  	limitview 	="range"
	  	hlookatmin	="0.000000"
	  	hlookatmax	="360.000000"
	  	vlookatmin	="-60.000000"
	  	vlookatmax	="60.000000"
	  	/>

	<control usercontrol	="all"
	     	mousetype  	="moveto"
	     	movetocursor   ="arrow"
	     	cursorsize 	="13.3"
	     	mouseaccelerate="1.00"
	     	mousespeed 	="10.00"
	     	mousefriction  ="0.80"
	     	headswing  	="1.00"
	     	keybaccelerate ="0.12"
	     	keybspeed  	="2.96"
	     	keybfriction   ="0.90"
	     	keybinvert 	="none"
	     	mousefovchange ="1.00"
	     	keybfovchange  ="0.75"
	     	fovspeed   	="3.00"
	     	fovfriction	="0.90"
	     	keycodesleft   ="37"
	     	keycodesright  ="39"
	     	keycodesup 	="38"
	     	keycodesdown   ="40"
	     	keycodesin 	="107"
	     	keycodesout	="109"
	     	/>

	<contextmenu fullscreen="true">
	</contextmenu>

	<autorotate enabled ="true"
	        	waittime="0.5"
	        	accel   ="1.0"
	        	speed   ="10.0"
	        	horizon ="0"
	        	tofov   ="off"
	        	/>
				
<textstyle name="NEWSTYLE"
       	font="Helvetica" fontsize="15"
       	border="false" background="false"
       	textcolor="0xFFFFFF"
       	effect="glow(0x000000,0.7,4,2);
               	dropshadow(2,45,0x000000,3,1);"
       	/>


	<!-- plugins -->

	<plugin name="zoombuttons" url="%SWFPATH%/plugins/zoombuttons.swf"
			alpha="0.2"
			onover="tween(alpha,0.6);"
			onout="tween(alpha,0.2);" />
	
	<plugin name="fullscreen"
			url="%SWFPATH%/plugins/fullscreen.png"
			keep="true"
			autopos="righttop,10,10" 
			scale="0.5"
			alpha="0.2"
			onover="tween(alpha,0.6);"
			onout="tween(alpha,0.2);"
			onhover="showtext(Fullscreen, NEWSTYLE);"
			onclick="switch(fullscreen);"/>
			
<events onenterfullscreen="action(enterfullscreen);" onexitfullscreen="action(exitfullscreen);"/>

<action name="enterfullscreen">

		tween(plugin[cameracontrols].scale,1.0);
		tween(plugin[fsbutton].rotate,180);
		tween(plugin[fsbutton].scale,1.0);
	
</action>

<action name="exitfullscreen">

		tween(plugin[cameracontrols].scale,0.5);
		tween(plugin[fsbutton].rotate,0);
		tween(plugin[fsbutton].scale,0.5);
	
</action>


	
	<plugin name="logo" 
    		url="%SWFPATH%/plugins/logo.png"
			autopos="rightbottom,10,10" 
    		onhover="showtext(Cick to go to the website, NEWSTYLE);" 
    		onclick="openurl(http://google.co.uk,_blank);"
			alpha="0.2"
			onover="tween(alpha,1);"
			onout="tween(alpha,0.2);"

    		/>
			
	<!-- hotspots -->

	<hotspot name="hotspot1"
			url="%SWFPATH%/plugins/hotspot1.png"
			ath="90"
			atv="0"
			scale="1"
			zoom="true"
			onhover="showtext(load next pano);"
			onclick="loadpano(pano2.xml);"
			/>


</krpano>

Sorry to be a pain. Thank you for your help.

4

Dienstag, 6. Oktober 2009, 16:01

Hi designsubway,

Your code seems to be OK... I have tried it and, for me, it works...
What krpano version are you using? try using the last one http://krpano.com/download/beta/

Salut.

Tuur

Erleuchteter

Beiträge: 3 839

Wohnort: Netherlands

Beruf: Krpano custom coding / Virtual Tours / Photography / Musician / Recording engineer

  • Nachricht senden

6

Mittwoch, 7. Oktober 2009, 15:03

Hi,

the code is absolutely okay

are you maybe using a krpano.swf from version 1.0.6? (press the 'O' key in the viewer to see the version)
e.g. it is still included in the 1.0.6.1 tools download package!

the <hotspot> functionality was introduced in version 1.0.7,

best regards,
Klaus