Sie sind nicht angemeldet.

fellipe

Schüler

  • »fellipe« ist der Autor dieses Themas

Beiträge: 67

Wohnort: Brazil

Beruf: Photographer

  • Nachricht senden

1

Samstag, 19. Juni 2010, 01:17

little planet -> normal view action?

I'd like to create 02 buttons.
The code I'm using is:



Quellcode

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
<plugin name="planetbutton" url="images/littleplanet.png" ath="0" atv="0" onclick="action(littleplanet);"
	align="bottom left"		
edge="center"	
scale="0.8"	
x="200" y="80"		
ox="0" oy="0"	
onhover="tween(scale,1,0.1); showtext(Ver Little Planet Interativo, texto)"
onout="tween(scale,0.8,0.1)"	/>

<action name="littleplanet">
		set(display.flash10,off);
		tween(view.architectural, 0.0, distance(1.0, 0.25), easeoutquad);
		tween(view.fisheye,   	0.0 ,distance(1.0, 0.10), easeoutquad,
				set(view.stereographic,true);
				tween(view.fisheye, 1.0, distance(1.0, 0.75));
				tween(view.fov, 	130, distance(179, 0.75), easeoutquad, set(view.fovmax,150););
				tween(view.vlookat,  90, distance(179, 0.75), easeoutquad);
				set(autorotate.enabled,false);
			 );
	</action>




Now for the normal button (to come back to the normal view) the plugin is:

Quellcode

1
2
3
4
5
6
7
8
<plugin name="ver_normal" url="images/normal.png" ath="0" atv="0" onclick="action(rectview);"
	align="bottom left"		
edge="center"	
scale="0.8"	
x="285" y="80"		
ox="0" oy="0"	
onhover="tween(scale,1,0.1); showtext(Voltar à visualização 360°, texto)"
onout="tween(scale,0.8,0.1)"	/>


Now my question is: I'd like this action "rectview" to set this values: <view hlookat="0" vlookat="0" fovtype="MFOV" fov="110" maxpixelzoom="1.5" fovmax="130"/>

Can you help me?

Tuur

Erleuchteter

Beiträge: 3 839

Wohnort: Netherlands

Beruf: Krpano custom coding / Virtual Tours / Photography / Musician / Recording engineer

  • Nachricht senden

2

Samstag, 19. Juni 2010, 13:24

He Felippe,

i think this should work..

Quellcode

1
2
3
4
5
6
7
8
9
<plugin name="ver_normal" url="images/normal.png" ath="0" atv="0" onclick="action(rectview);"
	align="bottom left"		
edge="center"	
scale="0.8"	
x="285" y="80"		
ox="0" oy="0"	
onhover="tween(scale,1,0.1); showtext(Voltar à visualização 360°, texto)"
onout="tween(scale,0.8,0.1)"
	/>


Quellcode

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
<action name="rectview">
	
	
		tween(view.fovmax,       155.0, distance(179, 0.25), easeoutquad);
                tween(view.architectural,  0.0, distance(1.0, 0.25), easeoutquad);
                tween(view.fisheye,        0.0, distance(1.0, 0.25), easeoutquad,,WAIT);
	
		
              
        set(view.maxpixelzoom,1.5);
        set(display.flash10, on);   
        set(display.details, 32);
        set(view.fovtype,MFOV);

        tween(view.hlookat,0);
        tween(view.vlookat,0);
        tween(view.fov,110); 
              
	</action>


does that work??


Cheers
Tuur *thumbsup*

Dieser Beitrag wurde bereits 1 mal editiert, zuletzt von »Tuur« (19. Juni 2010, 18:51)