Before ~ After

Special forum to share and discuss skins for Pano2VR and Object2VR
ksraghavendra
Posts: 39
Joined: Tue Aug 10, 2010 8:09 am
Location: Hyderabad, India
Contact:

Hi,
I am working on a Before ~ After kind of panorama. I want to know how to achieve the following-
1) When I switch from before->after or vice versa, I want the next panorama to continue from the current view point rather than from the beginning.
2) Is it possible to display both panos side by side such that if I pan/zoom in one it is reflected in the other too.
Kindly suggest the best way to proceed.
Regards,
Raghav
Jack of all Trades at 36ty Solutions, India
ksraghavendra
Posts: 39
Joined: Tue Aug 10, 2010 8:09 am
Location: Hyderabad, India
Contact:

Oops did I post this in the wrong thread :roll:
Jack of all Trades at 36ty Solutions, India
User avatar
Hopki
Gnome
Posts: 13029
Joined: Thu Jan 10, 2008 3:16 pm
Location: Layer de la Haye, Essex UK
Contact:

Hi
You can use $cur in the target text field to open the next pano with the same Pan/Tilt/FoV.
So if you have the befor and after pano starting from the some point you can switch between the to keeping the same view.
Regards
Hopki
Garden Gnome Support
If you send an e-mail to support please send a link to the forum post for reference.
support@ggnome.com
https://ggnome.com/wiki/documentation/
ksraghavendra
Posts: 39
Joined: Tue Aug 10, 2010 8:09 am
Location: Hyderabad, India
Contact:

Hi Hopki,
Thanks for your reply. But I fail to find out where to insert this option :( Could you kindly provide some screenshot?
Regards,
Raghav
Jack of all Trades at 36ty Solutions, India
ksraghavendra
Posts: 39
Joined: Tue Aug 10, 2010 8:09 am
Location: Hyderabad, India
Contact:

Hi,
Guess I was blind for a while not to figure it out :D Posting a screenshot for future reference-
Image
Thanks again Hopki.
Regards,
Raghav
Jack of all Trades at 36ty Solutions, India
ksraghavendra
Posts: 39
Joined: Tue Aug 10, 2010 8:09 am
Location: Hyderabad, India
Contact:

One more doubt,
How to link 2 embeded panos? Say I embed 2 panos(or embed one in another whichever way this can be worked out), one before scene & another after scene, I want both to be visible side by side and when I pan/zoom in one the same has to be reflected in another. How to achieve this sync?
Thanks in advance,
Raghav
Jack of all Trades at 36ty Solutions, India
User avatar
thomas
Chief Gnome
Posts: 2613
Joined: Fri Sep 01, 2006 3:56 pm
Location: Vienna, Austria
Contact:

ksraghavendra wrote:One more doubt,
How to link 2 embeded panos? Say I embed 2 panos(or embed one in another whichever way this can be worked out), one before scene & another after scene, I want both to be visible side by side and when I pan/zoom in one the same has to be reflected in another. How to achieve this sync?
As this comes up quite often, I have now added a wiki page for this. Basically you can sync the two panos with a little bit of javascript code:
http://gardengnomesoftware.com/wiki/Syn ... _Panoramas
MfG, Thomas
ksraghavendra
Posts: 39
Joined: Tue Aug 10, 2010 8:09 am
Location: Hyderabad, India
Contact:

Hi Thomas,
Thanks for the reply. I need to distribute the same thru a DVD as well. How to proceed then?
*Updated- The code given doesn't seem to work, tried tweaking it here & there but no change. Are these functions, viz., getPan(), getFov(), setPan(), etc., available in some external .js file? I did not find them in swfobject.js
Regards,
Raghav
Last edited by ksraghavendra on Mon Oct 17, 2011 4:10 am, edited 1 time in total.
Jack of all Trades at 36ty Solutions, India
smooth
Posts: 1493
Joined: Sat Sep 09, 2006 7:30 pm

thomas wrote: As this comes up quite often, I have now added a wiki page for this. Basically you can sync the two panos with a little bit of javascript code:
http://gardengnomesoftware.com/wiki/Syn ... _Panoramas
Thomas,

Have your got an example of this working (sync)?
I tried your code and although both panos are displayed they are not in sync.
You state also to name the panos pano_left.swf and pano_right.swf but in your code these are named simply left.swf and right.swf

Of course I corrected this, but no sync based on your code provided.

Regards, Smooth 8)
Image
ksraghavendra
Posts: 39
Joined: Tue Aug 10, 2010 8:09 am
Location: Hyderabad, India
Contact:

Hi Thomas,
Any solution for this?
Regards,
Raghav
Jack of all Trades at 36ty Solutions, India
User avatar
George Palov
Posts: 60
Joined: Mon Jun 13, 2011 11:18 pm
Location: Sofia, Bulgaria
Contact:

I am also interested in this solution :)
Thank you!
User avatar
thomas
Chief Gnome
Posts: 2613
Joined: Fri Sep 01, 2006 3:56 pm
Location: Vienna, Austria
Contact:

Sorry, stupid error. I forgot to change the first javascript ID from "panoleft" to "pano_left". I updated the code and now it should work correctly.
MfG, Thomas
smooth
Posts: 1493
Joined: Sat Sep 09, 2006 7:30 pm

thomas wrote:Sorry, stupid error. I forgot to change the first javascript ID from "panoleft" to "pano_left". I updated the code and now it should work correctly.
That works a "bit" better! :wink:

Regards, Smooth 8)
Image
HMS Beagle
Posts: 104
Joined: Fri Mar 06, 2009 10:40 pm

I missed this JS solution to the side by side display. I copied the code directly and changed the name of my panos to left.swf and right.swf aznd I get no sync. I get the panos side by side, just no sync. Does anyone have a working example online?
Beagle
smooth
Posts: 1493
Joined: Sat Sep 09, 2006 7:30 pm

Hey Beagle,

The code does work now.
Read the .html and find what the actual .swf should be called. Forget what Thomas has told you to call them because it doesn't match the code.
In my example they are named pano_left.swf and pano_right.swf
Of course you can change these to whatever you like so long as you adjust the names accordingly.

Be sure to correct the panoleft ID to pano_left in the code.

Based on the code the left pano is the drive pano and moving it controls the right pano (sync).
It is not as smooth as I would have liked. But then running two panos full size is eating resources pretty fast, straining the computer.

I don't have an example online. But if you do get totally suck I can make it happen.

Regards, Smooth 8)
Image
Post Reply