Sie sind nicht angemeldet.

1

Montag, 24. Oktober 2016, 14:31

Zoom Effect in linkedscene

Good Day All,

I am kinda stuck trying to add zoom to scene transition in linkedscene method.

Quellcode

1
tween(view.fov, 55, 2.0)



or

Quellcode

1
lookto(view.hlookat, 0, smooth(100, 50, 20))



I have tried adding the above lines of code individually to in vtourskin.xml to the part onclick="if(linkedscene,...."
But it doesn't seem to work. I want to modify the linkedscene and do not want to override it with custom loadscene in tour.xml.
Also zoomblend() does not have html5 support and I want to run this in webvr mode that is why I did not modify the blend function.


Can anyone assist me ?


Thanks,
Darmaniac

Beiträge: 770

Wohnort: Russian Federation

Beruf: Interpreting, Building virtual tours

  • Nachricht senden

2

Montag, 24. Oktober 2016, 15:59

Hi)

vtourskin.xml of the latest Krpano version supports 'linkedscene_lookat' parameter. Put it inside a hotspot to set startupview values when the scene is loaded from this spot. E.g.,

Quellcode

1
<hotspot name="spot1" style="skin_hotspotstyle" linkedscene="scene_DSC_8662_Panorama" linkedscene_lookat="10,20,50" />



Where 10 is hlookat, 20 is vlookat and 50 is FOV.
Regards,

Alexey

Tuur

Erleuchteter

Beiträge: 3 839

Wohnort: Netherlands

Beruf: Krpano custom coding / Virtual Tours / Photography / Musician / Recording engineer

  • Nachricht senden

3

Montag, 24. Oktober 2016, 16:00

Hi,

when you use an code editor, search for linkedscene.
Then you'll find this one for example:

Quellcode

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
	<action name="skin_hotspotstyle_click">
		if(linkedscene,
			if(linkedscene_lookat,
				txtsplit(linkedscene_lookat, ',', hs_lookat_h, hs_lookat_v, hs_lookat_fov);
			  );
			set(enabled, false);
			skin_hidetooltips();
			tween(depth|alpha|oy|rx, 4000|0.0|-50|-60, 0.5, default,
				skin_loadscene(get(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));
					delete(hs_lookat_h, hs_lookat_v, hs_lookat_fov);
				  );
				skin_updatescroll();
			  );
		  );
	</action>


this line

skin_loadscene(get(linkedscene), get(skin_settings.loadscene_blend));
should bring you further by changing the: get(skin_settings.loadscene_blend)

so change this for you needs or do something like BLEND(0.5) or else.

http://www.krpano.com/docu/actions/#loadscene

Hope it helps,
Tuur *thumbsup*

4

Donnerstag, 27. Oktober 2016, 13:53

Thanks for the swift replies Alexey and Tuur,

I had krpano version 1.19.5. Just got the latest one and tried your suggestions.

It is giving a zoom effect with default hotspots, but zooms a bit and loads the second scene and keeps the new fov in the second scene. I want to zoom into the second scene and start the second scene with the default fov. *confused*

Also I am using a great plugin for krpano from here:
http://www.robostitcher.com/Garrows-krpano


This look at feature doesn't seem to work with this plugin when I use hotspot - skin_hotspot_navigate and then linkedscene.

This is where I am trying to apply this feature of zooming into next view. *rolleyes*

Appreciate the help,
Darmaniac.

Beiträge: 770

Wohnort: Russian Federation

Beruf: Interpreting, Building virtual tours

  • Nachricht senden

5

Donnerstag, 27. Oktober 2016, 13:59

Hi)

Take a look at this example:

https://krpano.com/tours/corfu/blending-demo.html


Click 'zoomblend'. Maybe this is what you want to achieve?
Regards,

Alexey

6

Donnerstag, 27. Oktober 2016, 14:14

Hi Alexey,

Quite right thats kind of what I am looking for but zoom blend is not supported for html5 as far as I have read and my virtual tour will also have option for webvr which I think(not sure) requires html5.

How should I proceed also the linkedscene_lookat does not work with that plugin.

I am trying to emulate the google street view navigation and transition hotspot effect for custom virtual tour.

Thanks
Darmaniac

Beiträge: 770

Wohnort: Russian Federation

Beruf: Interpreting, Building virtual tours

  • Nachricht senden

7

Donnerstag, 27. Oktober 2016, 14:18

Zoomblend works both in Flash and in WebGL. Read here: https://krpano.com/docu/actions/#loadscene
Regards,

Alexey

8

Donnerstag, 27. Oktober 2016, 14:25

Ok let me try and get back to you on that. But there is still that plugin garrows which does not work with this function.

Thanks,
Darmaniac

Beiträge: 770

Wohnort: Russian Federation

Beruf: Interpreting, Building virtual tours

  • Nachricht senden

9

Donnerstag, 27. Oktober 2016, 14:29

And it seems that Zoomblend doesn't work in VR because FOV is restricted by this setting https://krpano.com/plugins/webvr/#mobilevr_lens_fov
Regards,

Alexey

10

Donnerstag, 3. November 2016, 14:11

Hi,

Sry for the delay, but I kind of worked out the problem somewhat by adding a lookto function followed by delayedcall to load the new scene. This I placed in the linked scene function that was being called.

I wish Krpano could somehow give provision for 3d movement during transition as mentioned here:

https://krpano.com/forum/wbb/index.php?p…&threadID=11407

Otherwise, krpano is very flexible to work with. *thumbsup*
Regards,

Datrmaniac