You are not logged in.

1

Monday, August 10th 2020, 7:04pm

blend + Keepmoving problem

Hi all !


I'm trying to blend smoothly a scene to another (flat) one.

my goal is : Autorotate + Blend + Keepmoving

a little online preview here :) thekeepmoving-problem/tour.html

What did i miss ?
any idea ?

Thanks !



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
<krpano version="1.20" title="Panoramas - PLONGEZ en AMP - BI" onstart="loadscene(tunnel-vide);" >

	<include url="skin/vtourskin.xml" />

	<!-- customize skin settings: maps, gyro, webvr, thumbnails, tooltips, layout, design, ... -->
	<skin_settings maps="false"
	               loadscene_flags="MERGE|KEEPVIEW|KEEPMOVING"
	               loadscene_blend="OPENBLEND(0.8, 0.0, 0.8, 0.05, easeinoutquad)"
	               loadscene_blend_prev="OPENBLEND(0.8, 0.0, 0.8, 0.05, easeinoutquad)"
	               loadscene_blend_next="OPENBLEND(0.8, 0.0, 0.8, 0.05, easeinoutquad)"
	               />


<!-- TUNNEL NEUTRE ! -->

<scene name="tunnel-vide" title="tunnel-vide" onstart="" thumburl="" lat="" lng="" heading="">


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


		<image hfov="1.00" vfov="0.562500" voffset="0.00">
			<flat url="panos/Tunnel-1920.tiles/pano-neutre.jpg" />
		</image>
		
	 
		<autorotate enabled="false"/>
		<events name="refresh"
		onloadcomplete="delayedcall(3, loadscene(tunnel-lam, null, MERGE, BLEND(2) ); );"	
		/>


</scene>


<!-- TUNNEL LAMINAIRES ! -->

<scene name="tunnel-lam" title="tunnel-lam" onstart="" thumburl="" lat="" lng="" heading="">


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


		<image hfov="1.00" vfov="0.562500" voffset="0.00">
			<flat url="panos/Tunnel-1920.tiles/pano-lam.jpg" />
		</image>
		
	 
		<autorotate enabled="false"/>
 		
		<events name="refresh2"
		onloadcomplete="delayedcall(3, loadscene(laminaires, null, MERGE, BLEND(8) ); );"	
		/>

</scene>

<!-- FIN DE LA SCENE ! -->


<!-- LAMINAIRES ! -->

	<scene name="laminaires" title="laminaires" onstart="" thumburl="panos/laminaires.tiles/thumb.jpg" lat="" lng="" heading="">

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

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

		<image>
			<cube url="panos/laminaires.tiles/pano_%s.jpg" />
		</image>
		

		<autorotate enabled="true"
		accel="0.6"
		speed="3"
		horizon="10"
		tofov="100"
		/>
  
<events name="scene1" onloadcomplete="delayedcall(12, loadscene(tunnel-vide, null, MERGE, KEEPMOVING, BLEND (2))); );" />

	</scene>

<!-- FIN DE LA SCENE LAMINAIRES ! -->

</krpano>

2

Thursday, August 13th 2020, 7:06pm

Hi,

your loadscene syntax is wrong, correct would be 'MERGE|KEEPMOVING',

but better just use the 'skin_loadscene' action from the vtourskin.xml,
e.g. this way:

Source code

1
skin_loadscene(tunnel-vide, get(skin_settings.loadscene_blend));


Best regards,
Klaus

3

Thursday, August 13th 2020, 8:03pm

hello ! thank you for your time !


i tried this on my tour.xml

Source code

1
<events name="scene1" onloadcomplete="delayedcall(10, loadscene(tunnel-vide, null, MERGE|KEEPMOVING, BLEND (2))); );" />



this too in in vtourskin.xml

Source code

1
2
3
4
5
6
7
8
9
10
11
<action name="skin_loadscene" scope="local" args="newscenenameorindex, blendmode">
		if(webvr.isenabled AND scene.count GT 1,
			set(hotspot[skin_webvr_prev_scene].visible, false);
			set(hotspot[skin_webvr_next_scene].visible, false);
		);

		calc(layer[skin_thumbborder].parent, 'skin_thumb_' + scene[get(newscenenameorindex)].index);
		layer[skin_thumbs].scrolltocenter(get(scene[get(newscenenameorindex)].thumbx), get(scene[get(newscenenameorindex)].thumby));
		loadscene(get(scene[get(newscenenameorindex)].name), null, get(skin_settings.loadscene_flags), get(blendmode));
		skin_loadscene(tunnel-vide, get(skin_settings.loadscene_blend));
	</action>


neither of them worked
what i missed ?
*unsure*