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.

1

Thursday, April 7th 2011, 9:29am

two synchronized views

Hello everyone, I'm new with Krpan.
I have two views of the same place, one how it is today and the other one how was, let me know if you can synchronize the two views so that switching between them see the same point.

Tanks

2

Monday, April 11th 2011, 9:39am

no one knows how it works?

3

Monday, April 11th 2011, 1:00pm

Are you Looking for something like keepview?

http://krpano.com/docu/actions/#loadpano

4

Monday, April 11th 2011, 2:48pm

Yes, I would like to dynamically switch the settings of the current view to the other one.
How can I do it?

5

Monday, April 11th 2011, 3:42pm

How do you want it to switch? Click on a hotspot? Auto rotate and automatically switch to the other panorama?

I assume you are wanting to do something like what is talked about here.

Best way to "layer" 2 panos (day/night)?

and perhaps here?

My last tour in a "Péniche" --> Feed back needed ;-)

6

Monday, April 11th 2011, 4:48pm

I would like to use the Thumbnails

7

Monday, April 11th 2011, 8:33pm

I used the "Make vtour (normal)" tool for this example.

Look for this in the code

loadscene(get(linkedscene),null,MERGE,BLEND(1));

replace the MERGE
With
KEEPVIEW

or

KEEPALL

depending on your needs.

That should do it, hopefully anyway.

8

Wednesday, April 13th 2011, 11:47am

If I try in Safari work very well, but if try in simulator don't work...

