Hallo,
How can I move the hotspots when I turn the camera?
Thanks a lot.
emel
Hallo,
How can I move the hotspots when I turn the camera?
Thanks a lot.
emel
Hi,
how do you mean that exactly?
the hotspots are moving automatically with the camera...
best regards,
Klaus
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.
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
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?
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?
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.
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.
or copy the value:
best regards,
Klaus
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
Hi, Gulsun!
Try: add(hotspot[hs1].rotate,view.hlookat, hotspot[hs1].rotate);
May be you need to use plugin instead of hotspot?
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.
Don’t have an account yet? Register yourself now and be a part of our community!