Before and after panoramas

Q&A about the latest versions
Post Reply
BSands
Posts: 10
Joined: Tue Jun 12, 2018 7:12 pm

Hi All,

I'm just getting in to making a tour for the first time, and I'm having quite a bit of success, but there is one feature that I can't seem to work out at the moment.

I want to be able to make a button that switches the current panorama to another one which is the same but for an intervention that has been added, thus making a 'before' and 'after' scenario. I have the two panoramas set up in the same tour, and they are set up exactly the same, but show a different image.

The plan was to make a button that only worked when a specific tag was on a panorama, so on mouse click open next panorama, if a specific tag is on that node. In it's simple form, that works, but if I want to allow it to work the other way and go back to the previous panorama adding another mouse click action, which is dependant on a different tag on the second panorama, and I add another 'mouse click' action, it does it automatically on the first mouse click without waiting for a second one because the first one has loaded the second panorama then then the second 'mouse click' action finds the tag on the second panorama and returns immediately to the first.

Can anyone shed any light on this?

Cheers,

Bill
User avatar
Hopki
Gnome
Posts: 13005
Joined: Thu Jan 10, 2008 3:16 pm
Location: Layer de la Haye, Essex UK
Contact:

Hi Bill,
Have red this through a few times now and I'm still confused.
But here are my thoughts, on a pano that has a counterpart, night scene, then show a button. This button then can toggle back are forth between the two panos.
Only the day pano has hotspots linked to the rest of the tour.
Is this how it should work?

If so then all you have to do is add the counterpart pano in the user data.
Example, assuming you have a five node tour but node two has a night counterpart, this means your project has six nodes with the night pano being node six.

Tag node two and six with say, "switch".
Select node two in the tour browser then under the User Data add the node id for the night pano in the source text field.
It will be: {node6}.
Now select node six in the tour browser and again under the User Data Source text filed, add: {node2}.

So node two has node six in its user data and node six has node two in its user data.


Go to the skin and add a button that will switch between the nodes.
Give it the action, Mouse Click, Open Next Panorama, URL: $(us), Target: Current View.

Go to the buttons properties and deselect visible, but then set a visible logic block that says if Tag = switch then visible true.

What will happen is the button will be hidden until node two which has the tag "switch".
When clicked the button will open the panorama as set in the user data source text field {node6}.
When clicked again the button will open the panorama as set in the user data source text field {node2}.
Thus toggling between the two.

This lets you add as many day/night counterparts as you wish with only having to enter the node id in the user data and tag the panos.
I also added a tag called invert to the night pano. Under the colours logic block for the text box it inverts the colours.

Project attached

Regards,
Hopki
Attachments
day_night.zip
(97.31 KiB) Downloaded 220 times
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/
BSands
Posts: 10
Joined: Tue Jun 12, 2018 7:12 pm

Hi Hopki,

That is exactly what I wanted to do!! The only problem I have now is the nodes have been rearranged and what I thought were {node4} and {node3} and actually not! How do I find out the node number?

Cheers,

Bill
User avatar
360Texas
Moderator
Posts: 3684
Joined: Sat Sep 09, 2006 6:06 pm
Location: Fort Worth, Texas USA
Contact:

Pano2vr Pro 5 or 6 Show Node ID on ADVANCED tab
Maybe here?
6tourbrowsershow nodeID.PNG
6tourbrowsershow nodeID.PNG (85.73 KiB) Viewed 2703 times
Dave
Pano2VR Forum Global Moderator
Image
Visit 360texas.com
BSands
Posts: 10
Joined: Tue Jun 12, 2018 7:12 pm

Thanks @Hopki and @360Texas, that's got it :-)

That all works very well. I've just got to get the content all finished now.

Thanks for your help,

Bill
Post Reply