I'm trying to do something close to the synchronization (https://krpano.com/examples/108b9…syncscreen.html) but that both panoramas move as in a mirror.
The idea is that the source images would be mirror, and I want to move in an inverted way, as in a mirror, ie when the right one moves to the left, the left one moves to the right. Thus, in the contact zone of both scenarios would see the same thing.
I hope I have explained. Could anyone help me?
Synchronizing 2 mirror panoramas
-
-
I did download the krpano package where the examples are included.
I took the splitscreen examplehttps://krpano.com/examples/108b9…plitscreen.html
and editing the splitscreen.html file on exact 2 line I could produce the effect you described:
Quotefunction sync_1to2()
{
var krpano1 = document.getElementById("krpanoSWFObject1");
var krpano2 = document.getElementById("krpanoSWFObject2");krpano2.set("syncother", false);
krpano2.set("view.hlookat", 360 - krpano1.get("view.hlookat"));
krpano2.set("view.vlookat", krpano1.get("view.vlookat"));
krpano2.set("view.fov", krpano1.get("view.fov"));
}function sync_2to1()
{
var krpano1 = document.getElementById("krpanoSWFObject1");
var krpano2 = document.getElementById("krpanoSWFObject2");krpano1.set("syncother", false);
krpano1.set("view.hlookat", 360 - krpano2.get("view.hlookat"));
krpano1.set("view.vlookat", krpano2.get("view.vlookat"));
krpano1.set("view.fov", krpano2.get("view.fov"));
}I just added the "360 -" on the view.hlookat lines...
its not perfect, but I think a first step in your direction....
Liebe Gruesse,
Georg -
Georg, it works great and is really simple!
Thank you very much
Participate now!
Don’t have an account yet? Register yourself now and be a part of our community!