Sie sind nicht angemeldet.

1

Dienstag, 15. September 2009, 05:51

Multiple panoramas on combobox but listed in just one xml file

Not having a good day here

I recently put up a post regarding 'showing a title when the panorama loads' but now i can't work out how to create a virtual tour with 14 panoramas listed in a combobox but using only 1 xml file. I just realized that I've never done that with krpano and my last big tour was in fact with the FPP viewer. Don't know whether I'm coming or going with the different codes now.*confused*

Could anyone please point me in the direction of a demo if it's available that uses the combobox, multiple panoramas and 1 xml file?

Many thanks,

Andrew

2

Dienstag, 15. September 2009, 06:17

Hi Andrew,

Download krpano Flash Panorama Viewer 1.0.7 because in the example folder you will found a Combobox example....

The documentation of Combobox plugin: http://krpano.com/plugins/combobox/

Salut.

3

Dienstag, 15. September 2009, 13:32

Could anyone please point me in the direction of a demo if it's available that uses the combobox, multiple panoramas and 1 xml file?


Hi,

here is an example with multiple panos, a combobox and only one xml file:

http://krpano.com/examples/scenes-with-combobox/

download the whole example:
http://krpano.com/examples/scenes-with-c…th-combobox.zip

best regards,
Klaus

4

Mittwoch, 16. September 2009, 05:41

Thanks very much for the replies.

I've downloaded the demo and am testing. For some reason i seem to be having clashes with the existing navigation image plugins on my original xml file but early days yet ;-)

Andrew

5

Donnerstag, 22. Juli 2010, 13:29

Syntax change?

Hi Klaus,
ich habe dieses Posting entdeckt und mir dein Demo-file angesehen. Bei mir funktioniert jedoch der Aufruf nicht wie angegeben. Zwei Dinge habe ich bemerkt:
1.) Ich muss addiditem und selectiditem statt additem und selectitem verwenden. Hat sich zwischenzeitlich die Syntax geändert?
2.) Die aufgerufene action in der Scene bleibt wirkungslos, d.h. die Combobox wird nicht aktualisiert, wenn ich zB über einen Hotspot in die Scene gelange. Ich kann scheinbar nur Actions vor dem Laden der Scene aufrufen.

Anbei Auszüge aus dem Quelltext.

Vorab Danke :-)


Quellcode

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
<krpano version="1.0.8" onstart="action(start);" >

<!-- snip -->

<!-- combobox plugin -->
<plugin name="box" url="plugins/combobox.swf" preload="true"
keep="true"
align="lefttop" x="10" y="10" width="150"
blendmode="layer"
/>

<action name="start">
plugin[box].addIdItem(1, 'Bahn 1', loadscene(sc01a, null, MERGE, BLEND(1)); );
plugin[box].addIdItem(2, 'Bahn 2', loadscene(sc02a, null, MERGE, BLEND(1)); );
plugin[box].addIdItem(3, 'Bahn 3', loadscene(sc03a, null, MERGE, BLEND(1)); );
plugin[box].addIdItem(4, 'Bahn 4', loadscene(sc04a, null, MERGE, BLEND(1)); );

loadscene(sc01a, preview.url=JPEG/01a_preview.jpg, MERGE);
</action>

<!-- snip -->

<!-- Scene 4a -->

<scene name="sc04a" onstart="lookat(43,7,50); wait(LOAD); wait(1); showtext('[b][i]Bahn 4[/i][/b]', infostyle); lookto(-60,10,70,smooth(100,10,50))">

<action name="startscene">
plugin[box].selectiditem(4);
</action>

<view fovtype="HFOV" hlookat="-15" vlookat="-10" fov="90" fovmin="50" fovmax="120" />


<image type="CUBE" multires="true" tilesize="4000">
<level tiledimagewidth="2046" tiledimageheight="2046">
<left url="JPEG/04a_pano_l_%0v%0h.jpg" />
<front url="JPEG/04a_pano_f_%0v%0h.jpg" />
<right url="JPEG/04a_pano_r_%0v%0h.jpg" />
<back url="JPEG/04a_pano_b_%0v%0h.jpg" />
<up url="JPEG/04a_pano_u_%0v%0h.jpg" />
<down url="JPEG/04a_pano_d_%0v%0h.jpg" />
</level>

<!-- snip -->

6

Freitag, 23. Juli 2010, 08:35

Hi,
1.) Ich muss addiditem und selectiditem statt additem und selectitem verwenden. Hat sich zwischenzeitlich die Syntax geändert?
nein, die Syntax hat sich nicht geändert, die addiditem/selectiditem Funktionen gibt es zusätzlich um einen Eintrag per ID ansprechen zu können,


2.) Die aufgerufene action in der Scene bleibt wirkungslos, d.h. die Combobox wird nicht aktualisiert, wenn ich zB über einen Hotspot in die Scene gelange. Ich kann scheinbar nur Actions vor dem Laden der Scene aufrufen.
laut gepostetem Code wird die Action ja auch nicht aufgerufen
zum "onstart" der Scene noch "startscene();" hinzufügen,

Schöne Grüße,
Klaus

7

Freitag, 23. Juli 2010, 10:15

Hi Klaus,
alles korrekt - jetzt funzt es. Danke :-).

Schöne Grüße zurück ;-)
s.