Sie sind nicht angemeldet.

danimorgo

Anfänger

  • »danimorgo« ist der Autor dieses Themas

Beiträge: 42

Wohnort: argentina

Beruf: diseñador

  • Nachricht senden

1

Freitag, 27. September 2013, 20:01

hotspot with layer

no where to post this problem, so I consulted you.
attempt to copy a layer size of a hotspot, only managed to copy in (y) but not in (x).
The operation is a hotspot that fly to the fore with the function (flyin) the hotspot is enabled (distorted), then appears the layer and adjust the hotspot displaying text.
no way to fix it

cade of emergent layer

Quellcode

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
<action name="textoIN"> 
	
	copy(layer[boxtexto].scale,hotspot[zoombild].scale);
		copy(layer[boxtexto].height,hotspot[zoombild].height);		
		copy(layer[boxtexto].width,hotspot[zoombild].width);
	
		copy(layer[boxtexto].x,hotspot[zoombild].x);
		copy(layer[boxtexto].y,hotspot[zoombild].y);  
	   		
		tween(layer[boxtexto].alpha,1.0,0.5,default, set(layer[boxtexto].visible,true));
		set(layer[boxtexto].align,center);			
		set(layer[boxtexto].enabled,true);set(layer[boxtexto].border,left);
		set(layer[boxtexto].state,mostrarT);
	</action>
	
	<action name="textoOUT">
		tween(layer[a1].x,100%);
		tween(layer[boxtexto].alpha,0.0,0.5,default, set(layer[boxtexto].visible,false));						
		set(layer[boxtexto].align,right);
		set(layer[boxtexto].visible,false);		
		set(layer[boxtexto].state,ocultarT);
	</action>
	
	<action name="openTexto">
			tween(layer[a1].x,20%);
			set(layer[a1].state,mostrar);
	</action>
	<action name="closedTexto">
			tween(layer[a1].x,90%);
			set(layer[a1].state,ocultar);
	</action>
	
	<layer name="boxtexto"  type="container" keep="true" width="1" enabled="false"  align="center" state="mostrarT"
		height="1" y="0" x="0" bgcolor="0x000000" bgalpha="0.7"  alpha="1.0" visible="true" zorder="4" 
		>
	<layer name="texto2"   type="container" align="left" width="80%" 
		height="120.1%" y="0" x="-109.3%" bgcolor="0xffffff" bgalpha="0.0" maskchildren="true" alpha="1.0"
		visible="true"zorder="4"
		>
	<layer name="a1" type="container" align="left" width="80%" enabled="true"
		height="101%" y="0" x="100%" bgcolor="0x7807b9" bgalpha="1.0" alpha="1.0"
		visible="true"zorder="6" bgcapture="true" state="ocultar"
		onclick="if(state == ocultar, openTexto(),closedTexto());"
		/>
	</layer>
		</layer>

code hotspot fly

Quellcode

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
	<action name="hotspot_animado">	
		inc(frame,1,get(lastframe),0);
		mul(ypos,frame,frameheight);
		txtadd(crop,'1|',get(ypos),'|',get(framewidth),'|',get(frameheight));
		delayedcall(0.1, if(loaded, hotspot_animate() ) );
	</action>	
		
		<style name="hotspot_aniado"
			url="ºSEDIR%/image/ver3_ANIM.png"
			crop="0|0|45|45"
			ath="30.8" 		   atv="10.3" 
			scale="1" 	  	   alpha="1.0" 
			zorder="1" 
			framewidth="45" frameheight="45" frame="0" lastframe="22"
			onloaded="hotspot_animate();"
			/>
		<style name="zoomspot" 	   url="ºSEDIR%/image/ver3.PNG" 	
			   ath="30.8" 		   atv="10.3" 
			   visible="true"	   zoom="false" 
			   distorted="false"   scale="0.18" 
			   alpha="1.0" 		   zorder="1" 
				/>
		<hotspot name="spot_zoombild" 	style="hotspot_aniado" 
			  	 ath="0" 		   		atv="0" 
				
			  	 scale="0.0" 			zorder="2"  	enabled="true"
				 onclick="flyin( zoombild ); tween(alpha,0.5); set(enabled,false);if(state == ocultarT, textoOUT(),textoIN());"
				 onhover="showtext(VER[br][font size='10']( Enrique IV )[/font],STYLE10);"
				 />
		
		<hotspot name="zoombild" 	url="ºSEDIR%/image/pic_barco.jpg"
		     	ath="30.8" 		atv="10.3" 
		     	distorted="true"   zorder2="1" 		
		     	rx="0" ry="0" 		rz="0"
				  width="50"				height="50"
		     	enabled="false"  	visible="true"
		     	alpha="1.0"  		flying="0.0" handcursor="false" 
		     	scale="0.1"		onclick=""
				 
				 />