This is my xml...

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
<krpano version="1.0.8" onstart="startup();">
	<action name="startup">
		<!-- load the first scene -->
		loadscene(get(scene[0].name), null, MERGE); 
		buildthumbs(); 
	</action>
	
	<progress showload="none" showwait="none" />
	
	<scene name="scene_pano1" title="pano1" onstart="" thumburl="pano2.tiles/thumb.jpg">

		<view hlookat="-130" vlookat="-30" fovtype="MFOV" fov="110" fovmin="40" fovmax="130" />

		<preview url="pano1.tiles/preview.jpg" />
		
		<image>
			<left  url="pano2.tiles/mobile_l.jpg" />
			<front url="pano2.tiles/mobile_f.jpg" />
			<right url="pano2.tiles/mobile_r.jpg" />
			<back  url="pano2.tiles/mobile_b.jpg" />
			<up	url="pano2.tiles/mobile_u.jpg" />
			<down  url="pano2.tiles/mobile_d.jpg" />
			<mobile>
				<left  url="pano2.tiles/mobile_l.jpg" />
				<front url="pano2.tiles/mobile_f.jpg" />
				<right url="pano2.tiles/mobile_r.jpg" />
				<back  url="pano2.tiles/mobile_b.jpg" />
				<up	url="pano2.tiles/mobile_u.jpg" />
				<down  url="pano2.tiles/mobile_d.jpg" />
			</mobile>
			<tablet>
				<left  url="pano2.tiles/mobile_l.jpg" />
				<front url="pano2.tiles/mobile_f.jpg" />
				<right url="pano2.tiles/mobile_r.jpg" />
				<back  url="pano2.tiles/mobile_b.jpg" />
				<up	url="pano2.tiles/mobile_u.jpg" />
				<down  url="pano2.tiles/mobile_d.jpg" />
			</tablet>
		</image>

		<hotspot name="spot1" style="hotspot_ani_black" 
		     	ath="-145"
		     	atv="-42"
		     	zoom="false"
		     	onclick="looktohotspot(get(name)); loadscene('scene_pano2',null,MERGE,BLEND(1));"
		     	/>
		-->

	</scene>

	<scene name="scene_pano2" title="pano2" onstart="" thumburl="pano1.tiles/thumb.jpg">

		<view hlookat="+0" vlookat="+20" fovtype="MFOV" fov="110" fovmin="40" fovmax="130" />

		<image>
			<left  url="pano1.tiles/mobile_l.jpg" />
			<front url="pano1.tiles/mobile_f.jpg" />
			<right url="pano1.tiles/mobile_r.jpg" />
			<back  url="pano1.tiles/mobile_b.jpg" />
			<up	url="pano1.tiles/mobile_u.jpg" />
			<down  url="pano1.tiles/mobile_d.jpg" />
			<mobile>
				<left  url="pano1.tiles/mobile_l.jpg" />
				<front url="pano1.tiles/mobile_f.jpg" />
				<right url="pano1.tiles/mobile_r.jpg" />
				<back  url="pano1.tiles/mobile_b.jpg" />
				<up	url="pano1.tiles/mobile_u.jpg" />
				<down  url="pano1.tiles/mobile_d.jpg" />
			</mobile>
			<tablet>
				<left  url="pano1.tiles/mobile_l.jpg" />
				<front url="pano1.tiles/mobile_f.jpg" />
				<right url="pano1.tiles/mobile_r.jpg" />
				<back  url="pano1.tiles/mobile_b.jpg" />
				<up	url="pano1.tiles/mobile_u.jpg" />
				<down  url="pano1.tiles/mobile_d.jpg" />
			</tablet>
		</image>
		
		<hotspot name="spot1" style="hotspot_ani_black" 
		     	ath="+40"
		     	atv="+33"
		     	zoom="false"
		     	onclick="looktohotspot(get(name)); loadscene('scene_pano1',null,MERGE,BLEND(1));"
		     	/>
		-->

	</scene>

	<action name="buildthumbs">
		if(%1 != NEXT, set(i,0));
		if(i LT scene.count,
			copy(thumb, scene[get(i)].thumburl);
			txtadd(thumbname,'thumb_',get(i));
			addplugin(get(thumbname));
			set(plugin[get(thumbname)].url, get(thumb));
			set(plugin[get(thumbname)].keep, true);
			set(plugin[get(thumbname)].align, leftbottom);
			set(plugin[get(thumbname)].width,  40);
			set(plugin[get(thumbname)].height, 40);
			set(plugin[get(thumbname)].x, 10);
			set(plugin[get(thumbname)].y, 10);
			mul(plugin[get(thumbname)].x, i,3);
			mul(plugin[get(thumbname)].y, i,3);
			add(plugin[get(thumbname)].x, 5);
			add(plugin[get(thumbname)].y, 5);
			copy(plugin[get(thumbname)].xsmall, plugin[get(thumbname)].x);
			copy(plugin[get(thumbname)].ysmall, plugin[get(thumbname)].y);
			add(plugin[get(thumbname)].zorder, 100, i);
			set(plugin[get(thumbname)].effect,glow(0xFFFFFF,1.0,2,10000));
			set(plugin[get(thumbname)].jsborder,'1px solid #FFFFFF');
			copy(plugin[get(thumbname)].thumbpos, i);
			set(plugin[get(thumbname)].linkedscene, get(scene[get(i)].name) );
			set(plugin[get(thumbname)].onclick, openthumbs() );
			inc(i);
			buildthumbs(NEXT);
		  );
	</action>

	<action name="openthumb">
		if(%2 != NEXT,
			set(pos,0);
			copy(curpos, plugin[%1].thumbpos);
			set(xdst, 0);
			set(ydst, 0);
		  );

		if(pos LT curpos,
			inc(pos);
			inc(ydst,90);
			sub(ymax, stageheight, 100);
			if(ydst GT ymax, inc(xdst,90);set(ydst,0); );
			openthumb(%1,NEXT);
		  ,
			add(xdst,10);
			add(ydst,10);
			tween(plugin[%1].x, get(xdst) );
			tween(plugin[%1].y, get(ydst) );
			tween(plugin[%1].width, 80);
			tween(plugin[%1].height, 80);
		  );
	</action>

	<action name="closethumb">
		tween(plugin[%1].x, get(plugin[%1].xsmall));
		tween(plugin[%1].y, get(plugin[%1].ysmall));
		tween(plugin[%1].width, 40);
		tween(plugin[%1].height, 40);
	</action>

	<action name="openthumbs">
		if(%1 != NEXT,
			set(i,0);
			set(events.onclick, set(events.onclick,null); delayedcall(0.1, closethumbs() ); );
		  );

		if(i LT scene.count,
			txtadd(thumbname,'thumb_',get(i));
			openthumb(get(thumbname));
			set(plugin[get(thumbname)].onclick, set(events.onclick,null); closethumbs(); loadscene(get(linkedscene),null,MERGE|KEEPVIEW,BLEND(1)); );
			inc(i);
			openthumbs(NEXT);
		  );
	</action>

	<action name="closethumbs">
		if(%1 != NEXT, set(i,0));
		if(i LT scene.count,
			txtadd(thumbname,'thumb_',get(i));
			closethumb(get(thumbname));
			set(plugin[get(thumbname)].onclick, openthumbs() );
			inc(i);
			closethumbs(NEXT);
		  );
	</action>
</krpano>

9

Wednesday, April 13th 2011, 2:58pm

I forgot ... I'm doing native app

10

Wednesday, April 13th 2011, 11:15pm

Hi,

which krpano version do you use?
for KEEPVIEW in krpanoJS you would need the 1.0.8.14:
http://krpano.com/download/beta/#2011-02-01

best regards,
Klaus

11

Thursday, April 14th 2011, 9:36am

*pinch*
I try with the 1.0.8.12...I just upgrade the version and now work!! Thank you *thumbsup*