Hi,
I am trying to present a multi floor building where the visitor can switch between floors. It is done via a menu.
BTW, I don't use hotspots, only marker nodes on the plans as clients prefer that to "finding your way to a space in the far end".
To make it smooth, I need to remember and then activate the node and its panorama which the user was at on a floor before he switched to another floor. There are usually 20 or more nodes per floor.
In other words, I wish to return the visitor to last view he had upon return to a previous floor.
I can't find any a discussions in the forum. If you know of one, please provide a link. If not already discussed and solved, any suggestions would be greatly appreciated too.
I have tried to set define a "last_visited_n" variable for each floor (n is the floor number) but I can't understand what I should store in it, and how to retrieve and use the values, such as the node's title and its view parameters. (Still a novice after five month).
Remembering the last node visited on each floor
Hi,
Just to clarify, switching between floors is done by a menu but navigating within the floors is done via a floorplan and markers?
Do you have a link to the tour by any chance?
cheers,
Tony
Just to clarify, switching between floors is done by a menu but navigating within the floors is done via a floorplan and markers?
Do you have a link to the tour by any chance?
cheers,
Tony
Tony Redhead | Panoramic Photographer | mobile: +61438501002 | website: https://tonyredhead.com - https://redsquare.com | Pano2VR Tutorials: https://tonyredhead.com/pano2vr | instagram: https://www.instagram.com/tonyredhead/
Hi,
I just had a play around and came up with this sample.
If you go to a floor for the first time it opens on the default node, if you move the panorama or click onto another node it will remember the node and orientation when you come back to that floor.
Check it out: https://p2vr.s3.ap-southeast-2.amazonaw ... index.html
cheers,
Tony
I just had a play around and came up with this sample.
If you go to a floor for the first time it opens on the default node, if you move the panorama or click onto another node it will remember the node and orientation when you come back to that floor.
Check it out: https://p2vr.s3.ap-southeast-2.amazonaw ... index.html
cheers,
Tony
Tony Redhead | Panoramic Photographer | mobile: +61438501002 | website: https://tonyredhead.com - https://redsquare.com | Pano2VR Tutorials: https://tonyredhead.com/pano2vr | instagram: https://www.instagram.com/tonyredhead/
Hi Nader,
I've updated the online version so you can see the variables at work https://p2vr.s3.ap-southeast-2.amazonaw ... index.html
I've also posted the project files https://p2vr.s3.ap-southeast-2.amazonaw ... member.zip
1. The floorplan marker has 4 Mouse Click actions that a. One action that opens the next panorama b. Three actions that set a variable op_node_f1/f2/f3 with the current node $(node). The three actions have a modifier that uses the floor tags to initiate the action.
2. At the same time there is a timer, with three Activate actions, setting the current view to the variables op_lastview_f1/f2/f3. The three actions have a modifier that uses the floor tags to initiate the action.
3. The Floor buttons each have two actions, both Mouse Clicks. The first Opens Next Panoramas using the variables op_node_f1/f2/f3 and op_lastview_f1/f2/f3. The action has a modifier for each button that initiates the Mouse Click if the variable op_node_f1/f2/f3 is not empty. This means if there is a value for the node, which means it's been clicked on then go back to that same node and view. The next action Opens Next Panorama using a defined node and its last view. This allows a user to click on a floor, view the default node, pan, and move the node and then go to a different floor without clicking on a new node. If the user goes back to the floor and the default node then the view is updated to reflect their last visit.
Hope this makes sense
Tony
I've updated the online version so you can see the variables at work https://p2vr.s3.ap-southeast-2.amazonaw ... index.html
I've also posted the project files https://p2vr.s3.ap-southeast-2.amazonaw ... member.zip
1. The floorplan marker has 4 Mouse Click actions that a. One action that opens the next panorama b. Three actions that set a variable op_node_f1/f2/f3 with the current node $(node). The three actions have a modifier that uses the floor tags to initiate the action.
2. At the same time there is a timer, with three Activate actions, setting the current view to the variables op_lastview_f1/f2/f3. The three actions have a modifier that uses the floor tags to initiate the action.
3. The Floor buttons each have two actions, both Mouse Clicks. The first Opens Next Panoramas using the variables op_node_f1/f2/f3 and op_lastview_f1/f2/f3. The action has a modifier for each button that initiates the Mouse Click if the variable op_node_f1/f2/f3 is not empty. This means if there is a value for the node, which means it's been clicked on then go back to that same node and view. The next action Opens Next Panorama using a defined node and its last view. This allows a user to click on a floor, view the default node, pan, and move the node and then go to a different floor without clicking on a new node. If the user goes back to the floor and the default node then the view is updated to reflect their last visit.
Hope this makes sense
Tony
Tony Redhead | Panoramic Photographer | mobile: +61438501002 | website: https://tonyredhead.com - https://redsquare.com | Pano2VR Tutorials: https://tonyredhead.com/pano2vr | instagram: https://www.instagram.com/tonyredhead/