You are not logged in.

Dear visitor, welcome to krpano.com Forum. If this is your first visit here, please read the Help. It explains in detail how this page works. To use all features of this page, you should consider registering. Please use the registration form, to register here or read more information about the registration process. If you are already registered, please login here.

1

Monday, October 24th 2016, 2:31pm

Zoom Effect in linkedscene

Good Day All,

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

Source code

1
tween(view.fov, 55, 2.0)



or

Source code

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

Alexey Tkachenko

Professional

Posts: 760

Location: Sevastopol, Crimea, Russian Federation

Occupation: Interpreting, Building virtual tours

  • Send private message

2

Monday, October 24th 2016, 3:59pm

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.,

Source code

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

Sage

Posts: 3,387

Location: Netherlands

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

  • Send private message

3

Monday, October 24th 2016, 4:00pm

Hi,

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

Source code

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

Thursday, October 27th 2016, 1:53pm

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.

Alexey Tkachenko

Professional

Posts: 760

Location: Sevastopol, Crimea, Russian Federation

Occupation: Interpreting, Building virtual tours

  • Send private message

5

Thursday, October 27th 2016, 1:59pm

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

Thursday, October 27th 2016, 2:14pm

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

Alexey Tkachenko

Professional

Posts: 760

Location: Sevastopol, Crimea, Russian Federation

Occupation: Interpreting, Building virtual tours

  • Send private message

7

Thursday, October 27th 2016, 2:18pm

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

Alexey

8

Thursday, October 27th 2016, 2:25pm

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

Alexey Tkachenko

Professional

Posts: 760

Location: Sevastopol, Crimea, Russian Federation

Occupation: Interpreting, Building virtual tours

  • Send private message

9

Thursday, October 27th 2016, 2:29pm

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

Thursday, November 3rd 2016, 2:11pm

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