Sie sind nicht angemeldet.

1

Donnerstag, 18. Oktober 2012, 18:17

Problem with Textfiled-Plugin and krPano 1.0.8.15 (build 2012-10-05)

Hello!

I recently upgraded to the latest version of krPano and am now experiencing some really strange behavior with the build-in textfield plug-in of the html5-Player. I'm using the textfiled to display text below my hotspots. But since the update some of these text are just missing...

I managed to find out, that (given an entry angle (=hlookat) of 0°) a textfield with "ath" less than -50° or more than +50° is not displayed. This happens most of the time. Several test cases with many simultaneous textfields resulted in pretty inconclusive results, but the -50/+50-border always stood out a little...

Switching back to version 1.0.8.15 (build 2012-08-10) fixes this problem for me.

EDIT 1:
krPano doesn't even create all the div-containers, that normal textfields have.

Anyone out there with similar problems? *confused*

EDIT 2:
Almost forgot to mention, that another texfield plug-in error occurred to me:
When setting a textfield hotspot to be be initial hidden (visible="false") and then loading a second panorama (strangely this does not happen with the first panorama krPano displays) i was not able to make this textfield visible by calling "krPano.set('hotspot[label-1'].visible', true);".
I found out, that krPano hides this hotspot via css display=none AND opacity=0. When calling the above mentioned function, only display was set back to 'block'. The opacity remained 0 and therefore the textfield was still hidden. I fixed this by calling "krPano.set('hotspot[label-1'].alpha', 1);" at the same time.

Dieser Beitrag wurde bereits 1 mal editiert, zuletzt von »Phlex« (18. Oktober 2012, 18:35)


2

Donnerstag, 18. Oktober 2012, 18:22

Hi,

okay, I will check this...
Do you maybe have an example for your case?

Best regards,
Klaus

3

Donnerstag, 18. Oktober 2012, 18:42

An Example could be a little problem, since the project is under nda.
But i think a little modified xml-code should be okay...

Quellcode

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
<krpano version="1.0.8" showerrors="false">
	<view fovmin="60" fovmax="120" limitview="range" fov="80"/>
	<display fps="60" movequality="low" stillquality="low" flash10="on" details="30" movequality10="high" stillquality10="high"/>

	<textstyle name="DEFAULT" fontsize="14" bold="true" border="false" background="false" font="Arial,Helvetica,sans-serif" textcolor="0xffffff" fadeintime="0.2" effect="glow(0x#232323,0.8,4,3)"/>
	<data name="labelStyle">div {text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-family: Arial; font-size: 14px; font-weight: bold; color: #ffffff; text-shadow: #232323;}</data>

	<view hlookat="-111" vlookat="0" vlookatmin="-90" vlookatmax="90" hlookatmin="-180" hlookatmax="180"/>

	<preview/>
	<image></image>

	<hotspot name="hotspot-0" ath="177" atv="13" file="XML-NAME" onclick="DO_SOMETHING" style="normalHotspot" url="URL" edge="bottom" width="30" height="prop"/>
	<hotspot name="label-0" url="%SWFPATH%/textfield.swf" html="[div class=&quot;hotspotLabel&quot;]CAPTION[/div]" width="200" autoheight="true" edge="top" oy="-4" ath="177" atv="13" enabled="false" selectable="false" background="false" borderwidth="0" handcursor="false"/>
</krpano>


If the problem is not replicable, i will contact the customer and ask his permission to send you a link.

EDIT:
I just checked the above xml (and removed the visible="false" attributes of the two hotspots (this happens via code in the normal tour)) and the same error occurs. So i don't think it is related to my whole interface...

Dieser Beitrag wurde bereits 1 mal editiert, zuletzt von »Phlex« (18. Oktober 2012, 18:54)


4

Donnerstag, 25. Oktober 2012, 11:51

Any news on the problem jet???

I made a completely new example based on the latest krPano download.

This one has the descript error:
http://goo.gl/TJSCR

This one works fine:
http://goo.gl/2Qz8R

The difference between those two is, that the later one does NOT use autoheight="true" as an attribute
to the textfield.

ATTENTION:
It also seems to be important, that the textfield is outside of the screen when loading the pano. The inner width of my browser is 944px. This guarantees that both (hotspot and textfield) are not seen when the pano has loaded.

Sure i could just set a fixed height to the textfield, but the problem is that i get a little confused what size this should be. Tests showed, that iPhones/iPods and the flash-based krPano seem to need the doubled height than what it really should be...so i think autoheight is the better option so far (theoratically i mean... *tongue* ).

5

Dienstag, 30. Oktober 2012, 10:32

Hi,

thanks for your examples - I see the problem - I will try to fix it for the next release.

Zitat

EDIT 2:
Almost forgot to mention, that another texfield plug-in error occurred to me:
When setting a textfield hotspot to be be initial hidden (visible="false") and then loading a second panorama (strangely this does not happen with the first panorama krPano displays) i was not able to make this textfield visible by calling "krPano.set('hotspot[label-1'].visible', true);".
I found out, that krPano hides this hotspot via css display=none AND opacity=0. When calling the above mentioned function, only display was set back to 'block'. The opacity remained 0 and therefore the textfield was still hidden. I fixed this by calling "krPano.set('hotspot[label-1'].alpha', 1);" at the same time.
the pano blending is already done?
and there is nowhere an alpha=0 for that element?

Best regards,
Klaus

6

Dienstag, 30. Oktober 2012, 14:49

The blending seems to have finished. The 'onloadcomplete' event gets fired, but the alpha of my textfield-hotspots is still set to zero. Removing the blend-effect results in the correct behavior of the hidden hotspots. *confused*
I do not use alpha attributes anywhere in my project. So this can't be the source of evil... *squint*

Since this does not bother me that much, and a simple function call to set alpha back to 1 solves this problem, i can live with it.