You are not logged in.

machart

Trainee

  • "machart" started this thread

Posts: 135

Location: Ostfriesland

  • Send private message

1

Sunday, April 5th 2009, 5:04pm

event - how to do it?

hi!
need a little help...
i want to do a small pano on the start site, as appetizer, without user interaction, just going in circle:
starting in planet view, autorotate to the zenith... thats already done...
- but then, after one circle or some seconds, going back to the start view...

i only need to know how to tell the player to start the planet action....
i dont know if my code is right...

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
<krpano version="1.0.8"
		onstart="set(autorotate.enabled,false);"
		actionintervalbase="timer">

<events onloadcomplete="set(autorotate.enabled,true);" 
/>
	
	<display movequality="LOW" stillquality="HIGH"
			 flash10="off" />
	<progress showload="false" />
	<control usercontrol ="none" 
			/>


	<view hlookat="0"
	      vlookat="90"
	      fov="130" fovmin="40" fovmax="130"
	      stereographic="true" fisheye="1.0" fisheyefovlink="0.5"
	      />
	      
	<autorotate enabled="true" 
				waittime="3" 
				accel="1" 
				speed="15.0" 
				horizon="-90.0" 
				tofov="40" /> 

	<action name="littleplanet">
			tween(view.architectural, 0.0, distance(1.0, 0.10), easeoutquad);
			tween(view.fisheye,       0.0 ,distance(1.0, 0.10), easeoutquad, set(view.stereographic,true);
			tween(view.fisheye, 1.0, distance(1.0, 5.00));
			tween(view.fov,     130, distance(179, 5.00), easeoutquad, set(view.fovmax,150););
			tween(view.vlookat,  90, distance(179, 2.00), easeoutquad);
			tween(view.hlookat,  0, distance(179, 5.00), easeoutquad);
			 );
	</action>
__close to the rainbow__
_D300S|Sunwayfoto|iMaci7|PM|APP|KRP_
www.panographie.net

2

Sunday, April 5th 2009, 10:13pm

Hi,

you could add an action for the normal view and then
call in the "onstart" event with "delayedcall(5, action(normalview) );"
then it will be called e.g. after 5 seconds,

best regards,
Klaus

machart

Trainee

  • "machart" started this thread

Posts: 135

Location: Ostfriesland

  • Send private message

3

Thursday, April 9th 2009, 1:31pm

hi, klaus!

thanks for the answer...
that works, but i mean something different... ;-)
all the tweening should run in circle... something like: after autorotating to vlookat=-90 start the little planet action...
__close to the rainbow__
_D300S|Sunwayfoto|iMaci7|PM|APP|KRP_
www.panographie.net