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
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
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.
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:
https://krpano.com/krpano.html?pa…impleviewer.xml
best regards,
Klaus
Waouhh !!
Great !!!
Thanks Klaus
Awesome - Thanks guys!
!!!! that is what I have been wanting to see !!!!
How can I view the code you used to embed that into the tour ?
Hi,
yes, here is the code:
https://krpano.com/panos/hafen/hafen_simpleviewer.xml
first, there a two buttons, one to show and one to hide the gallery:
<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)
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
<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>
Display More
for hiding the gallery, it is first faded out, and then are the buttons
changed again, the logo is faded in...
<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>
Display More
but it would be also possible to do that much simpler,
e.g. just change "visible" for show and hide
best regards,
Klaus
Awesome !!!
KRPano is the best software I ever bought.
His posibilities never ends.
Congratulations Klaus
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
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.
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
Please help
Tuur
I also noticed that when you go back out of the car and try the simpleviewer... it acts strangely.
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
looks good.
what was the source of the problems?
Graydon
you need to add keep="true" also for the "gallery" plugin:
<plugin name="gallery" url="" visible="false" alpha="0" keep="true" />
cheers
tuur
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:
It is necessary to place in this part of a code:
<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>
Display More
Is any ideas?
Hi,
you can try to add this "center" direct when defining the <plugin>,
e.g.
or in the action with:
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
Well, thanks!
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.
Thanks
Don’t have an account yet? Register yourself now and be a part of our community!