You are not logged in.

Dear visitor, welcome to krpano.com Forum. If this is your first visit here, please read the Help. It explains in detail how this page works. To use all features of this page, you should consider registering. Please use the registration form, to register here or read more information about the registration process. If you are already registered, please login here.

scpanorama

Beginner

  • "scpanorama" started this thread

Posts: 12

Location: England

  • Send private message

1

Friday, October 30th 2009, 1:57pm

Multiple floorplans/maps - help needed

Hello everyone,
I'd like to ask some help from you.
I need to create a tour of a 6 floor building. The idea is to have 6 buttons to call the different floorplans with the hotspots and radar. Is this possible?
Any ideas or working examples would really help!
Thanks,
Sid

scpanorama

Beginner

  • "scpanorama" started this thread

Posts: 12

Location: England

  • Send private message

2

Thursday, November 5th 2009, 11:17am

Hello again,
just to keep this thread alive as I still haven't found a solution yet and I've seen other threads with the same topic with no replies either...
So, dear krpano gurus if you have any idea how to solve the multiple floorplans in the same pano with working radar plugin problem, please share with us!
Thanks,
Sid

Tuur

Sage

Posts: 3,225

Location: Netherlands

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

  • Send private message

3

Thursday, November 5th 2009, 2:35pm

Yeah it's possible...

just try it.. do u have an example code?

give every plan his own name and also all the spots and variables..


Source code

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
<plugin name="mapslogo3"
 
			url="../buttons/mapbutton.png"
	        keep="true"
 	        visible="false" enabled="true" handcursor="true" capture="true" children="true"
 	        zorder="100"
 	        alpha="0.6" blendmode="normal"
 	        smoothing="true"
 	        origin="leftbottom" edge=""
 	        x="250" y="4"
 	        width="" height=""
	        scale="1"
	        onloaded=""
	        onover=""
	        onhover="showtext(Plattegrond)"
	        onout=""
	        ondown=""
	        onup=""
	        onclick="action(openmap)"
	        />
			
<plugin name="mapcloselogo3" 
			url="../buttons/mapbuttonclose.png" 
			alpha="0.6" 
			autopos="leftbottom,250,50" 
			visible="false" 
			keep="true" 
			scale="1" 
			zorder="100" 
			onhover="showtext(Plattegrond sluiten)" 
			onclick="action(closemap);" 
			onover=""    
			 
			/>			
			
			
			
<plugin name="map3"
 
 			url="../buttons/biermap.png"
	        keep="true"
 	        visible="false" enabled="true" handcursor="true" capture="true" children="true"
 	        zorder="100"
		
 	        alpha="1" blendmode="normal"
 	        smoothing="true"
 	        origin="righttop" edge=""
 	        x="" y=""
 	        width="" height=""
	        scale="1"
	        onloaded=""
	        onover=""
	        onhover=""
	        onout=""
	        ondown=""
	        onup=""
	        onclick="action(closemap)"
	        />
			
			
			
			
<action name="closemap">


 			
	        
			action(hidespots);
			
       		set(plugin[map3].visible,false);
	   
	  	  	set(plugin[mapcloselogo3].enable,false);
    		tween(plugin[mapcloselogo3].alpha,0,distance(1,0.8),,set(plugin[mapcloselogo3].visible,false));

    		set(plugin[mapslogo3].enable,true);
    		set(plugin[mapslogo3].visible,true);
    		tween(plugin[mapslogo3].alpha,0.6,distance(1,0.15));
	
	 		set(plugin[mapcloselogo3].visible,false);
	  		set(plugin[map3].visible,true);
    		tween(plugin[map3].alpha,1,distance(1,0.8));
	 		set(plugin[map3].onhover,showtext( ,smalltext););
        	set(plugin[map3].onclick,action(openmap););
        	tween(plugin[map3].width,1,distance(600,1),easeoutquad);
        	tween(plugin[map3].height,1,distance(600,1),easeoutquad);
		
	
		
    </action>
			
			
			 <action name="openmap">
	 
    	
		 set(plugin[mapslogo3].enable,false);
    tween(plugin[mapslogo3].alpha,0,distance(1,0.8),,set(plugin[mapslogo].visible,false));

    set(plugin[mapcloselogo3].enable,true);
    set(plugin[mapcloselogo3].visible,true);
    tween(plugin[mapcloselogo3].alpha,0.6,distance(1,0.15));

set(plugin[mapslogo3].visible,false);

tween(plugin[map3].alpha,1,distance(1,0.15));
    set(plugin[map3].visible,true);
    
	set(plugin[map3].onhover,showtext(Kaart sluiten,smalltext););
        set(plugin[map3].onclick,action(closemap););
        tween(plugin[map3].width,400,distance(400,0.8),easeoutquad);
        tween(plugin[map3].height,400,distance(400,0.8),easeoutquad,action(showspots););
		
		
	
</action>

			
			
			
			
