I want to see several overlapping panoramic view before and after, which can switch to a slider.
Panoramas into different layers...
-
-
thanks! maybe in version 1.0.9.
best regards,
Klaus -
You can see an example in:
http://www.devalvr.com/panos/multipanos/index.html -
Hi,
theoretical that would be already possible by using distorted hotspots as cube faces,
but then limited to 2880x2880 pixels per cubeface...here a full example code:
Code
Display More<krpano onstart="start();"> <action name="addface"> addhotspot(%1); set(hotspot[%1].url, %2); set(hotspot[%1].ath, %3); set(hotspot[%1].atv, %4); set(hotspot[%1].width, 1000); set(hotspot[%1].height, 1000); set(hotspot[%1].distorted, true); set(hotspot[%1].details, 16); set(hotspot[%1].enabled, false); set(hotspot[%1].visible, false); set(hotspot[%1].alpha, 0.0); set(hotspot[%1].zorder, %1); </action> <action name="addcube"> addface(face_%1_F, %1_f.jpg, 0, 0); addface(face_%1_L, %1_l.jpg, -90, 0); addface(face_%1_R, %1_r.jpg, +90, 0); addface(face_%1_B, %1_b.jpg, +180, 0); addface(face_%1_Z, %1_u.jpg, 0, -90); addface(face_%1_N, %1_d.jpg, 0, +90); </action> <action name="checkvisible"> if(%1.alpha == 0.0, set(%1.visible,%2)); </action> <action name="tweencubealpha"> checkvisible(hotspot[face_%1_F],true); checkvisible(hotspot[face_%1_L],true); checkvisible(hotspot[face_%1_R],true); checkvisible(hotspot[face_%1_B],true); checkvisible(hotspot[face_%1_Z],true); checkvisible(hotspot[face_%1_N],true); tween(hotspot[face_%1_F].alpha, %2, 0.5, default, checkvisible(hotspot[face_%1_F],false) ); tween(hotspot[face_%1_L].alpha, %2, 0.5, default, checkvisible(hotspot[face_%1_L],false) ); tween(hotspot[face_%1_R].alpha, %2, 0.5, default, checkvisible(hotspot[face_%1_R],false) ); tween(hotspot[face_%1_B].alpha, %2, 0.5, default, checkvisible(hotspot[face_%1_B],false) ); tween(hotspot[face_%1_Z].alpha, %2, 0.5, default, checkvisible(hotspot[face_%1_Z],false) ); tween(hotspot[face_%1_N].alpha, %2, 0.5, default, checkvisible(hotspot[face_%1_N],false) ); </action> <action name="blendcubes"> sub(alpha2, 1.0, %3); tweencubealpha(%1, %3); tweencubealpha(%2, get(alpha2)); </action> <action name="start"> addcube(pano1); addcube(pano2); set(pano1alpha, 1.0); blendcubes(pano1, pano2, get(pano1alpha) ); set(textstyle[DEFAULT].showtime, 10); set(textstyle[DEFAULT].origin, center); showtext(press any key to blend to other pano); </action> <events onkeyup="switch(pano1alpha, 0.0, 1.0); blendcubes(pano1, pano2, get(pano1alpha) );" /> </krpano>
for this example you just need two cubical pano image files,
(e.g. pano1_l.jpg, pano1_f.jpg, pano1_r.jpg, pano1_b.jpg, pano1_u.jpg, pano1_d.jpg and pano2_l.jpg, pano2_f.jpg, pano2_r.jpg, pano2_b.jpg, pano2_u.jpg, pano2_d.jpg)best regards,
Klaus -
This is really a wonderful example and quite helpful even if I'm not sure I fully understand all of it's workings yet.
But, there is one thing that I would like to change that I can't figure out how to, perhaps it's a bug, perhaps it's just my lack of understanding - not sure.
When you use this code as is, the onkeyup event will not work until the "pano" or full cube hotspot has been moved at least a pixel or two. That is no onkeyup event is noted unless the mouse has moved the view.
Is this the expected behavior? I would really like to have the onkeyup event be recognized without having to move the view.
Regards,
Robert
-
Hi,
Is this the expected behavior? I would really like to have the onkeyup event be recognized without having to move the view
the reason for the behavior is that the flash object doesn't have the keyboard focus before clicking into/on it,
best regards,
Klaus -
I guess I'll start looking, but is there a way to get the keyboard focus without having to have the viewer click on the image?
UPDATE: Can't find anyway to do this with just XML or the actions or events I can find at least.
Regards,
Robert
-
Hi,
I guess I'll start looking, but is there a way to get the keyboard focus without having to have the viewer click on the image?
I'm also not sure yet, I think that must be done via javascript (if possible),
best regards,
Klaus -
Hello,
I think this is a wonderful example of how flexible and powerful krpano is. I hope you don't leave this technique buried here in the forums.
I found this thread purely by serendipitous accident, and Klaus' code solves a problem I've been thinking about for a long time.
What I have are two panoramas I shot in the winter and spring and wanted to effectively show the seasonal change. My first solution was to splice the panoramas side by side, making one 720-degrees wide, and then created a cylindrical QTVR for display. It worked but was not very satisfying.
I think I discovered my ideal solution in this thread....
Here's the seasonal change pano I created. This is just one page from a web site I'm updating to use krpano.
I think it works remarkably well. Especially so because I didn't plan ahead of time to try to do this; it was only while setting up the spring panorama shot that I decided I would try to match the winter scene.
Now if only I could get the two panos to match better than the manual tweaking I used....
Cheers,
Joe -
Hi,
Here's the seasonal change pano I created. This is just one page from a web site I'm updating to use krpano.
it's working and looking great!
best regards,
Klaus
Participate now!
Don’t have an account yet? Register yourself now and be a part of our community!