Sie sind nicht angemeldet.

1

Samstag, 20. Dezember 2008, 17:32

flag ?

Hi,

I don't understand very much how "flag" is working for the loadpano function.

By defaut, it's none ? What does that mean ?

Are the actions of the 1st xml always defined in the second xml ?

If two xml have differents <memory> <network> <security> <textstyle> ..., what's the merge doing ?

Thanks !
VideoStitch, a video stitching engine / blog sur les visites virtuelles ( french ).

2

Montag, 22. Dezember 2008, 16:40

Hi,

if no flag was set, all settings, plugins from the current xml/pano are removed
(like loading/starting a completely new xml file)

with MERGE - every setting is kept, and only if a setting was also defined in the new xml file,
then the setting from the view xml is used (new settings/actions overwrite the old ones)

plugins and hotspots are only kept when their keep attribute is to "true"

with KEEPVIEW - all settings from the "view" node, like the current viewing direction and field of view are kept

KEEPPLUGINS and KEEPHOTSPOTS - can be used to keep all current loading plugins and hotspots,
plugins and hotspot in the new xml file are ignored,

all clear?

best regards,
Klaus

3

Dienstag, 23. Dezember 2008, 12:07

Thank you, more clear now !
VideoStitch, a video stitching engine / blog sur les visites virtuelles ( french ).

4

Dienstag, 23. Dezember 2008, 13:55

In fact, I have one more question related to this thread ...

With MERGE, the <action ...> are still available in the new pano ?

Thanks,
VideoStitch, a video stitching engine / blog sur les visites virtuelles ( french ).

5

Sonntag, 28. Dezember 2008, 18:46

Hi,

I've made few tests, I think there is a bug :

I have two pano, I make a onclick="loadpano..." on a plugin from the first to the second pano.

I've two tests : with no flag, and with "null"

in the second pano, I go in the editor / XML to see how it looks like. And each time, all the <action> and the <data> of the first pano are still present in the second one.

Regards,
VideoStitch, a video stitching engine / blog sur les visites virtuelles ( french ).

6

Sonntag, 28. Dezember 2008, 23:22

Hi,

sorry, I forgot to say:

<action> and <data> tags are always kept,
even if "null" or "MERGE" or any other setting

but if the new xml also defines a <action> or <data> with the same name,
the new one is used,

best regards,
Klaus

7

Samstag, 24. Januar 2009, 10:58

MERGE and options plugin

There is a problem with the MERGE flag and options plugin that i encountered and it worth investigating. It really took me a while to figure out why this is happening.

Quellcode

1
<plugin name="options" zorder="101" url="../../krpano/plugins/options.swf" />


I have a main.xml file that onstart() is loading a panorama xml using the MERGE flag.
The problem comes when in my main.xml file i add the options plugin without keep="true". For some reason the loading freezes.
The code line above is the only reference to the plugin.

If i add keep="true" it works like a charm. I am curios why it freezes. Normally if i remove keep="true" the plugin should've been eliminated on my first loadpano().
Perhaps there is a problem that i do loadpano() onstart.

8

Montag, 26. Januar 2009, 12:52

Hi,

which version are you using? (1.0.8 beta 5?)

I already know about this problem,
it happens, when loading a new xml file at the beginning, and a plugin (without keep) from
the first xml should be removed,
the problem was - the loading of this plugin itself was not finished, and this causes this error,

I have already fixed this problem, but I'm not sure if it was in the beta 5 or in the next beta 6?
so if it's not working with the beta 5, please wait for the next version

best regards,
Klaus

9

Montag, 26. Januar 2009, 13:57

I was using 1.0.7.
I will try with 1.0.8b5 and report back :)