Sie sind nicht angemeldet.

1

Montag, 11. November 2013, 17:04

Change between Multires images and keep zoom and position

Hi. I have create 2 gigapixel images with MAKE PANO (MULTIRES) droplet of krpanotools 1.16.2. It was Flat images.
I want to change between one and another. I create a button and assign it the loadpano() action to the second image .xml.
But I want to keep the zoom level and the position.
How can I do it? I´ll try using KEEPVIEW option but it doesn´t works.

Quellcode

1
2
3
<action name="action0">		
		loadpano(pano2.xml, KEEPVIEW );		
</action>


THX

Taurus

Schüler

Beiträge: 140

Wohnort: Belarus

Beruf: photographer & virtual tour developer

  • Nachricht senden

2

Montag, 11. November 2013, 19:12

right to do so

Quellcode

1
2
<action name="act1" >  act1_next(pano2.xml,get(view.hlookat),get(view.vlookat),get(view.fov));</action>
<action name="act1_next" >  loadpano(%1,null,merge,blend(1));  loadscene(get(scene[0].name),view.hlookat=%2&amp;view.vlookat=%3&amp;view.fov=%4,merge,blend(1));</action>

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

for such transitions is better to use loadscene, unstead loadpano
for the preparation of the tour should use a droplet MAKE VTOUR (MULTIRES) droplet

code to transition to scene "scene_pano2" will be about the

Quellcode

1
2
<action name="act1" >  act1_next(scene_pano2,get(view.hlookat),get(view.vlookat),get(view.fov));</action>
<action name="act1_next" >   loadscene(%1,view.hlookat=%2&amp;view.vlookat=%3&amp;view.fov=%4,merge,blend(1));</action>
--
in order to comply the word with the affairs, you need to keep quiet and do nothing!

Virtual tour Gomel
Virtual tour
Virtual tour
Elbrus
...

Windows 10x64 & krpano 1.20

3

Montag, 11. November 2013, 20:38

THX it works *g* .
I still have somo problems but it changes in the same place and zoom.

Thx

4

Dienstag, 12. November 2013, 18:17

Hi Taurus.
The zoom works OK, it keep the zoom values, but the position values reset to the initial.

You can test it here www.virturista.com/testgiga/
The button with the ON change between gigapan images.

I use the next code:

Quellcode

1
2
3
4
5
6
7
8
9
10
11
<plugin name="icono_apagar" 
    	url="icono.png" 
    	align="rightbottom"
    	x="500"
    	y="100"
		onclick="action(act1);"
    	/>
	
	
<action name="act1" >  act1_next(1.xml,get(view.hlookat),get(view.vlookat),get(view.fov));</action>
<action name="act1_next" >  loadpano(%1,null,merge,blend(1));  loadscene(get(scene[0].name),view.hlookat=%2&amp;view.vlookat=%3&amp;view.fov=%4,merge,blend(1));</action>	


¿Can you help me? THX *thumbsup*

5

Mittwoch, 13. November 2013, 18:23

I tried with vtour generated pano and works OK.
THX *g*