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.

1

Wednesday, January 21st 2009, 4:35am

Is there a "drop-in" gallery that can be used with KRPano?

Something like one of the galleries at flashden... it seems like anything that is XML driven will not work when loaded within KRPano... is that true? Is there a gallery that WILL work? Something other than the krpano gallery example...?

TIA - Blake

Zephyr

Professional

Posts: 969

Location: Netherlands

Occupation: Web developer

  • Send private message

2

Wednesday, January 21st 2009, 3:47pm

With xml driven galleries you have to check the pathing. For instance your gallery is in the subfolder /gallery and krpano.swf is in the root. Then the xml stearing the gallery should be in the root and not in the /gallery folder. An interface i'm working on has a xml file, remote db connection, remote flashvideo's. So a gallery should be easy.

I can't however promise if something from flashden works. It has to be atleast Flash 9 (CS3) written in actionscript 3, and you should be allowed to edit the source (the FLA) to make it fit krpano.
3d childrens game using krpano Game
Minify your xml with my krpano XML Compressor
Krpano XML Parsing Error Checklist
Available for hire (krpano xml, javascript, actionscript, flash, php and ipad plugins).

3

Wednesday, January 21st 2009, 8:01pm

Hi,

right! it depends how the gallery checks the paths, in the most cases the paths are
relative to the html file, if you respect this, it should work,

it tested successfully the simpleviewer gallery,

here is a example - click on the "show/hide simpleviewer gallery" button:

http://krpano.com/krpano.html?pano=panos…impleviewer.xml

best regards,
Klaus

4

Wednesday, January 21st 2009, 9:24pm

Waouhh !!

Great !!!

Thanks Klaus ;-)

5

Thursday, January 22nd 2009, 2:39am

Awesome - Thanks guys!

Virtual Northland

Professional

Posts: 1,334

Location: Duluth MN

  • Send private message

6

Thursday, January 22nd 2009, 4:20am

!!!! that is what I have been wanting to see !!!!



How can I view the code you used to embed that into the tour ?

7

Thursday, January 22nd 2009, 3:40pm

Hi,

yes, here is the code:
http://krpano.com/panos/hafen/hafen_simpleviewer.xml

first, there a two buttons, one to show and one to hide the gallery:

Source code

1
2
<plugin name="showgallery" url="showgallery.png" autopos="bottom,0,20" visible="true"  alpha="1" onclick="action(showgallery);" />
<plugin name="hidegallery" url="hidegallery.png" autopos="bottom,0,20" visible="false" alpha="1" onclick="action(hidegallery);" />


then there is a "empty", invisible plugin, to avoid loading the gallery images on start
(but it would be also possible to set the url to imagegallaries swf at start)

Source code

1
<plugin name="gallery" url="" visible="false" alpha="0" />


now the action to show the gallery:
1. first freezeview() was called to stop the pano rendering (performance improve)
2. then my logo is faded out
3. the show/hide buttons are faded out and in
4. then the "url" is set to simpleviewer.swf?xmlDataPath=panos/hafen/gallery.xml
(now the plugin loads this url)
5. finally it is set to visible, and faded in

Source code

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
<action name="showgallery">
    freezeview(true);
    tween(plugin[logo].alpha,0,distance(1,0.15),,set(plugin[logo].visible,false));

    set(plugin[showgallery].enable,false);
    tween(plugin[showgallery].alpha,0,distance(1,0.15),,set(plugin[showgallery].visible,false));

    set(plugin[hidegallery].enable,true);
    set(plugin[hidegallery].visible,true);
    tween(plugin[hidegallery].alpha,1,distance(1,0.15));

    set(plugin[gallery].url,simpleviewer.swf?xmlDataPath=panos/hafen/gallery.xml);

    set(plugin[gallery].visible,true);
    tween(plugin[gallery].alpha,1,distance(1,0.15));
</action>



for hiding the gallery, it is first faded out, and then are the buttons
changed again, the logo is faded in...

Source code

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
<action name="hidegallery">
    tween(plugin[gallery].alpha,0,distance(1,0.15),,action(closegallery));
</action>

<action name="closegallery">
    set(plugin[gallery].visible,false);

    freezeview(false);

    set(plugin[logo].visible,true);
    tween(plugin[logo].alpha,1,distance(1,0.15));

    set(plugin[hidegallery].enable,false);
    tween(plugin[hidegallery].alpha,0,distance(1,0.15),,set(plugin[hidegallery].visible,false));

    set(plugin[showgallery].enable,true);
    set(plugin[showgallery].visible,true);
    tween(plugin[showgallery].alpha,1,distance(1,0.15));
</action>


but it would be also possible to do that much simpler,
e.g. just change "visible" for show and hide

best regards,
Klaus

8

Friday, January 23rd 2009, 3:34pm

Awesome !!!

KRPano is the best software I ever bought.
His posibilities never ends.

Congratulations Klaus

Tuur

Master

Posts: 2,415

Location: Netherlands

Occupation: Virtual Tours / Photography / Musician / Recording engineer

  • Send private message

9

Saturday, January 24th 2009, 1:48am

yo Klaus,

