You are not logged in.

1

Wednesday, February 9th 2011, 3:44pm

Moving hotspots

Hallo,

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

Thanks a lot.

emel

2

Wednesday, February 9th 2011, 4:01pm

Hi,

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

best regards,
Klaus

Stoney

Trainee

Posts: 119

Location: Portland, Oregon

  • Send private message

3

Thursday, February 10th 2011, 11:30am

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

Friday, February 11th 2011, 11:30am

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

Friday, February 11th 2011, 1:59pm

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

Friday, February 11th 2011, 3:34pm

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

Friday, February 11th 2011, 4:19pm

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 has attached the following image:
  • google_line.jpg

8

Monday, February 14th 2011, 12:45pm

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.

Source code

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

or copy the value:

Source code

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


best regards,
Klaus

9

Wednesday, February 16th 2011, 2:23am

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

Friday, February 18th 2011, 12:14am

Hi, Gulsun!

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

May be you need to use plugin instead of hotspot?

11

Friday, February 18th 2011, 8:25pm

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.