Sie sind nicht angemeldet.

reza_shnia

Fortgeschrittener

  • »reza_shnia« ist der Autor dieses Themas

Beiträge: 169

Beruf: krpano freelancer || creating ideas & coding them || krpano developer

  • Nachricht senden

1

Donnerstag, 12. Januar 2017, 00:57

When i use a hotspot as parent of a textfield layer, i have quality problem!

Hi
When i use a hotspot as parent of a textfield layer, i have quality problem!
as you can see in the image,the text is not sharp and does not have good quality!
I test it in Chrome 53.0 and Firefox 50.0 with krpano 1.19-pr8
How can i fix this?



This is my code :

Quellcode

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
<hotspot name="menu_main_005th" url="skin/control.png"
     	ath="251.6601" atv="2.82352" distorted="true" rx="0" ry="0" rz="0" width="42" height="42" scale="1"
     	depth="1000"
     	polyline="false"
     	scaleflying="true"
     	tx="0"
     	ty="0"
     	tz="0"
     	alpha1="0"
     	enabled1="false"
     	maskchildren="false" scalechildren="false"
     	/>
<layer name="dropdown_menu_786" parent="hotspot[menu_main_005th]" width="512" height="121" scale="1" maskchildren="true" scalechildren="true" vcenter="true" visible="true" type="container" align="centerbottom" backgroundcolor="0x1eb98f" url="%SWFPATH%/plugins/textfield.swf" y="-1" css="text-align:center; color:#FFFFFF; font-family:tahoma; font-weight:normal; font-size:14px;" origin="cursor" edge="centertop" textalign="center" padding="0" roundedge="8" >
	<layer name="dropdown_menu_786_1" width="512" height="25" html="Text[b]Bold Text[/b]" backgroundalpha="0" visible="true" type="container" y="0" css="text-align:center; color:#FFFFFF; font-family:tahoma; font-weight:normal; font-size:13px;" origin="cursor" edge="lefttop" textalign="center" padding="7 10 7 10" align="lefttop"  url="%SWFPATH%/plugins/textfield.swf" />
	<layer name="dropdown_menu_786_2" width="512" height="25" html="Text2[b]Bold Text[/b]" backgroundalpha="0" visible="true" type="container" y="25" css="text-align:center; color:#FFFFFF; font-family:tahoma; font-weight:normal; font-size:13px;" origin="cursor" edge="lefttop" textalign="center" padding="7 10 7 10" align="lefttop"  url="%SWFPATH%/plugins/textfield.swf" />
</layer>
»reza_shnia« hat folgendes Bild angehängt:
  • Untitled-1.jpg

Dieser Beitrag wurde bereits 1 mal editiert, zuletzt von »reza_shnia« (12. Januar 2017, 11:29)


reza_shnia

Fortgeschrittener

  • »reza_shnia« ist der Autor dieses Themas

Beiträge: 169

Beruf: krpano freelancer || creating ideas & coding them || krpano developer

  • Nachricht senden

3

Samstag, 14. Januar 2017, 17:51

If you add zoom="true" to your parent you will see when zoomed that quality is ok. Try making font bigger. And let the plugin use autowidth and autoheight rather than you defining the size.

reza_shnia

Fortgeschrittener

  • »reza_shnia« ist der Autor dieses Themas

Beiträge: 169

Beruf: krpano freelancer || creating ideas & coding them || krpano developer

  • Nachricht senden

4

Sonntag, 15. Januar 2017, 09:15

Thank you for your reply but it doesn't solve the problem!
I change the code and this is the result :

Quellcode

1
2
3
4
5
6
7
8
9
10
11
12
13
14
<hotspot name="menu_main_005th" url="skin/control.png" 
		 ath="251.6601" atv="2.82352" distorted="true" rx="0" ry="0" rz="0" width="42" height="42" scale="1"
		 depth="1000"
		 polyline="false"
		 scaleflying="true"
		 tx="0"
		 ty="0"
		 tz="0"
		 zoom="true"
		 />
<layer name="dropdown_menu_786" parent="hotspot[menu_main_005th]" width="512" height="225" scale="1" maskchildren="true" scalechildren="false" vcenter="true" visible="true" type="container" align="centerbottom"    	bgcolor="0x1eb98f"  y="-1" origin="cursor" edge="centertop" textalign="center" padding="0" roundedge="8" >
	<layer name="dropdown_menu_786_1" onclick="set(layer[dropdown_menu_786_2].visible,false);" autowidth="auto" autoheight="auto" html="Text[b]Bold Text[/b]" backgroundalpha="0" visible="true" type="container" y="0" css="text-align:center; color:#FFFFFF; font-family:tahoma; font-weight:normal; font-size:13px;" origin="cursor" edge="lefttop" textalign="center" padding="7 10 7 10" align="lefttop"  url="%SWFPATH%/plugins/textfield.swf" />
	<layer name="dropdown_menu_786_2" onclick="set(layer[dropdown_menu_786_1].visible,false);" width="512" height="25" html="Text2[b]Bold Text[/b]" backgroundalpha="0" visible="true" type="container" y="25" css="text-align:center; color:#FFFFFF; font-family:tahoma; font-weight:normal; font-size:13px;" origin="cursor" edge="lefttop" textalign="center" padding="7 10 7 10" align="lefttop"  url="%SWFPATH%/plugins/textfield.swf" />
</layer>

reza_shnia

Fortgeschrittener

  • »reza_shnia« ist der Autor dieses Themas

Beiträge: 169

Beruf: krpano freelancer || creating ideas & coding them || krpano developer

  • Nachricht senden

Beiträge: 1 120

Wohnort: Angers - France

Beruf: 360 experiences creator

  • Nachricht senden

6

Mittwoch, 18. Januar 2017, 13:24

it's because your hotspot is distorted.

reza_shnia

Fortgeschrittener

  • »reza_shnia« ist der Autor dieses Themas

Beiträge: 169

Beruf: krpano freelancer || creating ideas & coding them || krpano developer

  • Nachricht senden