You are not logged in.

1

Sunday, January 24th 2010, 8:17pm

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 ?

VN2009

Professional

Posts: 1,336

Location: Duluth MN

  • Send private message

2

Sunday, January 24th 2010, 10:24pm

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'

hub

Trainee

Posts: 118

Location: Annecy, France

  • Send private message

3

Monday, January 25th 2010, 11:09pm

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

VN2009

Professional

Posts: 1,336

Location: Duluth MN

  • Send private message

4

Monday, January 25th 2010, 11:11pm

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.

hub

Trainee

Posts: 118

Location: Annecy, France

  • Send private message

5

Tuesday, January 26th 2010, 9:43am

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

Tuesday, January 26th 2010, 1:46pm

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

hub

Trainee

Posts: 118

Location: Annecy, France

  • Send private message

7

Tuesday, January 26th 2010, 8:55pm

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.

VN2009

Professional

Posts: 1,336

Location: Duluth MN

  • Send private message

8

Wednesday, January 27th 2010, 3:10am

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

Wednesday, January 27th 2010, 3:15am

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

Wednesday, January 27th 2010, 5:57pm

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