You are not logged in.

Fernando

Intermediate

  • "Fernando" started this thread

Posts: 324

Location: Habana, Cuba

Occupation: Architect, Photographer.

  • Send private message

1

Tuesday, February 14th 2023, 5:18am

[SOLVED] Image prealign and new transition issue

Hi Klaus, the use of <image prealign=...> seems to affect the normal behavior of the new transition. It is noticeable as a small twist. Any suggestions?
Best regards,
Fdo

This post has been edited 1 times, last edit by "Fernando" (Mar 26th 2023, 1:44am)


San7

Professional

Posts: 611

Occupation: coding in krpano

  • Send private message

2

Tuesday, February 14th 2023, 9:29am

It is advisable to first align the panoramas and then set the arrows.
Try to put prealign= true in hotspot style set arrows
bhttps://krpano.com/docu/xml/#hotspot.prealign

3

Tuesday, February 14th 2023, 11:32am

Hi, so far I don't understand what you mean... do you have an example or more detailed explanation?

Fernando

Intermediate

  • "Fernando" started this thread

Posts: 324

Location: Habana, Cuba

Occupation: Architect, Photographer.

  • Send private message

4

Tuesday, February 14th 2023, 2:05pm

Link

www.mirapanoramas.nat.cu/transition

See the transition from 6 to 9 scene.

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
<scene name="scene_06" title="06" onstart="" thumburl="panos/06.tiles/thumb.jpg" lat="" lng="" alt="" heading="">
		
		<control bouncinglimits="calc:image.cube ? true : false" />

		<view hlookat="0.0" vlookat="0.0" fovtype="MFOV" fov="120" maxpixelzoom="2.0" fovmin="70" fovmax="140" limitview="auto" />

		<preview url="panos/06.tiles/preview.jpg" />

		<image prealign="2.421949|0.007348|1.259792">
			<cube url="panos/06.tiles/%s/l%l/%v/l%l_%s_%v_%h.jpg" multires="512,640" />
		</image>
		
		<hotspot name="spot3" style="skin_hotspotstyle" prealign="true" ath="19.698" atv="24.650" linkedscene="scene_09" linkedscene_hoffset="246.14" use3dtransition="true" />

	</scene>

	<scene name="scene_09" title="09" onstart="" thumburl="panos/09.tiles/thumb.jpg" lat="" lng="" alt="" heading="">
		
		<control bouncinglimits="calc:image.cube ? true : false" />

		<view hlookat="0.0" vlookat="0.0" fovtype="MFOV" fov="120" maxpixelzoom="2.0" fovmin="70" fovmax="140" limitview="auto" />

		<preview url="panos/09.tiles/preview.jpg" />

		<image>
			<cube url="panos/09.tiles/%s/l%l/%v/l%l_%s_%v_%h.jpg" multires="512,640" />
		</image>
		
		<hotspot name="spot4" style="skin_hotspotstyle" prealign="true" ath="85.835" atv="25.609" linkedscene="scene_06" linkedscene_lookat="-91.63,2.28,120.0" linkedscene_hoffset="113.86" use3dtransition="true" />

	</scene>

San7, I tried to put prealign="true" (see above code) and to align first the pano, but it doesn't work either. The error is a small turn of the panoramic image before starting the new transition. Sometimes you really don't notice much. But it affects the perfection of the new transition.

This post has been edited 2 times, last edit by "Fernando" (Feb 15th 2023, 12:58am)


Fernando

Intermediate

  • "Fernando" started this thread

Posts: 324

Location: Habana, Cuba

Occupation: Architect, Photographer.

  • Send private message

5

Wednesday, February 15th 2023, 2:35am

Other link for topic "Image prealign and new transition issue"

