Sie sind nicht angemeldet.

  • »Alexey Tkachenko« ist der Autor dieses Themas

Beiträge: 770

Wohnort: Russian Federation

Beruf: Interpreting, Building virtual tours

  • Nachricht senden

1

Donnerstag, 24. September 2015, 09:56

Seems like 'showtext.xml' plugin bug

Hi)

Yesterday I was making a VT where several hotspots were placed close to each other. And I noted that showtext doesn't work properly in WebGL (Win 7, Chrome). When I move cursor rapidly from one spot to another there's no hint text at all, only the tiny 'empty' textfield layer.

Check out this barebone example:

http://vt.most-inform.com/bugs/showtext/


code:

http://vt.most-inform.com/bugs/showtext/tour.xml


If I hover a spot and then move cursor out of it, then showtext works OK.
Regards,

Alexey

Tuur

Erleuchteter

Beiträge: 3 839

Wohnort: Netherlands

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

  • Nachricht senden

2

Donnerstag, 24. September 2015, 12:02

isn't it the slow fadeout time that is making problems?

  • »Alexey Tkachenko« ist der Autor dieses Themas

Beiträge: 770

Wohnort: Russian Federation

Beruf: Interpreting, Building virtual tours

  • Nachricht senden

3

Donnerstag, 24. September 2015, 14:41

Well, I adjusted showtime to 1 sec, so that people could read what is written inside the tooltip

Quellcode

1
fadeintime="0.2" showtime="1" fadetime="0.2" 


Regards,

Alexey

Tuur

Erleuchteter

Beiträge: 3 839

Wohnort: Netherlands

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

  • Nachricht senden

4

Donnerstag, 24. September 2015, 16:19

i would leave that whole showtime="1" away.
as during the hovering the text will keep showing.

Tuur *thumbsup*

5

Donnerstag, 24. September 2015, 16:40

Hi,

the problem is caused by the empty width/height settings in the textstyle:

Quellcode

1
<textstyle name="DEFAULT" ... width="" height="" ... />

Remove them and it should work.


Or as alternative edit the showtext.xml and change that part:

Quellcode

1
2
3
4
if(ts.width   !== null, copy(tf.width,   ts.width));
if(ts.height  !== null, copy(tf.height,  ts.height));
if(ts.vcenter !== null, copy(tf.vcenter, ts.vcenter));
if(ts.padding !== null, copy(tf.padding, ts.padding), set(tf.padding,1));

to this:

Quellcode

1
2
3
4
if(ts.width   !== null AND ts.width   !== '', copy(tf.width,   ts.width));
if(ts.height  !== null AND ts.height  !== '', copy(tf.height,  ts.height));
if(ts.vcenter !== null AND ts.vcenter !== '', copy(tf.vcenter, ts.vcenter));
if(ts.padding !== null AND ts.padding !== '', copy(tf.padding, ts.padding), set(tf.padding,1));


Best regards,
Klaus

Tuur

Erleuchteter

Beiträge: 3 839

Wohnort: Netherlands

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

  • Nachricht senden

6

Donnerstag, 24. September 2015, 16:47

Hi Klaus,

i added them, empty, in a project to see/check .. but i do not see any difference when they are there (empty) or not at all.
In this case i think the showtime is too long. And then it misses the next on hover call (or so).
(?)


just a finding.
Tuur *thumbsup*

7

Donnerstag, 24. September 2015, 17:05

Hi,

there is no missing call,

the problem is that the empty width was set a second time to the same textfield element: in this first showtext() call the empty values are not a problem because the textfield will be created and the width will be automatically set, but with the second showtext() call the empty width/height values will be set as new size to the textfield.

Best regards,
Klaus

Tuur

Erleuchteter

Beiträge: 3 839

Wohnort: Netherlands

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

  • Nachricht senden
  • »Alexey Tkachenko« ist der Autor dieses Themas

Beiträge: 770

Wohnort: Russian Federation

Beruf: Interpreting, Building virtual tours

  • Nachricht senden

9

Donnerstag, 24. September 2015, 20:59

Wow, you guys are helpful as always! ;-)

I didn't even thought about those empty width/height parameters, I remember I just copied the code from plugin page and then adjusted it.

Thank you both sooo much!
Regards,

Alexey

10

Montag, 7. Dezember 2015, 10:26

May I ask showtext plugin works in VR mode for krpano latest version?