{ "X3D": {
    "encoding":"UTF-8",
    "@profile":"Interactive",
    "@version":"4.0",
    "@xsd:noNamespaceSchemaLocation":"https://www.web3d.org/specifications/x3d-4.0.xsd",
    "JSON schema":"https://www.web3d.org/specifications/x3d-4.0-JSONSchema.autogenerated.json",
    "head": {
        "meta": [
          {
            "@name":"title",
            "@content":"Elevator.x3d"
          },
          {
            "@name":"description",
            "@content":"X3D encodings example: example of animating the camera by depicting an elevator to ease access to a multi-story building. For this example, a 2 story building is shown and it is assumed that the elevator is already at the ground floor. To go up, the user just steps onto the elevator platform. A ProximitySensor fires and starts the elevator up automatically. Additional features such as call buttons for outside the elevator, elevator doors, and floor selector buttons could be added to make the elevator easier to use."
          },
          {
            "@name":"creator",
            "@content":"Don Brutzman and Joe Williams"
          },
          {
            "@name":"Image",
            "@content":"ElevatorAnimation.png"
          },
          {
            "@name":"created",
            "@content":"1 June 2002"
          },
          {
            "@name":"modified",
            "@content":"28 September 2025"
          },
          {
            "@name":"specificationSection",
            "@content":"X3D encodings, ISO/IEC 19776-1.3, Part 1: XML encoding, Annex C.18 Elevator"
          },
          {
            "@name":"specificationUrl",
            "@content":"https://www.web3d.org/specifications/X3Dv4Draft/ISO-IEC19776-1v4.0-CD/Part01/examples.html#Elevator"
          },
          {
            "@name":"identifier",
            "@content":"https://www.web3d.org/x3d/content/examples/Basic/X3dSpecifications/Elevator.x3d"
          },
          {
            "@name":"generator",
            "@content":"X3D-Edit 4.0, https://www.web3d.org/x3d/tools/X3D-Edit"
          },
          {
            "@name":"license",
            "@content":"../license.html"
          },
          {
            "@name":"translated",
            "@content":"28 September 2025"
          },
          {
            "@name":"generator",
            "@content":"X3dToJson.xslt, https://www.web3d.org/x3d/stylesheets/X3dToJson.html"
          },
          {
            "@name":"reference",
            "@content":"X3D JSON encoding: https://www.web3d.org/wiki/index.php/X3D_JSON_Encoding"
          }
        ]
    },
    "Scene": {
        "-children":[
          { "WorldInfo":
            {
              "@title":"Elevator.x3d"
            }
          },
          { "NavigationInfo":
            {
              "@type":["WALK","ANY"]
            }
          },
          { "Transform":
            {
              "@translation":[0.0,0.0,-3.5],
              "-children":[
                { "Shape":
                  {
                    "-geometry":
                      { "Cone":
                        {
                        }
                      },
                    "-appearance":
                      { "Appearance":
                        {
                          "-material":
                            { "Material":
                              {
                                "@diffuseColor":[0.0,1.0,0.0]
                              }
                            }
                        }
                      }
                  }
                }
              ]
            }
          },
          { "Transform":
            {
              "@translation":[0.0,4.0,-3.5],
              "-children":[
                { "Shape":
                  {
                    "-geometry":
                      { "Cone":
                        {
                        }
                      },
                    "-appearance":
                      { "Appearance":
                        {
                          "-material":
                            { "Material":
                              {
                                "@diffuseColor":[1.0,0.0,0.0]
                              }
                            }
                        }
                      }
                  }
                }
              ]
            }
          },
          { "Transform":
            {
              "@translation":[0.0,8.0,-3.5],
              "-children":[
                { "Shape":
                  {
                    "-geometry":
                      { "Cone":
                        {
                        }
                      },
                    "-appearance":
                      { "Appearance":
                        {
                          "-material":
                            { "Material":
                              {
                                "@diffuseColor":[0.0,0.0,1.0]
                              }
                            }
                        }
                      }
                  }
                }
              ]
            }
          },
          { "Group":
            {
              "-children":[
                { "Transform":
                  {
                    "@DEF":"ETransform",
                    "-children":[
                      { "Viewpoint":
                        {
                          "@DEF":"EViewpoint",
                          "@description":"Elevator Viewpoint",
                          "@jump":false
                        }
                      },
                      { "ProximitySensor":
                        {
                          "@DEF":"EProximity",
                          "@size":[2.0,5.0,5.0]
                        }
                      },
                      { "Transform":
                        {
                          "@translation":[0.0,-1.0,0.0],
                          "-children":[
                            { "Shape":
                              {
                                "-geometry":
                                  { "Box":
                                    {
                                      "@size":[2.0,0.2,5.0]
                                    }
                                  },
                                "-appearance":
                                  { "Appearance":
                                    {
                                      "-material":
                                        { "Material":
                                          {
                                          }
                                        }
                                    }
                                  }
                              }
                            }
                          ]
                        }
                      }
                    ]
                  }
                }
              ]
            }
          },
          { "PositionInterpolator":
            {
              "@DEF":"ElevatorPI",
              "@key":[0.0,1.0],
              "@keyValue":[0.0,0.0,0.0,0.0,8.0,0.0]
            }
          },
          { "TimeSensor":
            {
              "@DEF":"TS",
              "@cycleInterval":10.0
            }
          },
          { "ROUTE":
            {
              "@fromField":"enterTime",
              "@fromNode":"EProximity",
              "@toField":"startTime",
              "@toNode":"TS"
            }
          },
          { "ROUTE":
            {
              "@fromField":"isActive",
              "@fromNode":"TS",
              "@toField":"set_bind",
              "@toNode":"EViewpoint"
            }
          },
          { "ROUTE":
            {
              "@fromField":"fraction_changed",
              "@fromNode":"TS",
              "@toField":"set_fraction",
              "@toNode":"ElevatorPI"
            }
          },
          { "ROUTE":
            {
              "@fromField":"value_changed",
              "@fromNode":"ElevatorPI",
              "@toField":"translation",
              "@toNode":"ETransform"
            }
          }
        ]
    }
  }
}