flying code

Quellcode

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
	<action name="calc_flyout_size">
		div(screen_sideaspect, stagewidth, stageheight);
		div(hotspot_sideaspect, hotspot[%1].width, hotspot[%1].height);

		if(screen_sideaspect LT hotspot_sideaspect,
		<!-- alinear al ancho de la pantalla -->
			
		div(hotspot[%1].width,stagewidth,stageheight);
		
		mul(hotspot[%1].width);
		set(hotspot[%1].width,70%);
		set(hotspot[%1].height,prop);,
		<!-- alinear a la altura de la pantalla -->
		set(hotspot[%1].width,prop);
		set(hotspot[%1].height,40%);
		set(hotspot[%1].zorder,5);
		tween(hotspot[%1].x,10%,0.3);
		tween(hotspot[%1].x,21%,0.8);
		);
		
	</action>

	<!--Volar al hotspot = mostrar el hotspot fijo en pantalla -->
	<action name="flyin">
	
	 	wait(load);
		headClosed();
		wait(0.1);
		tween(layer[head].y,-30%);
		tween(layer[BotonIMM].y,-30%);
		tween(hotspot[%1].align, right);
		if(hotspot[%1].flying == 0.0, hotspot[%1].resetsize(); calc_flyout_size(%1); );
		if(hotspot[%1].oldscale === null, copy(hotspot[%1].oldscale, hotspot[%1].scale) );
		if(hotspot[%1].oldrx === null, copy(hotspot[%1].oldrx, hotspot[%1].rx) );
		if(hotspot[%1].oldry === null, copy(hotspot[%1].oldry, hotspot[%1].ry) );
		if(hotspot[%1].oldrz === null, copy(hotspot[%1].oldrz, hotspot[%1].rz) );
		set(hotspot[%1].enabled,true);
		set(hotspot[%1].visible,true);
		set(hotspot[%1].zorder,5);
		tween(hotspot[%1].alpha,  1.0);
		tween(hotspot[%1].flying, 1.0);
		tween(hotspot[%1].scale,  1.2);
		tween(hotspot[%1].rx, 0.0);		
		tween(hotspot[%1].ry, 0.0);
		tween(hotspot[%1].rz, 0.0);
		tween(plugin[blured].blurradius,20);
		lookatHospot();
	</action>
				
	<!-- ir al hospot = muestra el Hospot fijo en al pantalla -->
	<action name="flyout">
		textoout();
		wait(0.1);
		set(hotspot[%1].enabled,false);
		tween(hotspot[%1].alpha,  0.2, 0.5, default, set(hotspot[%1].visible,false); );
		tween(hotspot[%1].flying, 0.0);
		tween(hotspot[%1].scale,  get(hotspot[%1].oldscale));
		tween(hotspot[%1].rx,  get(hotspot[%1].oldrx));
		tween(hotspot[%1].ry,  get(hotspot[%1].oldry));
		tween(hotspot[%1].rz,  get(hotspot[%1].oldrz));
		tween(plugin[blured].blurradius,0);
		tween(layer[head].y,0%);
		tween(layer[BotonIMM].y,-0.2%);
		tween(layer[botosnSabermas].y,0%);
		lookatOut();
		wait(0.4);
		tween(hotspot[%1].x,get(hotspot[%1].oldx));
		
	</action>