Please, see http://www.mirapanoramas.nat.cu/transition2/ with comments in arrows...

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
<krpano version="1.21" title="">

	<include url="skin/vtourskin.xml" />
	
	<!-- customize skin settings: maps, gyro, webvr, thumbnails, tooltips, layout, design, ... -->
	<skin_settings maps="false"
	           	maps_type="google"
	           	maps_bing_api_key=""
	           	maps_google_api_key=""
	           	maps_zoombuttons="false"
	           	maps_loadonfirstuse="true"
	           	gyro="true"
	           	gyro_keeplookingdirection="false"
	           	webvr="true"
	           	webvr_keeplookingdirection="true"
	           	webvr_prev_next_hotspots="true"
	           	autotour="false"
	           	littleplanetintro="false"
	           	followmousecontrol="false"
	           	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_buttons="true"
	           	tooltips_thumbs="true"
	           	tooltips_hotspots="true"
	           	tooltips_mapspots="false"
	           	deeplinking="false"
	           	loadscene_flags="MERGE"
	           	loadscene_blend="OPENBLEND(0.5, 0.0, 0.75, 0.05, linear)"
	           	loadscene_blend_prev="SLIDEBLEND(0.5, 180, 0.75, linear)"
	           	loadscene_blend_next="SLIDEBLEND(0.5,   0, 0.75, linear)"
	           	loadingtext=""
	           	layout_width="100%"
	           	layout_maxwidth="814"
	           	controlbar_width="-24"
	           	controlbar_height="40"
	           	controlbar_offset="20"
	           	controlbar_offset_closed="-40"
	           	controlbar_overlap.no-fractionalscaling="10"
	           	controlbar_overlap.fractionalscaling="0"
	           	design_skin_images="vtourskin.png"
	           	design_bgcolor="0x2D3E50"
	           	design_bgalpha="0.8"
	           	design_bgborder="0"
	           	design_bgroundedge="1"
	           	design_bgshadow="0 4 10 0x000000 0.3"
	           	design_thumbborder_bgborder="3 0xFFFFFF 1.0"
	           	design_thumbborder_padding="2"
	           	design_thumbborder_bgroundedge="0"
	           	design_text_css="color:#FFFFFF; font-family:Arial;"
	           	design_text_shadow="1"
	           	/>

	<!--
		For an alternative skin design either change the <skin_settings> values 
		from above or optionally include one of the predefined designs from below.
	-->
	<!-- <include url="skin/vtourskin_design_flat_light.xml"  /> -->
	<!-- <include url="skin/vtourskin_design_glass.xml"   	/> -->
	<!-- <include url="skin/vtourskin_design_ultra_light.xml" /> -->
	<!-- <include url="skin/vtourskin_design_117.xml"     	/> -->
	<!-- <include url="skin/vtourskin_design_117round.xml"	/> -->
	<!-- <include url="skin/vtourskin_design_black.xml"   	/> -->
	
