Sie sind nicht angemeldet.

jpdeglet69

Fortgeschrittener

  • »jpdeglet69« ist der Autor dieses Themas

Beiträge: 215

Wohnort: France

Beruf: VR Maker and Document Management Expert

  • Nachricht senden

1

Mittwoch, 12. Januar 2011, 11:08

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://eleana.online

jpdeglet69

Fortgeschrittener

  • »jpdeglet69« ist der Autor dieses Themas

Beiträge: 215

Wohnort: France

Beruf: VR Maker and Document Management Expert

  • Nachricht senden

2

Mittwoch, 12. Januar 2011, 15:28

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://eleana.online

3

Mittwoch, 12. Januar 2011, 16:11

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

4

Mittwoch, 12. Januar 2011, 16:18

i use this for checking my xmls

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

jpdeglet69

Fortgeschrittener

  • »jpdeglet69« ist der Autor dieses Themas

Beiträge: 215

Wohnort: France

Beruf: VR Maker and Document Management Expert

  • Nachricht senden

5

Mittwoch, 12. Januar 2011, 17:49

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://eleana.online

jpdeglet69

Fortgeschrittener

  • »jpdeglet69« ist der Autor dieses Themas

Beiträge: 215

Wohnort: France

Beruf: VR Maker and Document Management Expert

  • Nachricht senden

6

Donnerstag, 13. Januar 2011, 10:28

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://eleana.online

Dieser Beitrag wurde bereits 1 mal editiert, zuletzt von »jpdeglet69« (13. Januar 2011, 10:53)


7

Donnerstag, 13. Januar 2011, 16:25

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.

8

Donnerstag, 13. Januar 2011, 16:33

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

Fortgeschrittener

  • »jpdeglet69« ist der Autor dieses Themas

Beiträge: 215

Wohnort: France

Beruf: VR Maker and Document Management Expert

  • Nachricht senden

9

Donnerstag, 13. Januar 2011, 21:05

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://eleana.online