Feature request: pano.xml to pano.json

Q&A about the latest versions
Post Reply
IronWagen
Posts: 47
Joined: Mon Nov 30, 2015 4:34 pm

Pano2vr outputs an xml that contains the basic structure of the tour. However, the xml syntax is very inefficient when coding external scripts that change the state of the tour. I made my own php script that converts pano.xml to pano.json but I think this should be a feature in Pano2vr.

Our company specializes in gamified 360 tours for employee training and I have had to find different ways to make things work. One trick I learned is that you can type json syntax into the description box of a hotspot. This way you can have as many values as you want.

A simple example of what the json could look like:

Code: Select all


{
  "panotour":{
    "general":{},
    
    "node1":{
      "userdata":{
        "title": "This is the first node",
        "description": "",
        "author": ""
      },
      "hotspots":[
        {"id": "question_spot0", "description":{"visible": true, "content_id": 73, "score": 3}},
        {"id": "movement_spot0", "description":{"visible": true, "move_to": "node2"}}        
      ]
    },
    "node2":{
      "userdata":{
        "title": "This is the second node",
        "description": "",
        "author": ""
      },      
      "hotspots":[
        {"id": "normal_spot0", "description":{"visible": true,"score": 1, "reveal":["normal_spot1","normal_spot2"]}},
        {"id": "normal_spot1", "description":{"visible": false,"score": 1}},
        {"id": "normal_spot2", "description":{"visible": false,"score": 1}}
      ]      
    }
    
  }
}

User avatar
Tony
Posts: 1341
Joined: Mon Feb 15, 2010 6:54 am
Location: Adelaide, South Australia
Contact:

Hi,

Very interesting.

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/
User avatar
Hopki
Gnome
Posts: 13005
Joined: Thu Jan 10, 2008 3:16 pm
Location: Layer de la Haye, Essex UK
Contact:

Hi,
Just a follow up, this is already in the developers to do list.
Not sure when it will be implemented but at least its own their radar.
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/
IronWagen
Posts: 47
Joined: Mon Nov 30, 2015 4:34 pm

Hopki wrote: Fri Mar 09, 2018 5:18 pm Hi,
Just a follow up, this is already in the developers to do list.
Not sure when it will be implemented but at least its own their radar.
Regards,
Hopki
Thank you that is good to hear! :)
Post Reply