Sie sind nicht angemeldet.

1

Mittwoch, 9. Februar 2011, 15:44

Moving hotspots

Hallo,

How can I move the hotspots when I turn the camera?

Thanks a lot.

emel

2

Mittwoch, 9. Februar 2011, 16:01

Hi,

how do you mean that exactly?
the hotspots are moving automatically with the camera...

best regards,
Klaus

3

Donnerstag, 10. Februar 2011, 11:30

Maybe he is referring to "plugins" which remain stationary with respect to the stage. "hotspots" are associated with a position or a polygon of the panorama.

4

Freitag, 11. Februar 2011, 11:30

Hi,

i am trying something like this,

set(hotspot[hs4].ath, view.hlookat);
set(hotspot[hs4].atv, view.vlookat);
trace(hotspot[hs4].ath);

but in trace i see as my hotspot[hs4].ath NaN. What is wrong?

Thank in advance

5

Freitag, 11. Februar 2011, 13:59

Hi, techno!

Hotspot is the object of panorama and it's coordinates (ath,atv - in pano system of coordinates) are independent from camera view. If you want to change them you should write action, which will do it.

In other hand, plugin is the object of screen (x,y - in screen system of coordinates) and plugin rotates with camera view.

What is the goal of your moving hotspot? Do you want to place image hotspot in pano without krpano editor plugin?

6

Freitag, 11. Februar 2011, 15:34

Hi
Kostya,

Thanks for answer! I try to make hotspot like google street view turn direction hotspot. They are always visible and they dont change any degrees by turning camera.

Do you have any suggestion?

7

Freitag, 11. Februar 2011, 16:19

Hi!

Do you mean white line with directions to the neighboring panos in Google Street View (like in picture)?

If yes, then, I think, it is very difficult by using standard hotspots and plugins. May be such feature is realized in Google Maps Plugin.
»Kostya« hat folgendes Bild angehängt:
  • google_line.jpg

8

Montag, 14. Februar 2011, 12:45

Hi,
set(hotspot[hs4].ath, view.hlookat);
set(hotspot[hs4].atv, view.vlookat);
trace(hotspot[hs4].ath);

but in trace i see as my hotspot[hs4].ath NaN. What is wrong?
your code would mean setting the ath value to the text "view.hlookat",
you need to use the get() function to get the value,
e.g.

Quellcode

1
set(hotspot[hs4].ath, get(view.hlookat));

or copy the value:

Quellcode

1
copy(hotspot[hs4].ath, view.hlookat);


best regards,
Klaus

9

Mittwoch, 16. Februar 2011, 02:23

Hi, I try something like this, if i change my view, then i rotate my arrow so it should look to the same point and always visible. Why does it not work?

set(hotspot[hs1].rotate, add(get(view.hlookat), (hotspot[hs1].rotate));


Thanks in advance

10

Freitag, 18. Februar 2011, 00:14

Hi, Gulsun!

Try: add(hotspot[hs1].rotate,view.hlookat, hotspot[hs1].rotate);

May be you need to use plugin instead of hotspot?

11

Freitag, 18. Februar 2011, 20:25

One note - there is a maximum value for attribute 'rotation'.

So, is you do simple: add(hotspot[hs1].rotate,view.hlookat, hotspot[hs1].rotate); - then there is moment, when your hotspot stops to rotate for next loading (to try it you may do full camera rotate and you'll see the freeze hotspot).

You should limit the result value.