You are not logged in.

1

Wednesday, June 24th 2015, 12:26am

Noob question: Keeping the pano level when clicking an arrow hotspot...

Hi,

I created a multi resolution tour using the droplet, then I used the tour_editor.html to add a few arrows.

When an arrow is clicked, the pano zooms in towards the arrow. I would like to change that default behavior and still keep the zoom in action, but the pano should level itself towards 0 tilt.

Where do I start ? :)


Thanks!

Umalo

Professional

Posts: 1,051

Location: Osijek, Croatia, EU

  • Send private message

2

Wednesday, June 24th 2015, 9:50am

your arrows are skin_hotspotstyle style. Read this style definition. Instead of looktohotspot() in onclick attribute you can put what ever you want: e.g.
....lookto(0,0, 50,smooth(100,50,200));....

3

Wednesday, June 24th 2015, 10:16am

Thank you ! ;)

I was looking for a way to do it quicker, without manually defining coordinates, by taking into account the position of the hotspot, but leveling the pano towards 0° pitch.

The arrows are on the floor, in front of the door, but it's weird to zoom in on the hotspot and look down :)

Umalo

Professional

Posts: 1,051

Location: Osijek, Croatia, EU

  • Send private message

4

Wednesday, June 24th 2015, 1:45pm

If you are using Krpano 1.19pr2...
set(view_above_hotspot_atv,calc:atv-10); set(view_above_hotspot_ath,get(ath)); lookto(get(view_above_hotspot_ath),get(view_above_hotspot_atv), 50,smooth(100,50,200));
or
set(view_above_hotspot_ath,get(ath)); lookto(get(view_above_hotspot_ath),0, 50,smooth(100,50,200));

5

Wednesday, June 24th 2015, 8:56pm

Thank you, I'll try that as soon as I'll become more familiar with KRpano. 'cause right now I'm a bit overwhelmed :)