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.

tommo77funk

Intermediate

  • "tommo77funk" started this thread

Posts: 153

Location: London

Occupation: Photographer

  • Send private message

1

Thursday, August 6th 2009, 11:32pm

onloaded showtext

Hi,

I've been scratching my head on how to do this, but basically I would like to have text show with an image hotspot all the time, and not just appear on an event like onup, ondown, onclick or onhover. So I have tried onloaded event but it does not work. Basically I would like to have some arrows with text that will baiscally point something out.

So I tried an image hotspot with showtext appear when it is loaded, like this...

<hotspot keep="false"
name="hs_arrow"
zorder="0" width="71" height="67"
alpha="0.8"
ath="324" atv="15"
url="arrow.png" scale="0.5"
onloaded="showtext(This is a building,tooltip);">
</hotspot>

but it does not work... I've also tried making it a plugin.

I need to do lots of them with different text each time, so was hoping to do it this way rather than use the textfield plugin with a hotspot. I'm wondering if I have overlooked something ? I have checked the docs, but it seems the only way to add am image to panorama is via a hotspot.

Any advice, greatly appreciated :)

Best wishes,

tom

Graydon

Professional

Posts: 614

Location: Texas

Occupation: Industrial gas turbine services.

  • Send private message

2

Friday, August 7th 2009, 1:59am

You've defined the showtext style as "tooltip"

as a possible workaround... could you define the showtime in that style to be really long?

The default time is only 0.1... so maybe it's working, but you just aren't seeing it?

tommo77funk

Intermediate

  • "tommo77funk" started this thread

Posts: 153

Location: London

Occupation: Photographer

  • Send private message

3

Friday, August 7th 2009, 11:29am

SPOT ON ! Thanks Graydon, I would never have realized the default showtime was 0.1 seconds.

Many thanks !

tom

Graydon

Professional

Posts: 614

Location: Texas

Occupation: Industrial gas turbine services.

  • Send private message

4

Saturday, August 8th 2009, 1:00am

Glad it helped.

Here's a link to the texstyle info for reference... http://www.krpano.com/docu/xml/#textstyle

tommo77funk

Intermediate

  • "tommo77funk" started this thread

Posts: 153

Location: London

Occupation: Photographer

  • Send private message

5

Sunday, August 9th 2009, 12:17am

Great, many thanks Graydon. One thing I noticed though is that the text would either follow the mouse or I would have to set the origin, which meant it was fixed to the screen and not the hotspot. Then I had a brainwave and that was to just write the text in the image using photoshop.

Next problem is fixing the hotspot to an area so that when you zoom the hotspot arrow does not move from its area. I think a distorted 3D hotspot could help here so I will check it out.

I once saw on a french virtual tour website, (wish I could remember which one it was, so i could post an example) an aerial panorama with really long hotspots that were fixed to the ground, where it was pointing to basically and at the top there was a box with text, and it just kind of floated in midair, it was really cool, and i'm currently experimenting how i can do this.

Anyway many thanks, yourself and Klaus + others, are sooo helpful, it really is appreciated :)

Best wishes,

tom

This post has been edited 1 times, last edit by "tommo77funk" (Aug 9th 2009, 12:35am)


6

Monday, August 10th 2009, 3:07pm

Hi,
Next problem is fixing the hotspot to an area so that when you zoom the hotspot arrow does not move from its area. I think a distorted 3D hotspot could help here so I will check it out.
try changing the "edge" attribute, the default value is "center",
and adjust the position even more with the ox/oy offset values,
e.g.

Source code

1
<hotspot ... edge="bottomright" ox="0" oy="0" ... />


best regards,
Klaus

tommo77funk

Intermediate

  • "tommo77funk" started this thread

Posts: 153

Location: London

Occupation: Photographer

  • Send private message

7

Tuesday, August 11th 2009, 2:50am

Hi,

thanks Klaus, I actually found distorted="true" worked with keeping the hotspot pinned to the panorama, but will also try changing the edge and and ox and oy offsets.

I found that french website with the excellent hotspots that I tried to describe, have a look, v. clever.

http://www.360lieux.com/index.php/Page-d…ne-et-terrestre (to the owner of these hotspot, great work !)

Best wishes,

tom

Posts: 148

Location: Italy

Occupation: Freelance Fotographer

  • Send private message

8

Wednesday, April 25th 2012, 2:54pm

You've defined the showtext style as "tooltip"

as a possible workaround... could you define the showtime in that style to be really long?

The default time is only 0.1... so maybe it's working, but you just aren't seeing it?
hi, i'have the same problem. I would like to display fixed text under each hotspot and mapspot. What is it the fast way to get this result? i have many hotspots so...

is there an online pano example?