Sie sind nicht angemeldet.

1

Freitag, 7. August 2020, 11:49

VTOUR: lookathotspot

Hi,
I´m using the latest krpano version and a default vtour. Is it possible to lookat the hotspot (lookathotspot) when clicking the hotspot:
so click on hotspot:
1. zoom to hotspot (ath/atv/fov)
2. blend to linkedscene

best,
Marc

2

Freitag, 7. August 2020, 17:44

Hi, doesn't this work? looktohotspot

3

Samstag, 8. August 2020, 10:42

yes but I don´t know how to implement it in vtourskin.xml:

Quellcode

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
<action name="skin_hotspotstyle_click" scope="local">
		if(caller.linkedscene,
			copy(hs_linkedscene, caller.linkedscene);
			
			looktohotspot(.....);
			
			if(caller.linkedscene_lookat, txtsplit(caller.linkedscene_lookat, ',', hs_lookat_h, hs_lookat_v, hs_lookat_fov); );
			set(caller.enabled, false);
			skin_hidetooltips();
			tween(caller.depth|caller.alpha|caller.oy|caller.rx, 4000|0.0|-50|-60, 0.5, default,
				skin_loadscene(get(hs_linkedscene), get(skin_settings.loadscene_blend));
				if(hs_lookat_h !== null, skin_lookat(get(hs_lookat_h), get(hs_lookat_v), get(hs_lookat_fov)); );
				skin_updatescroll();
			);
		);
	</action>

4

Samstag, 8. August 2020, 11:18

For example, add the style to "onclick" - looktohotspot(get(name), 25, smooth());

Quellcode

1
2
3
4
5
6
7
8
9
10
11
12
	<!-- skin_hotspotstyle - style for the hotspots -->
	<style name="skin_hotspotstyle" url="vtourskin_hotspot.png" edge="top" distorted="true"
	       tooltip=""
	       linkedscene=""
	       linkedscene_lookat=""
	       onclick="looktohotspot(get(name), 25, smooth()); skin_hotspotstyle_click();"
	       depth="1000"
	       scale="0.5"
	       onover="tween(scale,0.55);"
	       onout="tween(scale,0.5);"
	       onloaded="skin_hotspotstyle_setup();"
	       />

5

Montag, 10. August 2020, 16:09

perfect thanks! and how to set fov for the next scene to normal after zooming in with "looktohotspot"? I´m using keepview