{ "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":"Query.x3d"
          },
          {
            "@name":"description",
            "@content":"Query browser state: this world uses the \"Browser\" object in a script to query information about the VRML browser. That information is sent out as an MFString event that is routed into a Text node string input. The effect is to display a text message showing the Browser information. To give the browser something to do to make it report interesting frame rates, an animating object is displayed beside the text information."
          },
          {
            "@name":"creator",
            "@content":"David R. Nadeau"
          },
          {
            "@name":"translator",
            "@content":"Don Brutzman"
          },
          {
            "@name":"created",
            "@content":"1 July 1998"
          },
          {
            "@name":"translated",
            "@content":"2 February 2014"
          },
          {
            "@name":"modified",
            "@content":"20 October 2019"
          },
          {
            "@name":"reference",
            "@content":"originals/query.wrl"
          },
          {
            "@name":"reference",
            "@content":"http://www.siggraph.org/s98"
          },
          {
            "@name":"reference",
            "@content":"http://www.siggraph.org/s98/conference/courses/18.html"
          },
          {
            "@name":"reference",
            "@content":"http://www.sdsc.edu/~moreland/courses/Siggraph98/vrml97/slides/mt0465.htm"
          },
          {
            "@name":"reference",
            "@content":"http://www.sdsc.edu/~moreland/courses/Siggraph98/vrml97/vrml97.htm"
          },
          {
            "@name":"reference",
            "@content":"https://www.web3d.org/x3d/content/examples/X3dResources.html"
          },
          {
            "@name":"identifier",
            "@content":"https://www.web3d.org/x3d/content/examples/Vrml2Sourcebook/Siggraph98Course/Query.x3d"
          },
          {
            "@name":"generator",
            "@content":"Vrml97ToX3dNist, http://ovrt.nist.gov/v2_x3d.html"
          },
          {
            "@name":"generator",
            "@content":"X3D-Edit, 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":
            {
              "@info":["Copyright (c) 1998, David R. Nadeau"],
              "@title":"Query browser state"
            }
          },
          { "Viewpoint":
            {
              "@description":"Entry view"
            }
          },
          { "NavigationInfo":
            {
            }
          },
          { "Transform":
            {
              "@scale":[0.75,0.75,0.75],
              "@translation":[-4.0,0.0,0.0],
              "-children":[
                { "Inline":
                  {
                    "@url":["Two.x3d","https://www.web3d.org/x3d/content/examples/Vrml2Sourcebook/Siggraph98Course/Two.x3d","Two.wrl","https://www.web3d.org/x3d/content/examples/Vrml2Sourcebook/Siggraph98Course/Two.wrl"]
                  }
                }
              ]
            }
          },
          { "Transform":
            {
              "@translation":[-1.5,1.25,0.0],
              "-children":[
                { "Shape":
                  {
                    "-geometry":
                      { "Text":
                        {
                          "@DEF":"Message",
                          "@string":[""],
                          "-fontStyle":
                            { "FontStyle":
                              {
                                "@family":["TYPEWRITER"],
                                "@size":0.65,
                                "@style":"BOLD"
                              }
                            }
                        }
                      }
                  }
                }
              ]
            }
          },
          { "TimeSensor":
            {
              "@DEF":"Timer",
              "@cycleInterval":4.0,
              "@loop":true
            }
          },
          { "Script":
            {
              "@DEF":"Introspect",
              "field": [
                {
                  "@name":"trigger",
                  "@accessType":"inputOnly",
                  "@type":"SFTime"
                },
                {
                  "@name":"message",
                  "@accessType":"outputOnly",
                  "@type":"MFString"
                }
              ],
              "#sourceCode":[
"",
"",
"ecmascript:",
"\t\tfunction update( ) {",
"\t\t\tmessage.length = 5;",
"\t\t\tmessage[0] = 'Browser: ' + Browser.getName( );",
"\t\t\tmessage[1] = 'Version: ' + Browser.getVersion( );",
"\t\t\tmessage[2] = 'URL:     ' + Browser.getWorldURL( );",
"\t\t\tmessage[3] = 'Speed:   ' + Browser.getCurrentSpeed( );",
"\t\t\tmessage[4] = 'Frames:  ' + Browser.getCurrentFrameRate( );",
"\t\t}",
"\t\tfunction initialize( ) {",
"\t\t\tupdate( );",
"\t\t}",
"\t\tfunction trigger( t, ts ) {",
"\t\t\tupdate( );",
"\t\t}",
"",
""
]
            }
          },
          { "ROUTE":
            {
              "@fromField":"cycleTime",
              "@fromNode":"Timer",
              "@toField":"trigger",
              "@toNode":"Introspect"
            }
          },
          { "ROUTE":
            {
              "@fromField":"message",
              "@fromNode":"Introspect",
              "@toField":"set_string",
              "@toNode":"Message"
            }
          }
        ]
    }
  }
}