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: 159

Location: London

Occupation: Photographer

  • Send private message

1

Saturday, June 4th 2011, 10:30pm

How to display small thumbnail image with the onhover/onover on a polygon hotspot

Greetings all :)

I would like to show an info icon for some painting polygon hotspots, I previosly tried to do with graydons excellent code here

http://krpano.com/forum/wbb/index.php?pa…ight=#post26386

It works on image hotspots but not polygon hotspots :( - so I tried using the hotspot-onover-change code in the examples folder, and made a test and got it to work

http://bit.ly/gJuRWD

but because hotspots do not have an x and y value like plugins, I could not get to a uniform code I could use for many paintings (I got 400), hotspots have ath and atv which apply to panorama coord's, maybe there is some way to do + 15 atv and ath from the hotspot polygon center.

I hope this makes sense and I would be uber grateful if anybody has any solutions or good ideas on how i could do this for polygon hotspots.

Many thanks in advance for any help.

best wishes,

tom

Yomas

Intermediate

Posts: 190

Location: Anglet, France

  • Send private message

2

Monday, June 6th 2011, 2:03pm

Hi tommo77funk ^^
Have you solved your problem yet ?
I've flown over xml documentation about polygonal hotspots, maybe you can use the edge parameters to indicate
the origin of your hotspot...
But using lots of them will be binding...
And the main problem is that your hotspots won't be all the same size... so using +15atv is not going
to do the same effect for all...
Tricky one here!!! If you get a solution might interest me !!!
I'm going to search more my own and tell you if i get it to work ^^
Regards.
My website: www.eboovisite.com, See me also on www.Viewat.com, Facebook and Twitter

Yomas

Intermediate

Posts: 190

Location: Anglet, France

  • Send private message

3

Monday, June 6th 2011, 2:30pm

Hi again !!
Just to recomand you to use the style attribute for your hotspots ^^

Source code

1
2
3
4
5
<style name="style1" alpha="0.5" scale="0.5" ... />

<plugin  name="p1" ... style="style1" />
<plugin  name="p2" ... style="style1" />
<hotspot name="h1" ... style="style1" />


To dry the code cause it's hard to read in fact ^^
For your problem, have you tried something like :

Source code

1
2
3
4
5
<action name="show_over_png">
set(plugin[hover_image].parent,hotspot[%1]);
set(plugin[hover_image].ox, 50);
set(plugin[hover_image].oy, 50);
</action>


The ox value will reffer to your hotspot edge position, maybe could work...
Havn't tested it but will ^^
My website: www.eboovisite.com, See me also on www.Viewat.com, Facebook and Twitter

tommo77funk

Intermediate

  • "tommo77funk" started this thread

Posts: 159

Location: London

Occupation: Photographer

  • Send private message

4

Monday, June 6th 2011, 3:55pm

Hi Yomas,

Thanks so much for looking, advice and your reccomendation.

I have made a new example using styles *thumbup*

http://bit.ly/k9ZyZ7


The problem I am finding is a plugin just wont dipslay with a polygon hotspot in this way. A hotspot icon will display, but I need it to appear outside of the polygon area top right. I have experiemented with the edge settings and ox and oy but cant seem to get the icon to appear out of the polygon, so thats when i started to think about atv and ath settings.

I am mega grateful for any solutions or ideas, a tricky problem indeed *wacko*

Thanks and best wishes,

tom

Yomas

Intermediate

Posts: 190

Location: Anglet, France

  • Send private message

5

Tuesday, June 7th 2011, 1:16am

Hi !
You're welcome, it's always a pleasure to help ^^
For your problem, I'll take a further look tomorow but sure there's a solution !
(maybe you won't have to ask Klaus ;-) )
The worry is that I got the same thing to do and got it to work but I skipped it for a AS3 solution
and so lost that tricky code :'(
I'll keep you informed !!
PS: I went on your website, great job !!!
I loved the 3D stuff walking in a pano, can you tell me more about ? ( in private message if you want to preserve technic secret ^^ )
Also great aerial photography, using a drone or baloon ?
See ya !!
My website: www.eboovisite.com, See me also on www.Viewat.com, Facebook and Twitter

tommo77funk

Intermediate

  • "tommo77funk" started this thread

Posts: 159

Location: London

Occupation: Photographer

  • Send private message

6

Tuesday, June 7th 2011, 11:54am

Hey Yomas,

Thats really great news - THANK YOU for your help - I hope you manage to replicate the missing code and thanks so much for trying on my behalf. I am really looking forward to showing this tour when finished, as I have recieved some some great help on this forum since I started it (about 2 months ago), and it is nearly ready, just this last remaining request from the client I cant fullfill, so your help has been really appreciated - nice one *thumbup*

The 3d pano on my site, is quite a bit old and was made with realviz vtour (now autodesk I think) and SPi-V 3d (aldo's excellent viewer). Vtour interface was a bit erm time consuming and pernickety so I put it down along time ago. If I was to do anything like that now, I would have a look at some of the new 3d scanners, to do the job much easier. The aerial work is from helicopter or drone depending on heights needed and aviation laws.

thanks and best wishes,

tom

Yomas

Intermediate

Posts: 190

Location: Anglet, France

  • Send private message

7

Wednesday, June 8th 2011, 9:49am

Hi ^^
I'm trying to find the solution and I didn't remember it was so tricky ^^
A least there's a parameter I used and can't find wich one is...
I'm trying with the hotspot[name].getcenter(ath,atv) fonction but I'm not sure it works for polygonal hotspots...
Working on it ^^
Let you know if i find the answer, and if you got it first let me know too ^^
@++
My website: www.eboovisite.com, See me also on www.Viewat.com, Facebook and Twitter

Yomas

Intermediate

Posts: 190

Location: Anglet, France

  • Send private message

8

Saturday, July 2nd 2011, 11:07am

Up Up !!

Hi again !!
Havn't found yet !! In fact havn't got the time though :-/
Up Up Up Please for other to help !!
My website: www.eboovisite.com, See me also on www.Viewat.com, Facebook and Twitter

9

Saturday, July 2nd 2011, 2:34pm

Hi,

to get the x/y for the spot center (for image and polygonal hotspots) this code could be used:

Source code

1
2
hotspot[spotname].getcenter(spot_ath, spot_atv);
spheretoscreen(spot_ath,spot_atv, spot_x, spot_y);


best regards,
Klaus

Yomas

Intermediate

Posts: 190

Location: Anglet, France

  • Send private message

10

Thursday, July 7th 2011, 11:51am

Thanks Klaus !!
I was thinking of it in the previews post ^^
Hope it would help you tommo77funk !!
Post an example code when you've done in case others can use it ^^
If I find time I'll do it myself ;-)
See ya !
My website: www.eboovisite.com, See me also on www.Viewat.com, Facebook and Twitter