<style name="text" distorted="true" type="text"/>

	
	<scene name="scene_01" title="01" onstart="" thumburl="panos/01.tiles/thumb.jpg" lat="" lng="" alt="" heading="">
		
		<control bouncinglimits="calc:image.cube ? true : false" />

		<view hlookat="91.499" vlookat="0.192" fovtype="MFOV" fov="120.000" maxpixelzoom="2.0" fovmin="70" fovmax="140" limitview="auto" />

		<preview url="panos/01.tiles/preview.jpg" />

		<image>
			<cube url="panos/01.tiles/%s/l%l/%v/l%l_%s_%v_%h.jpg" multires="512,640" />
		</image>

		<hotspot name="spot1" style="skin_hotspotstyle" ath="100.287" atv="17.101" linkedscene="scene_02" linkedscene_lookat="0.0,0.0,120.0" linkedscene_hoffset="-84.96" use3dtransition="true" />
		
		<hotspot name="txtspot1" style="text" html="The transition to 2 is OK" ath="99.94851" atv="25.950153"/>

	</scene>

	<scene name="scene_02" title="02" onstart="" thumburl="panos/02.tiles/thumb.jpg" lat="" lng="" alt="" heading="">
		
		<control bouncinglimits="true" />

		<view hlookat="0.0" vlookat="0.0" fovtype="MFOV" fov="120.0" maxpixelzoom="2.0" fovmin="112.336409" fovmax="140.0" limitview="auto" hlookatmin="-180.0" hlookatmax="180.0" vlookatmin="-90.0" vlookatmax="90.0"/>

		<preview url="panos/02.tiles/preview.jpg" />

		<image prealign="8.107027|0.018202|-1.523322">
			<cube url="panos/02.tiles/%s/l%l/%v/l%l_%s_%v_%h.jpg" multires="512,640" />
		</image>

		<hotspot name="spot2" style="skin_hotspotstyle" ath="-164.678" atv="19.670" linkedscene="scene_01" linkedscene_lookat="0.0,0.0,120.0" linkedscene_hoffset="444.96" use3dtransition="true" />
		
		<hotspot name="txtspot2" style="text" html="The transition to 1 makes an unwanted turn" ath="-164.810737" atv="28.607517"/>
		
		<hotspot name="spot1" style="skin_hotspotstyle" ath="-0.991" atv="18.393" linkedscene="scene_03" linkedscene_lookat="12.95,4.95,120.0" linkedscene_hoffset="7.62" use3dtransition="true" />
		
		<hotspot name="txtspot1" style="text" html="The transition to 3 makes an unwanted turn" ath="-1.170154" atv="28.355056"/>

	</scene>

	<scene name="scene_03" title="03" onstart="" thumburl="panos/03.tiles/thumb.jpg" lat="" lng="" alt="" heading="">
		
		<control bouncinglimits="true" />

		<view hlookat="0.0" vlookat="0.0" fovtype="MFOV" fov="120.0" maxpixelzoom="2.0" fovmin="112.336409" fovmax="140.0" limitview="auto" hlookatmin="-180.0" hlookatmax="180.0" vlookatmin="-90.0" vlookatmax="90.0"/>

		<preview url="panos/03.tiles/preview.jpg" />

		<image prealign="6.745925|-0.026744|2.542574">
			<cube url="panos/03.tiles/%s/l%l/%v/l%l_%s_%v_%h.jpg" multires="512,640" />
		</image>

		<hotspot name="spot3" style="skin_hotspotstyle" ath="-177.640" atv="15.251" linkedscene="scene_02" linkedscene_lookat="12.95,4.95,120.0" linkedscene_hoffset="352.38" use3dtransition="true" />
		
		
		<hotspot name="txtspot3" style="text" html="The transition to 2 makes an unwanted turn" ath="-177.743288" atv="24.60343"/>
		
		<hotspot name="spot1" style="skin_hotspotstyle" ath="5.616" atv="22.696" linkedscene="scene_04" linkedscene_lookat="5.82,10.3,120.0" linkedscene_hoffset="353.9" use3dtransition="true" />
		
		<hotspot name="txtspot1" style="text" html="The transition to 4 makes an unwanted turn" ath="5.151383" atv="32.025366"/>

	</scene>

	<scene name="scene_04" title="04" onstart="" thumburl="panos/04.tiles/thumb.jpg" lat="" lng="" alt="" heading="">
		
		<control bouncinglimits="calc:image.cube ? true : false" />

		<view hlookat="0.0" vlookat="0.0" fovtype="MFOV" fov="120" maxpixelzoom="2.0" fovmin="70" fovmax="140" limitview="auto" />

		<preview url="panos/04.tiles/preview.jpg" />

		<image>
			<cube url="panos/04.tiles/%s/l%l/%v/l%l_%s_%v_%h.jpg" multires="512,640" />
		</image>

		<hotspot name="spot2" style="skin_hotspotstyle" ath="175.320" atv="18.320" linkedscene="scene_03" linkedscene_lookat="5.82,10.3,120.0" linkedscene_hoffset="6.1" use3dtransition="true" />
		
		<hotspot name="txtspot2" style="text" html="The transition to 3 is ok" ath="175.324758" atv="27.154584"/>
		
		
		<hotspot name="spot1" style="skin_hotspotstyle" ath="-1.998" atv="14.243" linkedscene="scene_05" linkedscene_lookat="10.74,0.22,120.0" linkedscene_hoffset="361.41" use3dtransition="true" />
		
		<hotspot name="txtspot1" style="text"  html="The transition to 5 is OK" ath="-2.085671" atv="22.717402"/>

	</scene>

	<scene name="scene_05" title="05" onstart="" thumburl="panos/05.tiles/thumb.jpg" lat="" lng="" alt="" heading="">
		
		<control bouncinglimits="calc:image.cube ? true : false" />

		<view hlookat="0.0" vlookat="0.0" fovtype="MFOV" fov="120" maxpixelzoom="2.0" fovmin="70" fovmax="140" limitview="auto" />

		<preview url="panos/05.tiles/preview.jpg" />

		<image>
			<cube url="panos/05.tiles/%s/l%l/%v/l%l_%s_%v_%h.jpg" multires="512,640" />
		</image>

		<hotspot name="spot3" style="skin_hotspotstyle" ath="-179.875" atv="19.032" linkedscene="scene_04" linkedscene_lookat="10.74,0.22,120.0" linkedscene_hoffset="-1.41" use3dtransition="true" />
		
		<hotspot name="txtspot3" style="text" html="The transition to 4 is OK" ath="-179.757847" atv="27.81607"/>

	</scene>


</krpano>

6

Wednesday, February 15th 2023, 8:45am

Hi,

Thanks!
Great example!

This will be fixed soon in the next release.

Best regards,
Klaus

7

Wednesday, March 15th 2023, 4:59pm

Hi, here the new release where this is fixed:
krpano 1.21 (pre-release)

Fernando

Intermediate

  • "Fernando" started this thread

Posts: 324

Location: Habana, Cuba

Occupation: Architect, Photographer.

  • Send private message

8

Thursday, March 23rd 2023, 5:29am

Thanks very much!!

Thanks for the fix! The transition is perfect now with prealign image!! *thumbsup*
Best regards,
Fdo

This post has been edited 1 times, last edit by "Fernando" (Mar 26th 2023, 1:45am)