<plugin name="radar" url="../plugins/radar.swf" origin="righttop" edge="center" keep="true" zorder="100"  x="150" y="305" width="110" height="110" 

	
			 alpha="1"
		       behindspots="true"
		       dragable="true"
		       fillalpha="0.9"
		       fillcolor="0xFFFFFF"
		       glow="true"
		       glowcolor="0xFFFFFF"
		       glowstrength="3"
		       glowwidth="4"
		       linealpha="1.0"
		       linecolor="0xFF0000"
		       linewidth="0.2"
		       size="100"
		       visible="true"
		       />
			   
			
			

<plugin name="spot1" url="../buttons/verb_mpspt.png" active="true" zorder="100" origin="righttop" edge="center" keep="true"  x="150" y="305" onhover="" onclick="action(moveto1);" />

<plugin name="spot2" url="../buttons/verb_mpspt.png" zorder="100" origin="righttop" edge="center" keep="true"  x="190" y="175" onhover="" onclick="action(moveto2);" />

<plugin name="spot3" url="../buttons/verb_mpspt.png" zorder="100" origin="righttop" edge="center" keep="true"  x="170" y="285" onhover="" onclick="action(moveto3);" />

	
	

	
	

			
<plugin name="spotx2" url="../buttons/mappointactive.png"   keep="true"   zorder="100" origin="righttop" edge="center" x="150" y="305" />	
			
			
<action name="showspots">
		set(plugin[spot1].visible,true);
		set(plugin[spot2].visible,true);
		set(plugin[spot3].visible,true);
		
		set(plugin[spotx2].visible,true);
		set(plugin[radar].visible,true);
	
	
	
		tween(plugin[spot1].alpha,1);
		tween(plugin[spot2].alpha,1);
		tween(plugin[spot3].alpha,1);
		
	
    	tween(plugin[spotx2].alpha,1);
    	tween(plugin[radar].alpha,1);
    </action>
    
<action name="hidespots">
    	set(plugin[spot1].visible,false);
		set(plugin[spot2].visible,false);
		set(plugin[spot3].visible,false);
		
	
    	
    	set(plugin[spotx2].visible,false);
    	set(plugin[radar].visible,false);
    </action>
 
			
			
			
			
			
			
<action name="s1">
	 	plugin[maps].activatespot(s1);
        plugin[maps].pantospot(s1);
        loadpano(1.xml,null,MERGE,BLEND(1));
    </action> 
	
	
<action name="s2">
	 	plugin[maps].activatespot(s2);
        plugin[maps].pantospot(s2);
        loadpano(2.xml,null,MERGE,BLEND(1));
    </action>
			
			
<action name="s3">
        plugin[maps].activatespot(s3);
        plugin[maps].pantospot(s3);
        loadpano(3.xml,null,MERGE,BLEND(1));
    </action>


This was an 3th map in a tour

Cheers

Tuur
*thumbsup*
http://www.virtualtuur.com
Skype:studiotuur

scpanorama

Beginner

  • "scpanorama" started this thread

Posts: 12

Location: England

  • Send private message

4

Thursday, November 5th 2009, 6:30pm

Hi Tuur, thanks for the reply!

I'll give your code a try later today. However my main problem is with the radar plugin's usage I think.
Here's a rough idea about what I would like to do: http://scpanorama.com/--TEMP--/PA/PA.html
I deleted the radar plugin from this as it caused some funny things to happen. (eg.: not disappearing from map01 when you change to map02/03/04... even when setting it as a child of map01 etc.)

I would like to make the radar plugin somehow "dynamic".

Let me explain:

1.Start the tour with a room on the 1. floor. The radar (and spotx) is there on the map, everything's ok.
2.Let's say we change the map to the 3. floor. Map 01 and the spots on it should animate out. Map 03 should animate in with it's spots. Right.
3.But we're still in a room on the 1. floor, so on Map 03 there should be no radar.
4.Click on a spot on Map 03 and the new pano from a room on the 3. floor should load in and the radar should "jump" on the actual spot on Map 03 from Map 01.
...


I hope it's clear.

So far I could not make this working 100% so any ideas are still welcome!

Thanks again,
Sid

5

Saturday, November 7th 2009, 1:11pm

I deleted the radar plugin from this as it caused some funny things to happen. (eg.: not disappearing from map01 when you change to map02/03/04... even when setting it as a child of map01 etc.)
Hi,

it could be better to use serval radar plugins, one for every map,
just a different "name" for each,

int your example the other maps seems to not to be "closed" at the beginning,
that means the positions (x/y) are not the "closed" ones...

best regards,
Klaus

scpanorama

Beginner

  • "scpanorama" started this thread

Posts: 12

Location: England

  • Send private message

6

Monday, November 9th 2009, 7:04pm

Hi Klaus,
Thanks for the info above!
I'm still trying to perfect this project, the current state is this: http://scpanorama.com/--TEMP--/PA02/PA.html
This was done using only 1 spotx & radar plugin and simply animating them out of the stage when changing maps or closing the whole map interface.
So far so good but the problem is this: I'd like the active mappoint and radar to return to the actual last position on map01 when the user switches to map02 but does not click any spots and returns to map01 or when closing and re-opening the whole interface.
I hope it's clear...
Is this possible?
Thanks,
Sid

Similar threads