You are not logged in.

1

Sunday, March 1st 2020, 4:36pm

delay "loadscene scene to" from a chosen one

I'm newbie to KRPANO tools, but very happy to use it ! very inspiring !!

i've successfully make an virtual-tour for an exhibit. (it will run on 2 x 32" iiyama touchscreens)
-> i'm guessing... no.. i'm sure ! the code is very chaotic, but it works *g* but i'm proud and approaching to the goal !


and today ...i'm looking for little help :
-> When nobody use the "kiosk" i would like to "refresh" the display every ...5min by exemple.
and this is where I get stuck !

-> the structure is based on a "root level" (an flat pano with hotspots),

-> my goal is when the kiosk show the root-level about long time, the kiosk load one chosen scene

-> and every scene have this to going back itself to the root level.

tour.xml

Source code

1
2
3
4
5
6
7
8
...
<autorotate enabled="true"    
waittime="120"
accel="0.6"
speed="3"
horizon="4.0"
tofov="100"/>
</scene>



which refer in vtourskin.xml

Source code

1
2
3
4
5
6
7
8
9
10
11
12
 <!-- autotour/autoplay support -->
<autorotate enabled="calc:skin_settings.autotour == true"
waittime="5.0"
accel="0.7"
speed="4.0"
tofov="80"    />

<events name="skin_autotour" keep="true" 
onautorotatestart="skin_autotour_start();" 
onautorotatestop="skin_autotour_stop();"
onautorotateoneround="loadscene(tunnel,null,MERGE,OPENBLEND(8, 0.0, 0.8, 0.05, easeinoutquad));"
/>



after looking the documentation i wrote this for the "rootscene".
unfortunately, every scenes goes to the scene "laminaires" and goes to the next one....
what did i miss ? *huh*


this the entire root scene called "tunnel" :

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
	<scene name="tunnel" title="tunnel" 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/tunnel_3panos-WEB.jpg" />
		</image>
		
 
  		<hotspot name="herbier"
 		url="skin/bouton_herbier.png"
 		scale="0.76"
 		onloaded="tween(scale,1, 0.9,easeoutsine);"
 		style="skin_hotspotstyle" 
 		ath="-0.124" atv="-0.150"
 		onclick="loadscene(herbier,null,MERGE,OPENBLEND(0.8, 0.0, 0.8, 0.05, easeinoutquad));"
 		/>
 
 
 
 		<hotspot name="maerl"
 		url="skin/bouton_maerl.png"
 		scale="0.92"
 		onloaded="tween(scale,1.0, 1.5,easeoutsine);"
 		style="skin_hotspotstyle" 
 		ath="0.136" atv="0.011"
 		onclick="loadscene(maerl,null,MERGE,OPENBLEND(0.8, 0.0, 0.8, 0.05, easeinoutquad));"
 		/>
 
    	<hotspot name="foret"
 		url="skin/bouton_foret.png"
 		scale="0.77"
 		onloaded="tween(scale,1, 0.9,easeoutsine);"
 		style="skin_hotspotstyle" 
 		ath="-0.229" atv="0.128"
 		onclick="loadscene(laminaires,null,MERGE,OPENBLEND(0.8, 0.0, 0.8, 0.05, easeinoutquad));"
 		/>
 

<events name="refreshing-display"
	onloadcomplete="delayedcall(10, loadscene(laminaires,null,MERGE,OPENBLEND(8, 0.0, 0.8, 0.05, easeinoutquad)); );"
/>

<autorotate enabled="false"
/>

	</scene>


if you have an idea it is welcome !! thanks !

Similar threads