Pano2VR 6 Multi View State tour
Posted: Tue Apr 23, 2019 10:43 pm
How to create a tour which can have multiple view states of the same panorama.
This project can have any number of panoramas in a tour and as many different states of the same panoramas as you need.
• Create a project folder
Preparing your panoramas naming convention and sub folders will speed up the project build.
Example, in my test project I'm using name and year, so one_2010.jpg, one_2011.jpg etc.
It could of been Kitchen_2010.jpg but the name must start with a letter. I then placed all the panoramas into their own date sub folders. Using sub folders assigns tags to the panoramas which then can be used by say the thumbnail menu.
• Open and save a Pano2VR file to the main project folder, add the panos from the first sub folder 2010, then 2011 and then 2012
• Create all the hotspots and link the tour for all 2010 nodes.
• With node one from 2010 selected, select the List View and select all the point hotspots in the list, right button click and select copy.
Now select node one from 2011 and 2012, node one from 2010 is now deselected.
Using the list view right button click and paste. This pastes the hotspots in the exact same position for all node one panoramas.
Do this for all nodes so all hotspots are in the same position when changing states.
You will need to go back and correct the Hotspot URLs as you have copied the point hotspots from state one.
Select Node One from the second state, in this example Node One 2011 and make sure the hotspots link to all 2011 panoramas.
Example Node One 2011 needs to link to Node Two 2011.
Select node one_2010. Select user data, then select Edit Project Data button, this will open the Master Node.
In the Custom Node ID text box enter $(n)
Now select node one from the tour browser to exit the Master Node. You will now see in the Custom Node ID the file name of each node, example: one_2010 etc.
While still in user data enter the first part of the file name in the Source text field, in this example, one.
Select all the first panoramas from the other states and click the copy button.
Select, "Selected nodes" from the dialog box that pops up.
This copies "one" to all node one panoramas from all the different states.
Do the same for node two then node three.
Thats it for configuring the project file.
In the skin:
• Add your date buttons to the skin with the action.
Source: Mouse Click
Action: Open Next Panorama
URL: {$(us)_2010}
View: Forward
The URL is made up from the user data source then "_2010".
For it to work in the URL the $(us)_2010 needs to be within curly brackets.
The point hotspot template in the skin will need the action:
Source: Mouse Click
Action: Open Next Panorama
URL: Hotspot URL
View: Target view
The reason for using the View Forward is if your panoramas from different states don't quite line up, you can use the set north to correct the offset.
So find a reference point in the pano and set it as north.
Note it does not have to actually be north.
Then in the different state panos set north in the same place.
Add ons, as you added the panoramas from sub folders the panoramas will get the tag of the folder name. In this project they get the tags, 2010, 2011 and 2012.
You can use this to display the correct panos in the thumbnail menu.
The thumbnail cloner has the tag 2010, so on open it shows the 2010 panos.
There is an action in each year button to set the tag to the thumbnail_cloner, 2010, 2011 and 2012 depending on which button you click.
Im also using the text box border colour logic block two change colour when its tag is active.
The above project published: View States
• Changing States/Years will maintain the same Pan/Tilt?FoV (zoom)
Reference documents:
User Data: https://ggnome.com/doc/pano2vr/6/panel-user-data/
Edit Master Node: https://ggnome.com/doc/pano2vr/6/tour-edit-master-node/
Custom Node ID: https://ggnome.com/doc/pano2vr/6/dna/#custom-node-id
Logic Blocks: https://ggnome.com/doc/pano2vr/6/skin-logic/
Place Holders: https://ggnome.com/doc/pano2vr/6/placeholders-list/
Regards,
Hopki
This project can have any number of panoramas in a tour and as many different states of the same panoramas as you need.
• Create a project folder
Preparing your panoramas naming convention and sub folders will speed up the project build.
Example, in my test project I'm using name and year, so one_2010.jpg, one_2011.jpg etc.
It could of been Kitchen_2010.jpg but the name must start with a letter. I then placed all the panoramas into their own date sub folders. Using sub folders assigns tags to the panoramas which then can be used by say the thumbnail menu.
• Open and save a Pano2VR file to the main project folder, add the panos from the first sub folder 2010, then 2011 and then 2012
• Create all the hotspots and link the tour for all 2010 nodes.
• With node one from 2010 selected, select the List View and select all the point hotspots in the list, right button click and select copy.
Now select node one from 2011 and 2012, node one from 2010 is now deselected.
Using the list view right button click and paste. This pastes the hotspots in the exact same position for all node one panoramas.
Do this for all nodes so all hotspots are in the same position when changing states.
You will need to go back and correct the Hotspot URLs as you have copied the point hotspots from state one.
Select Node One from the second state, in this example Node One 2011 and make sure the hotspots link to all 2011 panoramas.
Example Node One 2011 needs to link to Node Two 2011.
Select node one_2010. Select user data, then select Edit Project Data button, this will open the Master Node.
In the Custom Node ID text box enter $(n)
Now select node one from the tour browser to exit the Master Node. You will now see in the Custom Node ID the file name of each node, example: one_2010 etc.
While still in user data enter the first part of the file name in the Source text field, in this example, one.
Select all the first panoramas from the other states and click the copy button.
Select, "Selected nodes" from the dialog box that pops up.
This copies "one" to all node one panoramas from all the different states.
Do the same for node two then node three.
Thats it for configuring the project file.
In the skin:
• Add your date buttons to the skin with the action.
Source: Mouse Click
Action: Open Next Panorama
URL: {$(us)_2010}
View: Forward
The URL is made up from the user data source then "_2010".
For it to work in the URL the $(us)_2010 needs to be within curly brackets.
The point hotspot template in the skin will need the action:
Source: Mouse Click
Action: Open Next Panorama
URL: Hotspot URL
View: Target view
The reason for using the View Forward is if your panoramas from different states don't quite line up, you can use the set north to correct the offset.
So find a reference point in the pano and set it as north.
Note it does not have to actually be north.
Then in the different state panos set north in the same place.
Add ons, as you added the panoramas from sub folders the panoramas will get the tag of the folder name. In this project they get the tags, 2010, 2011 and 2012.
You can use this to display the correct panos in the thumbnail menu.
The thumbnail cloner has the tag 2010, so on open it shows the 2010 panos.
There is an action in each year button to set the tag to the thumbnail_cloner, 2010, 2011 and 2012 depending on which button you click.
Im also using the text box border colour logic block two change colour when its tag is active.
The above project published: View States
• Changing States/Years will maintain the same Pan/Tilt?FoV (zoom)
Reference documents:
User Data: https://ggnome.com/doc/pano2vr/6/panel-user-data/
Edit Master Node: https://ggnome.com/doc/pano2vr/6/tour-edit-master-node/
Custom Node ID: https://ggnome.com/doc/pano2vr/6/dna/#custom-node-id
Logic Blocks: https://ggnome.com/doc/pano2vr/6/skin-logic/
Place Holders: https://ggnome.com/doc/pano2vr/6/placeholders-list/
Regards,
Hopki