You are not logged in.

1

Monday, August 17th 2009, 1:21pm

hotspots

hello,
is there a plugin that will show the cursor co-ordinates ?
thanks

mick

2

Tuesday, August 18th 2009, 2:55pm

Hi,

do you mean the mouse cursor position - x/y?
or the position in the pano(sphere) - ath/atv?

best regards,
Klaus

VN2009

Professional

Posts: 1,336

Location: Duluth MN

  • Send private message

3

Tuesday, August 18th 2009, 4:11pm

i agree a plugin that would show the current ath and atv would be ideal for placing hotspots. currently i add the editior and zoom in as far as i can to where i want to place the hotspot and record the ath and atv.

4

Tuesday, August 18th 2009, 4:41pm

Hi,

but you could also use the editor plugin to "move" the hotspots to the right position?

anyway - here is such plugin:
cursorposition.zip

it displays the ath/atv at the current mouse position.

best regards,
Klaus

5

Friday, August 21st 2009, 12:00pm

excellent. thank you very much. *smile*

I think I saw somewhere that there is a "distorted hotspots" in the new version. What is that ? I am still looking for a "nice" way to show there is a hotspot.

regards

mick

6

Friday, August 21st 2009, 2:01pm

ok , found it.

- SZIKRA -

Beginner

Posts: 34

Location: Hungary, Szeged

  • Send private message

7

Sunday, August 23rd 2009, 12:48pm

That is realy great!!!

Can I a request?...

It will be perfect for me, if I click with the mouse on the screen, then the plugin can write theese coordinatas , in a txt, or xml file.
Then I will can reckon with theese.And I can measure the distance fron 2 panoramas..

Klaus! *smile*

Please... *rolleyes* *rolleyes* *rolleyes*

8

Tuesday, August 25th 2009, 11:26am

It will be perfect for me, if I click with the mouse on the screen, then the plugin can write theese coordinatas , in a txt, or xml file.
Then I will can reckon with theese.And I can measure the distance fron 2 panoramas..
Hi,

you could use the editor plugin
draw a polygonal hotspot and then watch the xml,
the point ath/atv values are the coordinations of the points

best regards,
Klaus

- SZIKRA -

Beginner

Posts: 34

Location: Hungary, Szeged

  • Send private message

9

Wednesday, August 26th 2009, 1:46pm

Thanks, but it is not good, for me.... *sad*

I can this, but the user (visitor) is not.

If the visitor select a point, and an other we will calculate a distance.

This I cant get forvard...

I dont no if you understand.. *huh*

- SZIKRA -

Beginner

Posts: 34

Location: Hungary, Szeged

  • Send private message

10

Wednesday, August 26th 2009, 2:25pm

Anyone else?

11

Wednesday, August 26th 2009, 2:35pm


It will be perfect for me, if I click with the mouse on the screen, then the plugin can write theese coordinatas , in a txt, or xml file.
Then I will can reckon with theese.And I can measure the distance fron 2 panoramas..
Hi,


I also had some thoughts about measuring distance in panoramas. To do this, we need two panoramic images. Knowing the exact distance between the two points from witch the two photos were taken, we just need the third point, to build a right triange and calculate the distance using pythagorean theorem.

Source code

1
 get(mouse.x) get(mouse.y) get(mouse.ath) get(mouse.atv) 


So it would be terrific if we could catch the coordinates of the (visitors) mouse pointer when clicked after an event (e.g. clicking a ruler button) and send it to a neat little script that would give us the desired results! *cool*

In my belief, this feature would widen horizons! ;-)

best regards


sanko

Graydon

Professional

Posts: 614

Location: Texas

Occupation: Industrial gas turbine services.

  • Send private message

12

Friday, August 28th 2009, 2:48am

I haven't looked at the plugin klaus provided... but if the coordinates were assigned to a variable... the variables could be passed to a javascript function that did some math and passed back to krpano as new variables that you could display.

13

Friday, August 28th 2009, 11:03am

So it would be terrific if we could catch the coordinates of the (visitors) mouse pointer when clicked after an event (e.g. clicking a ruler button) and send it to a neat little script that would give us the desired results! *cool*
Hi,

that could be already done with a small plugin or javascript code,

e.g.
here is a small plugin that makes the current mouse position accessible via javascript:
get mouse position
(note the next 1.0.8 beta 9 has this functionality (mouse.x / mouse.y) integrated)

and with the "screentosphere()" function you can convert this mouse coordinates
to spherical ath/atv coordinates,

e.g.
include the jsmouse.swf plugin in the xml

and do this in javascript:

Source code

1
2
3
4
5
6
7
8
9
10
var krpano = document.getElementById("krpanoSWFObject");
var mousex  = krpano.get("mouse.x");
var mousey  = krpano.get("mouse.y");

var hvs= krpano.get("screentosphere("+mousex  +","+mousey  +")");
var hva= hvs.split(",");

var ath= Number( hva[0] );
var atv= Number( hva[1] );
...


best regards,
Klaus

14

Friday, August 28th 2009, 11:30am

I have prepared an example: (+download)

http://krpano.com/examples/jsmouse/jsmouse.html

- SZIKRA -

Beginner

Posts: 34

Location: Hungary, Szeged

  • Send private message

15

Friday, August 28th 2009, 4:47pm

Thanks Klaus

dut I think the promlem is not this.

I can't get the mouse position (atv,ath...) only if somebody on click, on the screen!! *huh*

16

Wednesday, September 2nd 2009, 10:39am

dut I think the promlem is not this.

I can't get the mouse position (atv,ath...) only if somebody on click, on the screen!!
Hi,

the mouse position can be get anytime!
in timer internals, in onclick events, and ...

best regards,
Klaus

fef

Beginner

Posts: 6

Location: Luxemburg

  • Send private message

17

Tuesday, September 8th 2009, 8:37am

I have prepared an example: (+download)

http://krpano.com/examples/jsmouse/jsmouse.html
Morgen Klaus,
I download your examplefile. I can see the pano, but the mouscoordinates do not show up on the right side of the screen. *unsure*. Could you please check

Thanks

18

Tuesday, September 8th 2009, 10:49am

Hi,

do you test locally/offline?

in this case you need to change the flash security settings,
the javascript interface is disabled by default when running flash locally/offline,

see here:
http://krpano.com/docu/localaccess/

best regards,
Klaus

fef

Beginner

Posts: 6

Location: Luxemburg

  • Send private message

19

Wednesday, September 9th 2009, 3:24pm

Yes, I was offline.
Ok thanks, it's working now *rolleyes*

Regards
Frank

This post has been edited 1 times, last edit by "Frank" (Sep 10th 2009, 7:47pm)


20

Saturday, September 12th 2009, 12:27pm

Great ! ! !

A big help for hotspot and plugin in a tour *thumbsup*

Thanks a lot Klaus *thumbup*

Similar threads