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

Saturday, January 4th 2020, 10:34am

Blending between panorama's

Hi there,

I want to make a diagonal blending between my panoramas but I am not getting it done :-( What do I need to ad? Thanks for your help!

Here is my xml:

------------------------------



<krpano version="1.16" title="" onstart="startup();">

<include url="skin/vtourskin.xml" />



- <!--

Automatic rotation / moving / zooming when there is no user-interaction in the pano

-->

<autorotate enabled="true" waittime="2" speed="3.0" />


- <!--

End Automatic rotation / moving / zooming when there is no user-interaction in the pano

-->
<plugin name="data" firstPanoHasBeenPlayed="false" introImageHasBeenPlayed="false" keep="true"/>
<!--
events: set the custom cursor on start and fullscreen events for button changes
-->
<events name="skin_events" onmousedown="set(autorotate.waittime, 5); delayedcall(1, set(event.onclick,null));" onenterfullscreen=" set(plugin[skin_btn_openfs].visible,false); set(plugin[skin_btn_closefs].visible,true); if(isandroid, set(plugin[android_skin_btn_openfs].visible,false); set(plugin[android_skin_btn_closefs].visible,true); );" onexitfullscreen=" set(plugin[skin_btn_openfs].visible,true); set(plugin[skin_btn_closefs].visible,false); if(isandroid, set(plugin[android_skin_btn_openfs].visible,true); set(plugin[android_skin_btn_closefs].visible,false); );" keep="true"/>
<events name="scene_events" keep="true" onxmlcomplete="firstpanoramaanimation();"/>

<action name="firstpanoramaanimation">
<!-- disable animation on flat pano -->
if(image.type EQ CYLINDER, set(plugin[data].firstPanoHasBeenPlayed,true); ); if(plugin[data].firstPanoHasBeenPlayed==false, copy(current_hlookat, view.hlookat); sub(min_current_hlookat, current_hlookat, 120); copy(view.hlookat, min_current_hlookat); lookto(get(current_hlookat),get(view.vlookat),get(view.fov),smooth(50,50,50),true,true); set(plugin[data].firstPanoHasBeenPlayed,true); );
</action>

<action name="startup">if(startscene === null, copy(startscene,scene[0].name)); loadscene(get(startscene), null, MERGE);</action>


-->






<!-- set optional skin logo url -->
<layer name="skin_logo" url="" scale="0.25" opened_onclick="openurl('...',_blank);" />


<action name="startup">
if(startscene === null, copy(startscene,scene[0].name));
loadscene(get(startscene), null, MERGE);
</action>

<scene name="scene_R0010030" title="" onstart="" thumburl="panos/R0010030.tiles/thumb.jpg" lat="" lng="" heading="">

<view hlookat="-136.307" vlookat="4.097" fovtype="MFOV" fov="120.000" maxpixelzoom="1.0" fovmin="70" fovmax="140" limitview="auto" />

<preview url="panos/R0010030.tiles/preview.jpg" />

<image type="CUBE" multires="true" tilesize="512">
<level tiledimagewidth="2304" tiledimageheight="2304">
<cube url="panos/R0010030.tiles/%s/l3/%v/l3_%s_%v_%h.jpg" />
</level>
<level tiledimagewidth="1152" tiledimageheight="1152">
<cube url="panos/R0010030.tiles/%s/l2/%v/l2_%s_%v_%h.jpg" />
</level>
<level tiledimagewidth="640" tiledimageheight="640">
<cube url="panos/R0010030.tiles/%s/l1/%v/l1_%s_%v_%h.jpg" />
</level>
</image>
<hotspot name="spot1" style="skin_hotspotstyle" ath="-146.953" atv="12.630" linkedscene="scene_r0010038_39_40_41_42_natural" />


</scene>

<scene name="scene_R0010038_39_40_41_42_Natural" title="" onstart="" thumburl="panos/R0010038_39_40_41_42_Natural.tiles/thumb.jpg" lat="" lng="" heading="">

<view hlookat="100.7" vlookat="0.0" fovtype="MFOV" fov="120" maxpixelzoom="1.0" fovmin="70" fovmax="140" limitview="auto" />

<preview url="panos/R0010038_39_40_41_42_Natural.tiles/preview.jpg" />

<image type="CUBE" prealign="0|61.7|0" multires="true" tilesize="512">
<level tiledimagewidth="2304" tiledimageheight="2304">
<cube url="panos/R0010038_39_40_41_42_Natural.tiles/%s/l3/%v/l3_%s_%v_%h.jpg" />
</level>
<level tiledimagewidth="1152" tiledimageheight="1152">
<cube url="panos/R0010038_39_40_41_42_Natural.tiles/%s/l2/%v/l2_%s_%v_%h.jpg" />
</level>
<level tiledimagewidth="640" tiledimageheight="640">
<cube url="panos/R0010038_39_40_41_42_Natural.tiles/%s/l1/%v/l1_%s_%v_%h.jpg" />
</level>
</image>
<hotspot name="spot1" style="skin_hotspotstyle" ath="-151.894" atv="27.568" linkedscene="scene_r0010030" />

</scene>


</krpano>

Tuur

Sage

Posts: 3,242

Location: Netherlands

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

  • Send private message

2

Saturday, January 4th 2020, 3:22pm

Hi,

have a look in your examples folder for the blending-demo.xml
and here: https://krpano.com/docu/actions/#loadpano.blend

should be something like: loadscene(scene_bla, null, MERGE, SLIDEBLEND(1.0, 135.0, 0.4, linear));

Hope it helps,
Tuur *thumbsup*
http://www.virtualtuur.com
Skype:studiotuur

This post has been edited 1 times, last edit by "Tuur" (Jan 4th 2020, 11:47pm)


vrTourSoft

Beginner

Posts: 41

Occupation: Software development

  • Send private message

3

Saturday, January 4th 2020, 4:35pm

In vrTourSoft you can select transition(blending) from drop-down list.
Separately for different types of loading panoramas.

Select the type of transition and you will immediately see it on the screen.

https://www.vrtoursoft.com/editors/tours…html#transition

vrTourSoft - standalone WYSIWYG editor and development environment for krpano
https://www.vrtoursoft.com/

4

Saturday, January 4th 2020, 9:02pm

@tuur where do I place this in the xml? @vrtoursoft I am working on MAC

Tuur

Sage

Posts: 3,242

Location: Netherlands

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

  • Send private message

5

Saturday, January 4th 2020, 11:46pm

have a look in vtourskin.xml
line 37-38-39

Tuur *thumbsup*
http://www.virtualtuur.com
Skype:studiotuur

6

Sunday, January 5th 2020, 9:56am

have a look in vtourskin.xml
line 37-38-39

Tuur *thumbsup*
Thanks for the toolbox (Dank voor de toolbox) Still don't know the tight code to make the blending. Waar plaats ik welke code om de overgang te maken?

Marcel
(Netherlands)

Tuur

Sage

Posts: 3,242

Location: Netherlands

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

  • Send private message

7

Sunday, January 5th 2020, 10:15am

Of course it depends on your specific code.
But..
You include the vtourskin.xml... look in the skin folder for it.
Study the docs for syntax and change your loadscene call.
In line 37-38-39 in vtourskin.xml you could find
the blend parameters. Change it there.
Tuur *thumbsup*
http://www.virtualtuur.com
Skype:studiotuur

8

Sunday, January 5th 2020, 10:42am

Maybe someone can help me out, I a getting mad, it's not working :-(
Here is the project, add the blending and reply the xml, THANKS!!!!!!.

https://fotomap.marcelwagenaar.com/s/87nXttpBEM00E3q

Tuur

Sage

Posts: 3,242

Location: Netherlands

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

  • Send private message

9

Sunday, January 5th 2020, 11:16am

tour.xml :

Line 38-39 are wrongly out quoted!
Line 55 could look like this: loadscene(get(startscene), null, MERGE,SLIDEBLEND(1.0, 135.0, 0.4, linear));
..like i wrote earlier.

vtourskin.xml :

in line 42-47-51-55-298-317-429-440 you could change loadscene(get(linkedscene),null,MERGE,BLEND(1));
change BLEND(1) like above: SLIDEBLEND(1.0, 135.0, 0.4, linear)

this should fix it i would guess.

have a look in your examples folder for the blending-demo.xml
and here: https://krpano.com/docu/actions/#loadpano.blend
...and learn!

Tuur *thumbsup*
http://www.virtualtuur.com
Skype:studiotuur

10

Monday, January 6th 2020, 7:36am

Thanks Tuur, blijft ingewikkeld :-)