i've implented the Tiltviewer... my logo disapears, the pano doesn't work... a as it should.. but the viewer doesn't show...

http://www.studiotuur.nl/Helfferich/tour.html

( i took away the button !! because it doesn't work)

will you check my code??

Sorry i'm just dutch ;->

Thanx

Tuur *thumbsup*

Graydon

Professional

Posts: 614

Location: Texas

Occupation: Industrial gas turbine services.

  • Send private message

10

Saturday, January 24th 2009, 3:01am

I've been playing with the tiltviewer as well... and have not had much luck.

I'm guessing here... but I think there are significant differences in tiltviewer and simpleviewer that make implementing tiltviewer more difficult.

Looking at your xml file... you tried using tiltviewer.swf?xmlDataPath... where tiltviewer uses the flash var xmlURL to set the path... plus a whole bunch of other flash vars.

I've tried with very limited success in using tiltviewer... with the primary issue being that when embedded as a plugin I couldn't get tiltviewer to recognize the flash vars passed after the ? in the url string.

I've also had trouble setting basic items like the width / height and placing it via the plugin attributes.

It's been very frustrating. *confused*

Tuur

Master

Posts: 2,415

Location: Netherlands

Occupation: Virtual Tours / Photography / Musician / Recording engineer

  • Send private message

11

Saturday, January 24th 2009, 5:30pm

yo people, i've working the simple viewer now..

http://www.studiotuur.nl/Helfferich/tour.html

but when i go in the car it doesn't work..
(i've put keep true in the plugin... that helped to keep the camera logo but the viewer doesn't show
*thumbsup*

Please help

Tuur

Graydon

Professional

Posts: 614

Location: Texas

Occupation: Industrial gas turbine services.

  • Send private message

12

Saturday, January 24th 2009, 5:40pm

I also noticed that when you go back out of the car and try the simpleviewer... it acts strangely.

Tuur

Master

Posts: 2,415

Location: Netherlands

Occupation: Virtual Tours / Photography / Musician / Recording engineer

  • Send private message

13

Saturday, January 24th 2009, 5:43pm

o and when i go back from the car to the showroom it doesn't work aswell, also my cursor functions in the viewer don't work when fullscreen..

Thanx

Tuur *thumbsup*

Tuur

Master

Posts: 2,415

Location: Netherlands

Occupation: Virtual Tours / Photography / Musician / Recording engineer

  • Send private message

Graydon

Professional

Posts: 614

Location: Texas

Occupation: Industrial gas turbine services.

  • Send private message

15

Monday, January 26th 2009, 12:27am

looks good.

what was the source of the problems?

Graydon

Tuur

Master

Posts: 2,415

Location: Netherlands

Occupation: Virtual Tours / Photography / Musician / Recording engineer

  • Send private message

16

Monday, January 26th 2009, 12:30am

you need to add keep="true" also for the "gallery" plugin:

<plugin name="gallery" url="" visible="false" alpha="0" keep="true" />


cheers

tuur

Mr.nOGot'

Beginner

Posts: 16

Location: Russian Federation>Krasnoyarsk

  • Send private message

17

Tuesday, January 27th 2009, 12:26pm

Where in code XML it is necessary to specify position of a swf-file for an in the panorama centre, not dependent on the sizes of gallery or a swf-file? (At use not simpleviewer)
In my attempts, external swf the file position only left top.

I think that:

Source code

1
align="center"
It is necessary to place in this part of a code:

Source code

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
<action name="showgallery">		
                freezeview(true);
		tween(plugin[logo].alpha,0,distance(1,0.15),,set(plugin[logo].visible,false));
		
		set(plugin[showgallery].enable,false);
		tween(plugin[showgallery].alpha,0,distance(1,0.15),,set(plugin[showgallery].visible,false));
		
		set(plugin[hidegallery].enable,true);
		set(plugin[hidegallery].visible,true);
		tween(plugin[hidegallery].alpha,1,distance(1,0.15));
		
		set(plugin[gallery].url,images.swf?xmlDataPath=images.xml);
		
		set(plugin[gallery].visible,true);
		tween(plugin[gallery].alpha,1,distance(1,0.15));
	</action>

Is any ideas? *confused*

18

Tuesday, January 27th 2009, 10:16pm

Hi,

you can try to add this "center" direct when defining the <plugin>,

e.g.

Source code

1
<plugin name="gallery" align="center" ... />


or in the action with:

Source code

1
set(plugin[gallery].align,center);


but this will only work when the size of the included swf could be measured,
this depends how the flash app handles it own size/position on the stage,
it's not always possible!

best regards,
Klaus

Mr.nOGot'

Beginner

Posts: 16

Location: Russian Federation>Krasnoyarsk

  • Send private message

19

Wednesday, January 28th 2009, 8:21am

Well, thanks! *rolleyes*

panographer

Beginner

Posts: 9

Location: San Jose, California

  • Send private message

20

Sunday, February 15th 2009, 8:00pm

Newbie need help on sample krpano with simpleviewer

I am learning krpano syntax and xml by looking at the actual code. Can anyone make available of codes of xml, html, images using with simpleviewer for newbie. *question*
Thanks