You are not logged in.

danimorgo

Beginner

  • "danimorgo" started this thread

Posts: 42

Location: argentina

Occupation: diseñador

  • Send private message

1

Friday, September 27th 2013, 8:01pm

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

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
<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

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
	<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

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
	<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>

Posts: 1,857

Occupation: Virtual Tours - Photography - Krpano developer

  • Send private message

2

Friday, September 27th 2013, 9:26pm

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

martyhr

Intermediate

Posts: 387

Location: CZ

  • Send private message

3

Saturday, September 28th 2013, 12:17am

yes Sacha

danimorgo

Beginner

  • "danimorgo" started this thread

Posts: 42

Location: argentina

Occupation: diseñador

  • Send private message

4

Saturday, September 28th 2013, 12:33am

mmm I have not a server, where up; (

danimorgo

Beginner

  • "danimorgo" started this thread

Posts: 42

Location: argentina

Occupation: diseñador

  • Send private message

5

Saturday, September 28th 2013, 2:40am

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

pick see test

Alexey Tkachenko

Professional

Posts: 770

Location: Russian Federation

Occupation: Interpreting, Building virtual tours

  • Send private message

6

Saturday, September 28th 2013, 11:05am

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

Alexey

danimorgo

Beginner

  • "danimorgo" started this thread

Posts: 42

Location: argentina

Occupation: diseñador

  • Send private message

7

Saturday, September 28th 2013, 5:11pm

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

Posts: 1,857

Occupation: Virtual Tours - Photography - Krpano developer

  • Send private message

8

Monday, September 30th 2013, 4:51pm

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

danimorgo

Beginner

  • "danimorgo" started this thread

Posts: 42

Location: argentina

Occupation: diseñador

  • Send private message

9

Monday, September 30th 2013, 4:55pm

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.

Posts: 1,857

Occupation: Virtual Tours - Photography - Krpano developer

  • Send private message

10

Monday, September 30th 2013, 5:17pm

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

Beginner

  • "danimorgo" started this thread

Posts: 42

Location: argentina

Occupation: diseñador

  • Send private message

11

Monday, September 30th 2013, 5:26pm

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

Trainee

Posts: 140

Location: Belarus

Occupation: photographer & virtual tour developer

  • Send private message

12

Monday, September 30th 2013, 10:53pm

... 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

Beginner

  • "danimorgo" started this thread

Posts: 42

Location: argentina

Occupation: diseñador

  • Send private message

13

Tuesday, October 1st 2013, 7:07am

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

Professional

Posts: 583

Location: Barcelona

Occupation: creating ideas & coding them

  • Send private message

14

Thursday, October 3rd 2013, 11:22am

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

Professional

Posts: 583

Location: Barcelona

Occupation: creating ideas & coding them

  • Send private message

15

Thursday, October 3rd 2013, 11:30am

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

Beginner

  • "danimorgo" started this thread

Posts: 42

Location: argentina

Occupation: diseñador

  • Send private message

16

Thursday, October 3rd 2013, 4:24pm

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

Beginner

  • "danimorgo" started this thread

Posts: 42

Location: argentina

Occupation: diseñador

  • Send private message

17

Monday, October 14th 2013, 3:22pm

what a pity, no one can help me!

Alexey Tkachenko

Professional

Posts: 770

Location: Russian Federation

Occupation: Interpreting, Building virtual tours

  • Send private message

18

Thursday, October 17th 2013, 7:28pm

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

Beginner

  • "danimorgo" started this thread

Posts: 42

Location: argentina

Occupation: diseñador

  • Send private message

19

Friday, October 18th 2013, 6:37am

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

Alexey Tkachenko

Professional

Posts: 770

Location: Russian Federation

Occupation: Interpreting, Building virtual tours

  • Send private message

20

Friday, October 18th 2013, 8:35am

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