You are not logged in.

Dear visitor, welcome to krpano.com Forum. If this is your first visit here, please read the Help. It explains in detail how this page works. To use all features of this page, you should consider registering. Please use the registration form, to register here or read more information about the registration process. If you are already registered, please login here.

Alexey Tkachenko

Professional

  • "Alexey Tkachenko" started this thread

Posts: 770

Location: Russian Federation

Occupation: Interpreting, Building virtual tours

  • Send private message

1

Thursday, September 24th 2015, 9:56am

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

Sage

Posts: 3,831

Location: Netherlands

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

  • Send private message

2

Thursday, September 24th 2015, 12:02pm

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

Alexey Tkachenko

Professional

  • "Alexey Tkachenko" started this thread

Posts: 770

Location: Russian Federation

Occupation: Interpreting, Building virtual tours

  • Send private message

3

Thursday, September 24th 2015, 2:41pm

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

Source code

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


Regards,

Alexey

Tuur

Sage

Posts: 3,831

Location: Netherlands

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

  • Send private message

4

Thursday, September 24th 2015, 4:19pm

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

Tuur *thumbsup*

5

Thursday, September 24th 2015, 4:40pm

Hi,

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

Source code

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

Remove them and it should work.


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

Source code

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:

Source code

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

Sage

Posts: 3,831

Location: Netherlands

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

  • Send private message

6

Thursday, September 24th 2015, 4:47pm

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

Thursday, September 24th 2015, 5:05pm

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

Sage

Posts: 3,831

Location: Netherlands

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

  • Send private message

Alexey Tkachenko

Professional

  • "Alexey Tkachenko" started this thread

Posts: 770

Location: Russian Federation

Occupation: Interpreting, Building virtual tours

  • Send private message

9

Thursday, September 24th 2015, 8:59pm

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

Monday, December 7th 2015, 10:26am

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