Sie sind nicht angemeldet.

Lieber Besucher, herzlich willkommen bei: krpano.com Forum. Falls dies Ihr erster Besuch auf dieser Seite ist, lesen Sie sich bitte die Hilfe durch. Dort wird Ihnen die Bedienung dieser Seite näher erläutert. Darüber hinaus sollten Sie sich registrieren, um alle Funktionen dieser Seite nutzen zu können. Benutzen Sie das Registrierungsformular, um sich zu registrieren oder informieren Sie sich ausführlich über den Registrierungsvorgang. Falls Sie sich bereits zu einem früheren Zeitpunkt registriert haben, können Sie sich hier anmelden.

autiomaa

Anfänger

  • »autiomaa« ist der Autor dieses Themas

Beiträge: 36

Wohnort: Finland

Beruf: Photographer, Retoucher, Web Developer

  • Nachricht senden

1

Freitag, 4. März 2011, 19:26

Loading of scenes in multi-file virtual tour using Actions

Having problems with multi-file virtual tour where there's tons of different scenes divided to ~20 different XML files.

Problems are related to loading the specific scene from still unloaded XML file. Have about 3–9 scenes per XML file and while had them initially working nicely by using onstart="loadscene(scene_scenename, null, MERGE);" in the beginning of each XML file, now that I have moved to implement bit different kind of navigation system, would want to get things working so that I could jump to different scenes using something like this:

Quellcode

1
2
3
4
5
6
7
8
9
10
<!-- Load XML file -->
<!-- Load scene from the loaded file -->
<action name="panorama">
	loadpano(%1); loadscene(%2,null,MERGE);"
</action>

<plugin name="navigation-testing"	style="style_navigation"
	x="0" y="180"
	onclick="panorama(area2.xml,scene_2_room_1);"
	/>


Haven't got this working and as I still have problems with it, thought of asking help. Getting blank screen initially when clicking plugin (in this case, generic image defined in project wide XML file). Second click usually goes to the scene as the XML file has been loaded to the browser's cache.

As I'm not that experienced with inner working of Actions and don't know enough about programming, I could be missing something essential but hoping that some of you could help a bit. It would be needed that the solution would work on both Flash and JavaScript -based versions of krpano.



Little bit of background:

Initially, every panorama was in it's own XML file but after release of krpano 1.0.8.12 I moved to using multiple scenes in one file. It was working nicely but the problem was the initial loading time of JavaScript -based krpano version (on iOS it was basically totally unusable until after long long wait before things had been loaded to the memory of the iOS device). Found solution for painfully slow load time of the presentation by dividing scenes to different files (each area in it's own file). Initially, things were working nicely as I found good way to link from file to next in my custom made bottom navigation and used onstart to jump to right start scene on each area. Problems started to come visible after I tried to get secondary navigation (map-based thing having tons of hotspots) to work: ability to jump to all locations was lost after moving from central file to area files. This is why I have been using quite bit of time trying to get things work in right way…