Beiträge: 1 857

Beruf: Virtual Tours - Photography - Krpano developer

  • Nachricht senden

2

Freitag, 27. September 2013, 21:26

It may help if you post an example to understand the problem.
KRPano Developer: Portfolio ::Gigapixel Tagging Solutions - Porfolio 2 :: Facebook :: Twitter :: reddit.com/r/VirtualTour

3

Samstag, 28. September 2013, 00:17

yes Sacha

danimorgo

Anfänger

  • »danimorgo« ist der Autor dieses Themas

Beiträge: 42

Wohnort: argentina

Beruf: diseñador

  • Nachricht senden

4

Samstag, 28. September 2013, 00:33

mmm I have not a server, where up; (

danimorgo

Anfänger

  • »danimorgo« ist der Autor dieses Themas

Beiträge: 42

Wohnort: argentina

Beruf: diseñador

  • Nachricht senden

5

Samstag, 28. September 2013, 02:40

I made ​​up a sample of the problem, I hope your help only works in chrome in firefox gives error license.

pick see test

Beiträge: 770

Wohnort: Russian Federation

Beruf: Interpreting, Building virtual tours

  • Nachricht senden

6

Samstag, 28. September 2013, 11:05

Hmm...So the desired result you wish to achieve is - the hotspot picture should fit inside the black rectanhgular layer. Right?
Regards,

Alexey

danimorgo

Anfänger

  • »danimorgo« ist der Autor dieses Themas

Beiträge: 42

Wohnort: argentina

Beruf: diseñador

  • Nachricht senden

7

Samstag, 28. September 2013, 17:11

is reversed, the layer must fit into the picture (hotspot)

Beiträge: 1 857

Beruf: Virtual Tours - Photography - Krpano developer

  • Nachricht senden

8

Montag, 30. September 2013, 16:51

Your example does not work due to License Error.
KRPano Developer: Portfolio ::Gigapixel Tagging Solutions - Porfolio 2 :: Facebook :: Twitter :: reddit.com/r/VirtualTour

danimorgo

Anfänger

  • »danimorgo« ist der Autor dieses Themas

Beiträge: 42

Wohnort: argentina

Beruf: diseñador

  • Nachricht senden

9

Montag, 30. September 2013, 16:55

Su ejemplo no funciona debido a un error de licencia.
Your example does not work due to License Error.
Me inventé una muestra del problema, espero su ayuda solo funciona en Chrome en Firefox da licencia error.

Beiträge: 1 857

Beruf: Virtual Tours - Photography - Krpano developer

  • Nachricht senden

10

Montag, 30. September 2013, 17:17

Su ejemplo no funciona en Chrome tambien para me. Ya compraste una licensia?
KRPano Developer: Portfolio ::Gigapixel Tagging Solutions - Porfolio 2 :: Facebook :: Twitter :: reddit.com/r/VirtualTour

danimorgo

Anfänger

  • »danimorgo« ist der Autor dieses Themas

Beiträge: 42

Wohnort: argentina

Beruf: diseñador

  • Nachricht senden

11

Montag, 30. September 2013, 17:26

is demo version , maybe you should update your chrome, works for me perfectly, please if anyone has trouble seeing the link let me know. thanks

Taurus

Schüler

Beiträge: 140

Wohnort: Belarus

Beruf: photographer & virtual tour developer

  • Nachricht senden

12

Montag, 30. September 2013, 22:53

... if anyone has trouble seeing the link let me know. thanks
confirm: fatal error "license error" occurs
I'm not sure, but maybe the demo version is only applicable for local use

Serge
--
in order to comply the word with the affairs, you need to keep quiet and do nothing!

Virtual tour Gomel
Virtual tour
Virtual tour
Elbrus
...

Windows 10x64 & krpano 1.20

danimorgo

Anfänger

  • »danimorgo« ist der Autor dieses Themas

Beiträge: 42

Wohnort: argentina

Beruf: diseñador

  • Nachricht senden

13

Dienstag, 1. Oktober 2013, 07:07

Citado de "danimorgo"



... si alguien tiene problemas para ver el enlace que me haga saber. gracias
confirma: "error de licencia" fatal error
que no estoy seguro, pero tal vez la versión de demostración sólo es aplicable para el uso local
Serge
please use chrome , thanks regrds

jordi

Profi

Beiträge: 583

Wohnort: Barcelona

Beruf: creating ideas & coding them

  • Nachricht senden

14

Donnerstag, 3. Oktober 2013, 11:22

Deberias explicar por un lado que es lo que quieres conseguir, y por otro lado cual es el problema exactamente..
Una imagen en photoshop con el disseño del sitio seria estupendo para empezar a ayudarte un poco...

sino tienes servidor no hay problema, puedes usar una cuenta de dropbox para colgar alli los archivos, usas la carpeta publica y listo...
everpano.com step beyond 360

jordi

Profi

Beiträge: 583

Wohnort: Barcelona

Beruf: creating ideas & coding them

  • Nachricht senden

15

Donnerstag, 3. Oktober 2013, 11:30

By the way the demo version you can use it online or offline, no matter...
It will just show a krpano watermark until you have the license...
everpano.com step beyond 360

danimorgo

Anfänger

  • »danimorgo« ist der Autor dieses Themas

Beiträge: 42

Wohnort: argentina

Beruf: diseñador

  • Nachricht senden

16

Donnerstag, 3. Oktober 2013, 16:24

hotspot with layer

By the way the demo version you can use it online or offline, no matter...
It will just show a krpano watermark until you have the license...
thanks jordi for your interest, if you see up, have link with test and error.
see error

danimorgo

Anfänger

  • »danimorgo« ist der Autor dieses Themas

Beiträge: 42

Wohnort: argentina

Beruf: diseñador

  • Nachricht senden

17

Montag, 14. Oktober 2013, 15:22

what a pity, no one can help me!

Beiträge: 770

Wohnort: Russian Federation

Beruf: Interpreting, Building virtual tours

  • Nachricht senden

18

Donnerstag, 17. Oktober 2013, 19:28

By the way, why using hotsot and layer separately? Obviously, it's difficult to match scale/diwh/height of a hotspot with scale/width/height of the corresponding layer. What if do similar to my example from the thread about "textfield update"? I use the standard "flyout-hotspots" code from the krpano download package, modified it a bit to my needs. Your code is different from this code.
Regards,

Alexey

danimorgo

Anfänger

  • »danimorgo« ist der Autor dieses Themas

Beiträge: 42

Wohnort: argentina

Beruf: diseñador

  • Nachricht senden

19

Freitag, 18. Oktober 2013, 06:37

alexey so the code is different, the idea is that this scroll text always stuck to the image, this works perfectly if you disable the hotspot distorted, but you lose the effect of flight, for foulbrood as a solution is to try to put a layer attached to the hotspot and responsive to changes in screen. I will try to use the code you mention, could tell me what it is, or upload an example to develop.
thank you very much greetings

Beiträge: 770

Wohnort: Russian Federation

Beruf: Interpreting, Building virtual tours

  • Nachricht senden

20

Freitag, 18. Oktober 2013, 08:35

The standard flyout-hotspot code is in the Kerpano download package. See it here:

krpano-1.16.8\examples\xml-usage\flyout-hotspots\flyout-more-hotspots.xml

Here are two actions: "flyout_by_name" and "flyback_by_name" which control hotspots flying in and out. I've played with these two actions.
Regards,

Alexey