Sie sind nicht angemeldet.

1

Dienstag, 23. November 2010, 22:19

vtour link to xml

does not seem to be working for me all i see is a black screen. i want to use the vtour droplet to make the tiles and the thumbs i do not want to link to the .html or the .swf that it exports. i have a hotspot that links to the tour.xml file the droplet exports. i leave the tour.js file with the xml in the same directory for iphone use. why am i only seeing a black screen when linking to this xml?

if i change the vtour config file to embedlicenses=false then drop the source images on to it again i get things the way they used to be, however just changing that line i get the same thing, a black screen when clicking on the tour.html file.

embedlicenses=true - http://www.virtualnorthland.com/panos/te…edYES/tour.html
embedlicenses=false - http://www.virtualnorthland.com/panos/te…bedNO/tour.html

only difference between them is that one line of code - embedlicenses=XXXX

i want to link directly to the exported xml file anyone tried this ?

2

Mittwoch, 24. November 2010, 16:17

Hi,

here:
in this html file the [JS] placeholder was not replaced with the path of the .js file:

Zitat

<script src="[JS]"></script>

is the "htmltemplate_js" setting defined in the .config file?

best regards,
Klaus

3

Mittwoch, 24. November 2010, 16:24

yes - htmltemplate_js=html/swfkrpano_embedded_krpanojs.js

however is that why i cannot link directly to the exported xml? i want to load tour.xml not the swf or the html. i provided those links to show that something happens when changing that line. why do i only see black when linking to tour.xml from another hotspot ?

4

Mittwoch, 24. November 2010, 16:27

Hi,

how do you load or link to the tour.xml?

best regards,
Klaus

5

Mittwoch, 24. November 2010, 16:29

onclick="action(goground,l2,xmls/hotel_comfortsuites/tour.xml,l2)"

<action name="goground">

set(hotspot[nadir].visible,true);
set(plugin[heli].visible,true);
tween(plugin[heli].alpha,1,1);
plugin[map].pantospot(%1);
loadpano(%2,null,MERGE,BLEND(2));
plugin[map].activatespot(%3);
delayedcall(1, hide_hover_image(););

</action>

even if i move the tiles folder, tour.xml and tour.js into the root so they are not in a subfolder they I still see a black screen. I will PM you a link so you can see first hand.

6

Mittwoch, 24. November 2010, 16:55

Hi,

okay, the problem is, when there are other actions after the loadpano() call,
then the onstart() event of the loaded pano will be skipped and the actions
after the loadpano call were used instead,

and in the default onstart event of the pano the first scene was loaded,
you could call the startup action or direct loadscene in this case:

e.g.

Zitat

<action name="goground">

set(hotspot[nadir].visible,true);
set(plugin[heli].visible,true);
tween(plugin[heli].alpha,1,1);
plugin[map].pantospot(%1);
loadpano(%2,null,MERGE,BLEND(2));
startup();
plugin[map].activatespot(%3);
delayedcall(1, hide_hover_image(););

</action>
or:

Zitat

<action name="goground">

set(hotspot[nadir].visible,true);
set(plugin[heli].visible,true);
tween(plugin[heli].alpha,1,1);
plugin[map].pantospot(%1);
loadpano(%2,null,MERGE,BLEND(2));
loadscene(scene_lobby, null, MERGE);
plugin[map].activatespot(%3);
delayedcall(1, hide_hover_image(););

</action>
best regards,
Klaus

7

Mittwoch, 24. November 2010, 19:11

ok that got me a little further. something is still not right though. the thumbs build but i still only see black. i have to manually click on a thumb in order to load the scene. the scene should start loading before the thumbs build so it is skipping that part for some reason. i made a new action to test with so no other actions should be preventing anything from happening.

I click this hotspot -

