Sie sind nicht angemeldet.

1

Sonntag, 24. Januar 2010, 20:17

How to "turn the light on"

I have a problem. Imagine there is a room with an interesting in-house lighting. I have made
two panoramas: with lights switched on and switched off. What I want to do is to have some
sort of switch that will "turn on the light" on the image/panorama.

I assume I have to ask the switch to load 'lights turned on panorama". The question is how to do
that transparently so the viewer viewing angle etc. etc. will be the unchanged.

Any suggestions/ideas ?

2

Sonntag, 24. Januar 2010, 22:24

create an icon using a plugin to make the transition. maybe use a light switch image. if that plugin was called 'switch' you could try this. create 2 actions lights on and lightsoff.

<action name="lightson">
loadpano(lightson.xml,null,KEEPALL,BLEND(2)); set(plugin[switch].rotate,180);
</action>

<action name="lightsoff">
loadpano(lightsoff.xml,null,KEEPALL,BLEND(2)); set(plugin[switch].rotate,0);
</action>

<plugin name="switch"
url="switch.jpg"
keep="true"
visible="true" enabled="true" handcursor="true"
zorder="5"
alpha="1.00" blendmode="normal"
smoothing="true"
origin="centerbottom" edge=""
x="0" y="10"
scale="1"
onclick="switch(lightson(), lightsoff());
/>



that command will load the new lights on image keeping all viewing and display settings over 2 seconds. it will also rotate the switch icon 180 degrees so it looks like the switch was actually flipped. the next time it is clicked it will reverse the actions. if 'set' does not work on the rotate try 'tween'

3

Montag, 25. Januar 2010, 23:09

The real problem is - how to synchronize the movement of two panoramas so that we find the same image centring after each switching?

4

Montag, 25. Januar 2010, 23:11

you dont need to sync anything the 2 panos are not loaded at the same time. you are viewing 1 pano. you click, new pano loads, nothing changes in the view you will still be looking at the same spot. As long as the panos are taken from the same place it will be a seemless transition.

5

Dienstag, 26. Januar 2010, 09:43

You mean, I shall be looking at the same direction? Next pano loads with it's own, but the same original image settings. If the first pano was moved, the second will not be synchronized.

6

Dienstag, 26. Januar 2010, 13:46

I had the same problem here (press the magic button ;-)), which was discussded here

I managed it by annoying manual work. It is still far away from being perfect as I just wasn't in the mood to finish it. Aligning the two panos in my stitchingsoftware wasn't accurately enough. Best thing to handle this would be a photoshop plugin which allows perfect congruency by adjusting the distortion of the stitched, flattend panorama when moving it.
0100011101101100011001010110100101100011 0110100000100000011010110110110001100001 0111010001110011011000110110100001110100 0110010101110100001011000010000001001010 0111010101101110011001110110010100101110 0010000001000101011000110110100001110100 0010000001101010011001010111010001111010 0111010000101110

7

Dienstag, 26. Januar 2010, 20:55

OK Dr; Schnekem ! Your example, even “imperfect “, is exactly what we (Raulo and me) were looking for!

We didn't realize that krpano can load next pano with polar coordinates of centering different than original. So, the response was inside the code of VN2009 :
load(nextpano.xml,null,KEEPALL);

I replaced KEEPALL by KEEPVIEW, because it's action is more selective.
Thank you for your help !

Your problem Dr. Schnekem, may be simply resolved with Autopano Pro. Two panoramas has to be stitched together. Autopano will find the same control points for each panorama, and will render every pano distinctively (by group). This technique is normally used for bracketed panoramas.

8

Mittwoch, 27. Januar 2010, 03:10

KEEPALL did not retain the view? HMMM i thought it did if KEEEPVIEW works i guess it is not included in KEEPALL. may bad but at least you got it!

9

Mittwoch, 27. Januar 2010, 03:15

VN2009,

I read Hub's statement to say that keepall did as he wished it to, he just didn't need everything that was kept. Whereas, the keepview was exactly what he was looking for.


Jarredja

10

Mittwoch, 27. Januar 2010, 17:57

THX Hub, VN2009 and Dr. Schnekem
and here is an real life example. please click on 360 logo.

www.panoramy360stopni.pl/rozne/oswietlenie/1.html