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.

nelk

Intermediate

  • "nelk" started this thread

Posts: 358

Location: Paris

  • Send private message

1

Saturday, December 20th 2008, 5:32pm

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

Monday, December 22nd 2008, 4:40pm

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

nelk

Intermediate

  • "nelk" started this thread

Posts: 358

Location: Paris

  • Send private message

3

Tuesday, December 23rd 2008, 12:07pm

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

nelk

Intermediate

  • "nelk" started this thread

Posts: 358

Location: Paris

  • Send private message

4

Tuesday, December 23rd 2008, 1:55pm

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 ).

nelk

Intermediate

  • "nelk" started this thread

Posts: 358

Location: Paris

  • Send private message

5

Sunday, December 28th 2008, 6:46pm

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

Sunday, December 28th 2008, 11:22pm

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

Saturday, January 24th 2009, 10:58am

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.

Source code

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

Monday, January 26th 2009, 12:52pm

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

Monday, January 26th 2009, 1:57pm

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