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.

jpdeglet69

Intermediate

  • "jpdeglet69" started this thread

Posts: 212

Location: France

Occupation: VR Maker and Document Management Expert

  • Send private message

1

Wednesday, January 12th 2011, 11:08am

Loadpano() always busy.

Hi,

I use Loadpano() actions, all excepted one, run correctly:

loadpano(map.xml, null, MERGE|KEEPALL);
wait(LOAD);

In this map.xml, I have defined only plugins like that
<krpano version="1.0.8">
<plugin keep="true" name="map4spt3" hview="0" vview="0" fovview="90" hcenter="" vcenter="" blingRepeat="false" visible="false"
url="tour0/graphics/spots/spot1.png" align="leftbottom" edge="center" x="10%" y="71%" parent="plgnmap" zorder="3"
onclick="loadmappano(d16);"
...
/>
</krpano>

with showlog(),
I get loadpano... busy... always busy... and plugins are never created...
(their parent, "plgnmap" is correctly created)
Best regards,
JPhD
VR-Guide®/Eleana CEO
https://vr-guide.online

jpdeglet69

Intermediate

  • "jpdeglet69" started this thread

Posts: 212

Location: France

Occupation: VR Maker and Document Management Expert

  • Send private message

2

Wednesday, January 12th 2011, 3:28pm

Klaus,

I've added a wait(10) before my call to loadpano(); and I got an error message :

"Fatal map0.xml - XML Parser error: unterminated element (#1096)"

I don't see what is missing in my xml...
Best regards,
JPhD
VR-Guide®/Eleana CEO
https://vr-guide.online

3

Wednesday, January 12th 2011, 4:11pm

Hi,

you will get a loadpano busy only when there is a loadpano call during the blending of a pano,
try - a wait(BLEND) before or after the loadpano to avoid that situation,
"Fatal map0.xml - XML Parser error: unterminated element (#1096)"

I don't see what is missing in my xml...
is the xml attribute closed?
open the xml direct in the browser to see the exact error position,

best regards,
Klaus

VN2009

Professional

Posts: 1,336

Location: Duluth MN

  • Send private message

4

Wednesday, January 12th 2011, 4:18pm

i use this for checking my xmls

http://www.w3schools.com/xml/xml_validator.asp

jpdeglet69

Intermediate

  • "jpdeglet69" started this thread

Posts: 212

Location: France

Occupation: VR Maker and Document Management Expert

  • Send private message

5

Wednesday, January 12th 2011, 5:49pm

Thanks a lot,

In fact the fatal error was due to </KRAPNO>...
and was not responsible of the busy state always present after he correction.

I will try wait(BLEND) before this loadpano() call.

BR
Best regards,
JPhD
VR-Guide®/Eleana CEO
https://vr-guide.online

jpdeglet69

Intermediate

  • "jpdeglet69" started this thread

Posts: 212

Location: France

Occupation: VR Maker and Document Management Expert

  • Send private message

6

Thursday, January 13th 2011, 10:28am

Klaus,

I follow this flow :
Main.xml : implementation for all actions and tour control to load dynamically
---- tour.xml : default data for shared variables, all maps with hotspots and radars declarations
---- language.xml : all styles and texts ressources
---- pano*.xml : images, with a variable which defines the map to used (load from loadpano(pano.xml, null, null, BLEND(1));
It's running well.

Because I manage several maps in a same tour, I try to implement

Main.xml : implementation for all actions and tour control to load dynamically
---- tour.xml : default data for shared variables
---- language.xml : all styles and texts ressources
---- pano*.xml : with a variable which defines the map to used (load from loadpano(pano.xml, null, null, BLEND(1));
-------- map.xml : only map with hotspots and radars declarations used by the active pano (loadpano(map.xml, null, MERGE);)

In this case, the map loadpano(map.xml, null, MERGE); implement the right map with hotspots and radar... (ok)
but clear the pano loaded just before and display a black screen with the map.

So, I suppose that MERGE option is applied only for plugin, hostspot,... and not for <image...>...</image>.
Am I right ?
Best regards,
JPhD
VR-Guide®/Eleana CEO
https://vr-guide.online

This post has been edited 1 times, last edit by "jpdeglet69" (Jan 13th 2011, 10:53am)


7

Thursday, January 13th 2011, 4:25pm

as far as I understand, when you use loadpano, it always replaces the image with whatever image is in the new xml. If you don't provide an image, it is blank. You probably need to add your map with an action instead of the loadpano command.

VN2009

Professional

Posts: 1,336

Location: Duluth MN

  • Send private message

8

Thursday, January 13th 2011, 4:33pm

you need to

loadpano(pano1.xml,null,MERGE,BLEND(2));

inside pano1.xml use

<include url="map.xml"/>

then you can use the spots and code on map.xml only in this pano.

jpdeglet69

Intermediate

  • "jpdeglet69" started this thread

Posts: 212

Location: France

Occupation: VR Maker and Document Management Expert

  • Send private message

9

Thursday, January 13th 2011, 9:05pm

you need to

loadpano(pano1.xml,null,MERGE,BLEND(2));

inside pano1.xml use

<include url="map.xml"/>

then you can use the spots and code on map.xml only in this pano.



Thanks a lot Jarredja and VN2009,

Include would be a solution,
but when successive panos use the same map with hotspots and radar, you load twice or more the same data for nothing.
So I prefer to implement dynamic loading to verify if it is necessary or not before to proceed.

At beginning I used include, my last "engine" version use only dynamic loading : more flexible and only required data are loaded.
Best regards,
JPhD
VR-Guide®/Eleana CEO
https://vr-guide.online