{ "X3D": {
    "encoding":"UTF-8",
    "@profile":"Immersive",
    "@version":"3.3",
    "@xsd:noNamespaceSchemaLocation":"https://www.web3d.org/specifications/x3d-3.3.xsd",
    "JSON schema":"https://www.web3d.org/specifications/x3d-4.0-JSONSchema.autogenerated.json",
    "head": {
        "meta": [
          {
            "@name":"title",
            "@content":"WhereAmIPrototype.x3d"
          },
          {
            "@name":"description",
            "@content":"Prototype node declaration for displaying current viewpoint location and orientation in the player console."
          },
          {
            "@name":"creator",
            "@content":"Leonard Daly and Don Brutzman"
          },
          {
            "@name":"created",
            "@content":"1 January 1999"
          },
          {
            "@name":"translated",
            "@content":"5 May 2006"
          },
          {
            "@name":"modified",
            "@content":"2 March 2026"
          },
          {
            "@name":"reference",
            "@content":"WhereAmIExample.x3d"
          },
          {
            "@name":"reference",
            "@content":"https://www.web3d.org/x3d/content/examples/Savage/Tools/Authoring/ViewPositionOrientationExample.x3d"
          },
          {
            "@name":"reference",
            "@content":"https://www.web3d.org/x3d/content/examples/Savage/Tools/Authoring/ViewPositionOrientationPrototype.x3d"
          },
          {
            "@name":"reference",
            "@content":"https://X3dGraphics.com"
          },
          {
            "@name":"reference",
            "@content":"https://www.web3d.org/x3d/content/examples/X3dResources.html"
          },
          {
            "@name":"subject",
            "@content":"X3D book, X3D graphics, X3D-Edit, http://www.x3dGraphics.com"
          },
          {
            "@name":"rights",
            "@content":"Copyright 1999, 2006, Daly Realism, Inc."
          },
          {
            "@name":"identifier",
            "@content":"https://www.web3d.org/x3d/content/examples/X3dForWebAuthors/Chapter14Prototypes/WhereAmIPrototype.x3d"
          },
          {
            "@name":"generator",
            "@content":"X3D-Edit 3.3, https://www.web3d.org/x3d/tools/X3D-Edit"
          },
          {
            "@name":"license",
            "@content":"../license.html"
          },
          {
            "@name":"translated",
            "@content":"17 April 2026"
          },
          {
            "@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":"WhereAmIPrototype.x3d"
            }
          },
          { "ProtoDeclare":
            {
              "@name":"WhereAmI",
              "@appinfo":"Prototype node for displaying current viewpoint location and orientation",
              "-children":[
                {
                  "#comment":"No ProtoInterface fields are needed for this prototype"
                }
              ],
              "ProtoBody": {
                  "-children":[
                    { "ProximitySensor":
                      {
                        "@DEF":"WhereSensor",
                        "@size":[100000,100000,100000]
                      }
                    },
                    {
                      "#comment":"no geometry is rendered in the current scene by the prototype"
                    },
                    { "Script":
                      {
                        "@DEF":"WhereDump",
                        "@url":["WhereAmIPrototypeScript.js","../Chapter14Prototypes/WhereAmIPrototypeScript.js","https://www.web3d.org/x3d/content/examples/X3dForWebAuthors/Chapter14Prototypes/WhereAmIPrototypeScript.js"],
                        "field": [
                          {
                            "@name":"position",
                            "@accessType":"inputOnly",
                            "@type":"SFVec3f"
                          },
                          {
                            "@name":"orientation",
                            "@accessType":"inputOnly",
                            "@type":"SFRotation"
                          }
                        ]
                      }
                    },
                    { "ROUTE":
                      {
                        "@fromField":"orientation_changed",
                        "@fromNode":"WhereSensor",
                        "@toField":"orientation",
                        "@toNode":"WhereDump"
                      }
                    },
                    { "ROUTE":
                      {
                        "@fromField":"position_changed",
                        "@fromNode":"WhereSensor",
                        "@toField":"position",
                        "@toNode":"WhereDump"
                      }
                    }
                  ]
              }
            }
          },
          {
            "#comment":"ProtoInstance instantiates (creates) a new node using the ProtoDeclare prototype definition"
          },
          { "ProtoInstance":
            {
              "@name":"WhereAmI"
            }
          },
          { "Viewpoint":
            {
              "@description":"WhereAmI prototype test"
            }
          },
          { "Shape":
            {
              "-geometry":
                { "Text":
                  {
                    "@string":["Check X3D console","while navigating for","current viewpoint","position, orientation"],
                    "-fontStyle":
                      { "FontStyle":
                        {
                          "@justify":["MIDDLE","MIDDLE"]
                        }
                      }
                  }
                },
              "-appearance":
                { "Appearance":
                  {
                    "-material":
                      { "Material":
                        {
                          "@ambientIntensity":0.23,
                          "@diffuseColor":[0.5,0.243312,0.127417],
                          "@emissiveColor":[0.015957,0.015957,0.015957],
                          "@shininess":0.03,
                          "@specularColor":[0.276596,0.055086,0.01524]
                        }
                      }
                  }
                }
            }
          }
        ]
    }
  }
}