You are not logged in.

1

Wednesday, November 17th 2010, 10:32am

path of loaded xml file

hello i have a problem
my directory
/REP KRPANOO
- krpano.xml
- pano3.xml
/REP PANO1
-pano1.xml
/REP PANO2
- pano2.xml
/REP XMLCOMUN
- com.xml

first pano load krpano.xml and include com.xml is ok

in my com.xml i have
onclick="loadscene('../pano3.xml', null, MERGE, BLEND(1));"
onclick="loadscene('../pano1/pano1.xml', null, MERGE, BLEND(1));"
onclick="loadscene('../pano2/pano2.xml', null, MERGE, BLEND(1));"

I have error

ERROR: loadscene() - scene "../pano.xml" not found
ERROR: loadscene() - scene "../pano1/pano1.xml" not found
ERROR: loadscene() - scene "../pano2/pano2.xml" not found

can help me, thanks

2

Wednesday, November 17th 2010, 11:05am

Hi,

theloadscene() action is for loading scenes - not for xml files!

for loading xml files use the loadpano() action,

best regards,
Klaus

3

Wednesday, November 17th 2010, 11:15am

thanks a lot,
it's works now

What is the difference between a load scene and a load pano ?

4

Wednesday, November 17th 2010, 12:00pm

Hi,

you can define <scene> tags in the xml which can contain a whole krpano structure
with pano, hotspots and so again (can been seen as 'embedded xml'),
and with loadscene this scene/pano will be loaded,

loadpano on the other side loads an external xml pano file,

best regards,
Klaus

5

Wednesday, November 17th 2010, 4:10pm

Sorry klaus i d'ont understand
you have an example

thanks

6

Wednesday, November 17th 2010, 4:19pm

Hi,
You can find some in the example directory of the downloaded krpano

7

Wednesday, November 17th 2010, 4:25pm

Hi,

right, have a look into the "examples/virtual-tours" folder,
all tours there are using scenes,

or here a small and very simple example:

Source code

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
<krpano onstart="loadscene(scene1);">

  <plugin name="logo" url="logo.png" align="rightbottom" keep="true" />

  <scene name="scene1">
    <image> 
      <sphere url="pano1.jpg" />
    </image>
    <hotspot name="spot1" url="spot.png" ath="0" atv="0" onclick="loadscene(scene2);" />
  </scene>

  <scene name="scene2">
    <image> 
      <sphere url="pano2.jpg" />
    </image>
    <hotspot name="spot1" url="spot.png" ath="0" atv="0" onclick="loadscene(scene1);" />
  </scene>

</krpano>


best regards,
Klaus

8

Wednesday, November 17th 2010, 5:17pm

good !! *smile*

best regards,

Similar threads