<hotspot name="l6"
ath="-11.8308" atv=" 32.6559"
onover="show_hover_image(data:thesuites)"
onhover="showtext(The Suites Hotel)"
onout="hide_hover_image()"
style="lodging"
onclick="action(test,xmls/hotel_thesuites/tour.xml)"
devices="all" >
<point ath="-11.8308" atv=" 32.6559" />
<point ath=" -6.6913" atv=" 33.3356" />
<point ath=" -5.3096" atv=" 30.9634" />
<point ath="-10.2018" atv=" 30.4100" />
</hotspot>

which invokes this action -

<action name="test">
loadpano(%2,null,MERGE,BLEND(2));
</action>

this is the onstart for the tour.xml -

onstart="startup();"

here is the onstart action -

<action name="startup">
loadscene(scene_lobby, null, MERGE);
buildthumbs();
</action>

wierd thing is that if i change onstart="startup(); to onstart="loadscene(scene_lobby, null, MERGE); the thumbs still get built. how is that possible when they are part of the startup action? is there an internal call for an action named 'startup' ??? i dont see how the thumbs can be built with the change noted above.

8

Mittwoch, 24. November 2010, 20:16

ok the problem seems have something to do with trying to load an xml with scenes from one that is not using them at all. my first pano was created using 'make pano normal' droplet and I want to link to a tour created using 'make vtour normal' if i remove the scene tags it works. when they are there i see a black screen.

this one works - lobby.xml onclick="loadpano(xmls/hotel_thesuites/lobby.xml)"

<krpano version="1.0.8">

<preview url="lobby.tiles/preview.jpg" />

<image>
<left url="lobby.tiles/pano_l.jpg" />
<front url="lobby.tiles/pano_f.jpg" />
<right url="lobby.tiles/pano_r.jpg" />
<back url="lobby.tiles/pano_b.jpg" />
<up url="lobby.tiles/pano_u.jpg" />
<down url="lobby.tiles/pano_d.jpg" />

</image>

</krpano>

this one does not - lobbys.xml onclick="loadpano(xmls/hotel_thesuites/lobbys.xml)"

<krpano version="1.0.8" onstart="loadscene(scene_lobby);">

<scene name="scene_lobby" title="lobby" onstart="" thumburl="lobby.tiles/thumb.jpg">

<preview url="lobby.tiles/preview.jpg" />

<image>
<left url="lobby.tiles/pano_l.jpg" />
<front url="lobby.tiles/pano_f.jpg" />
<right url="lobby.tiles/pano_r.jpg" />
<back url="lobby.tiles/pano_b.jpg" />
<up url="lobby.tiles/pano_u.jpg" />
<down url="lobby.tiles/pano_d.jpg" />
</image>

</scene>

</krpano>

9

Mittwoch, 24. November 2010, 20:31

Hi VN2009,
okay, the problem is, when there are other actions after the loadpano() call,
then the onstart() event of the loaded pano will be skipped and the actions
after the loadpano call were used instead,
But it is not really clear to me for now... It seems like there is a bug with loadpano()... your second example have no actions after the loadpano()....so it should work, but the onstart of the loaded xml seems to not be executed...
Try this:
onclick="loadpano(xmls/hotel_thesuites/lobbys.xml); loadscene(scene_lobby);"
This seems to work...

SAlut.

10

Mittwoch, 24. November 2010, 21:15

found it. it is the BLEND command. when linking from a normal pano with no scenes to a tour with scenes the BLEND breaks things. without it the mini tours load fine.

loadpano(%2,null,MERGE); working
loadpano(%2,null,MERGE,BLEND(2)); not working

soon as I add blend back all i get is a black screen.

11

Donnerstag, 25. November 2010, 09:21

Hi,

right, this is a bug/issue,
currently it's not possible to make a second loadpano/loadscene call during the blending,
this is the problem here, in the log there will be a "loadpano() - busy" warning,

best regards,
Klaus

12

Mittwoch, 30. März 2011, 12:34

Hi,

has anyone found a solution or workaround for this problem?
it seems still not to be working in beta 14.

best regards
Michael

Ähnliche Themen