{ "X3D": {
    "encoding":"UTF-8",
    "@profile":"Immersive",
    "@version":"3.0",
    "@xsd:noNamespaceSchemaLocation":"https://www.web3d.org/specifications/x3d-3.0.xsd",
    "JSON schema":"https://www.web3d.org/specifications/x3d-4.0-JSONSchema.autogenerated.json",
    "head": {
        "meta": [
          {
            "@name":"title",
            "@content":"speed_range.x3d"
          },
          {
            "@name":"reference",
            "@content":"http://www.nist.gov/vrml.html"
          },
          {
            "@name":"reference",
            "@content":"http://www.itl.nist.gov/div897/ctg/vrml/vrml.html"
          },
          {
            "@name":"creator",
            "@content":"http://www.itl.nist.gov/div897/ctg/vrml/members.html"
          },
          {
            "@name":"disclaimer",
            "@content":"This file was provided by the National Institute of Standards and Technology, and is part of the X3D Conformance Test Suite, available at http://www.nist.gov/vrml.html The information contained within this file is provided for use in establishing conformance to the ISO VRML97 Specification. Conformance to this test does not imply recommendation or endorsement by the National Institute of Standards and Technology (NIST). This software can be redistributed and/or modified freely provided that any derivative works bear some notice that they are derived from it, and any modified versions bear some notice that they have been modified."
          },
          {
            "@name":"reference",
            "@content":"Original NIST Conformance Testing Group, https://www.itl.nist.gov/div897/ctg/vrml"
          },
          {
            "@name":"reference",
            "@content":"Interactive Conformance Testing for VRML, Mary Brady and Lynn Rosenthal, NIST, created 8 September 2010 and updated 25 August 2016, https://www.nist.gov/itl/ssd/information-systems-group/interactive-conformance-testing-vrml"
          },
          {
            "@name":"info",
            "@content":"Correct definition and compliance of this conformance scene is maintained by the X3D Working Group, https://www.web3d.org/working-groups/x3d"
          },
          {
            "@name":"creator",
            "@content":"Michael Kass NIST"
          },
          {
            "@name":"translator",
            "@content":"Don Brutzman"
          },
          {
            "@name":"translated",
            "@content":"21 January 2001"
          },
          {
            "@name":"modified",
            "@content":"28 August 2023"
          },
          {
            "@name":"description",
            "@content":"Test speed range. A NavigationInfo node can be modified with speed values of 0, 1 and 10 meters per second by indicating the appropriate text in this world. A speedometer located in the lower left portion of the screen shows the current avatar speed. Indicating the red Sphere in this world set the NavigationInfo node speed to \"0\". Indicating the yellow Sphere sets the speed to 1 meter per second for default navigation. Indicating the green sphere sets the speed to 10 meters per second for default navigation. The \"speedometer\" should reflect these changes when the browser speed control is set to the default normal navigation speed."
          },
          {
            "@name":"identifier",
            "@content":"https://www.web3d.org/x3d/content/examples/ConformanceNist/BindableNodes/NavigationInfo/speed_range.x3d"
          },
          {
            "@name":"generator",
            "@content":"Vrml97ToX3dNist, http://ovrt.nist.gov/v2_x3d.html"
          },
          {
            "@name":"generator",
            "@content":"X3D-Edit 4.0, https://www.web3d.org/x3d/tools/X3D-Edit"
          },
          {
            "@name":"license",
            "@content":"../../license.html"
          },
          {
            "@name":"translated",
            "@content":"25 March 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":"speed_range.x3d"
            }
          },
          { "Background":
            {
              "@groundAngle":[1.57],
              "@groundColor":[0,0.5,0,0,0.5,0],
              "@skyColor":[0,0,1]
            }
          },
          { "Viewpoint":
            {
              "@DEF":"DEFAULT",
              "@description":"default speed"
            }
          },
          { "Viewpoint":
            {
              "@DEF":"VIEW0",
              "@description":"speed=0"
            }
          },
          { "Viewpoint":
            {
              "@DEF":"VIEW1",
              "@description":"speed=1"
            }
          },
          { "Viewpoint":
            {
              "@DEF":"VIEW10",
              "@description":"speed=10"
            }
          },
          { "NavigationInfo":
            {
              "@DEF":"NAV1"
            }
          },
          { "ProximitySensor":
            {
              "@DEF":"PROX_SENSOR",
              "@size":[100000,100000,100000]
            }
          },
          { "TimeSensor":
            {
              "@DEF":"TIME",
              "@loop":true
            }
          },
          { "Transform":
            {
              "@DEF":"TRANS0",
              "-children":[
                { "Transform":
                  {
                    "@translation":[-0.525,0.35,-1],
                    "-children":[
                      { "Shape":
                        {
                          "-appearance":
                            { "Appearance":
                              {
                                "-material":
                                  { "Material":
                                    {
                                      "@diffuseColor":[1,1,1]
                                    }
                                  }
                              }
                            },
                          "-geometry":
                            { "Text":
                              {
                                "@DEF":"TYPESTRING2",
                                "@string":["Default speed of 1 meter/sec"],
                                "-fontStyle":
                                  { "FontStyle":
                                    {
                                      "@size":0.1
                                    }
                                  }
                              }
                            }
                        }
                      }
                    ]
                  }
                }
              ]
            }
          },
          { "Transform":
            {
              "@DEF":"TRANS1",
              "-children":[
                { "Transform":
                  {
                    "@translation":[-0.15,-0.4,-1],
                    "-children":[
                      { "Shape":
                        {
                          "-appearance":
                            { "Appearance":
                              {
                                "-material":
                                  { "Material":
                                    {
                                      "@diffuseColor":[0,0,0]
                                    }
                                  }
                              }
                            },
                          "-geometry":
                            { "Text":
                              {
                                "@DEF":"TYPESTRING1",
                                "@string":["speed = 0"],
                                "-fontStyle":
                                  { "FontStyle":
                                    {
                                      "@size":0.1
                                    }
                                  }
                              }
                            }
                        }
                      }
                    ]
                  }
                }
              ]
            }
          },
          { "Transform":
            {
              "@DEF":"TRANS2",
              "-children":[
                { "Transform":
                  {
                    "@translation":[-3.5,2,-10],
                    "-children":[
                      { "TouchSensor":
                        {
                          "@DEF":"TOUCH0",
                          "@description":"touch for speed=0"
                        }
                      },
                      { "Shape":
                        {
                          "-appearance":
                            { "Appearance":
                              {
                                "-texture":
                                  { "ImageTexture":
                                    {
                                      "@url":["speed_0.jpg","https://www.web3d.org/x3d/content/examples/ConformanceNist/BindableNodes/NavigationInfo/speed_0.jpg"]
                                    }
                                  },
                                "-material":
                                  { "Material":
                                    {
                                      "@diffuseColor":[1,0,0]
                                    }
                                  }
                              }
                            },
                          "-geometry":
                            { "Box":
                              {
                                "@size":[2,1.5,0.1]
                              }
                            }
                        }
                      }
                    ]
                  }
                }
              ]
            }
          },
          { "Transform":
            {
              "@DEF":"TRANS4",
              "-children":[
                { "Transform":
                  {
                    "@translation":[-3.5,0,-10],
                    "-children":[
                      { "TouchSensor":
                        {
                          "@DEF":"TOUCH100",
                          "@description":"touch for speed=100"
                        }
                      },
                      { "Shape":
                        {
                          "-appearance":
                            { "Appearance":
                              {
                                "-texture":
                                  { "ImageTexture":
                                    {
                                      "@url":["speed_100.jpg","https://www.web3d.org/x3d/content/examples/ConformanceNist/BindableNodes/NavigationInfo/speed_100.jpg"]
                                    }
                                  },
                                "-material":
                                  { "Material":
                                    {
                                      "@diffuseColor":[0,1,0]
                                    }
                                  }
                              }
                            },
                          "-geometry":
                            { "Box":
                              {
                                "@size":[2,1.5,0.1]
                              }
                            }
                        }
                      }
                    ]
                  }
                }
              ]
            }
          },
          { "Script":
            {
              "@DEF":"SPEEDSCRIPT",
              "@directOutput":true,
              "@url":["speed_range.js","https://www.web3d.org/x3d/content/examples/ConformanceNist/BindableNodes/NavigationInfo/speed_range.js"],
              "field": [
                {
                  "@name":"proxSensor",
                  "@accessType":"initializeOnly",
                  "@type":"SFNode",
                  "-children":[
                    { "ProximitySensor":
                      {
                        "@USE":"PROX_SENSOR"
                      }
                    }
                  ]
                },
                {
                  "@name":"trans1",
                  "@accessType":"initializeOnly",
                  "@type":"SFNode",
                  "-children":[
                    { "Transform":
                      {
                        "@USE":"TRANS1"
                      }
                    }
                  ]
                },
                {
                  "@name":"typestring1",
                  "@accessType":"initializeOnly",
                  "@type":"SFNode",
                  "-children":[
                    { "Text":
                      {
                        "@USE":"TYPESTRING1"
                      }
                    }
                  ]
                },
                {
                  "@name":"typestring2",
                  "@accessType":"initializeOnly",
                  "@type":"SFNode",
                  "-children":[
                    { "Text":
                      {
                        "@USE":"TYPESTRING2"
                      }
                    }
                  ]
                },
                {
                  "@name":"previousTime",
                  "@accessType":"initializeOnly",
                  "@type":"SFTime",
                  "@value":0
                },
                {
                  "@name":"previousLoc",
                  "@accessType":"initializeOnly",
                  "@type":"SFVec3f",
                  "@value":[0,0,100]
                },
                {
                  "@name":"currentLoc",
                  "@accessType":"initializeOnly",
                  "@type":"SFVec3f",
                  "@value":[0,0,10]
                },
                {
                  "@name":"view0",
                  "@accessType":"initializeOnly",
                  "@type":"SFNode",
                  "-children":[
                    { "Viewpoint":
                      {
                        "@USE":"VIEW0"
                      }
                    }
                  ]
                },
                {
                  "@name":"view1",
                  "@accessType":"initializeOnly",
                  "@type":"SFNode",
                  "-children":[
                    { "Viewpoint":
                      {
                        "@USE":"VIEW1"
                      }
                    }
                  ]
                },
                {
                  "@name":"view10",
                  "@accessType":"initializeOnly",
                  "@type":"SFNode",
                  "-children":[
                    { "Viewpoint":
                      {
                        "@USE":"VIEW10"
                      }
                    }
                  ]
                },
                {
                  "@name":"nav1",
                  "@accessType":"initializeOnly",
                  "@type":"SFNode",
                  "-children":[
                    { "NavigationInfo":
                      {
                        "@USE":"NAV1"
                      }
                    }
                  ]
                },
                {
                  "@name":"position",
                  "@accessType":"initializeOnly",
                  "@type":"SFVec3f",
                  "@value":[0,0,0]
                },
                {
                  "@name":"zero",
                  "@accessType":"initializeOnly",
                  "@type":"MFString",
                  "@value":["current speed = 0"]
                },
                {
                  "@name":"emptyString",
                  "@accessType":"initializeOnly",
                  "@type":"MFString"
                },
                {
                  "@name":"setZeroSpeedString",
                  "@accessType":"initializeOnly",
                  "@type":"MFString",
                  "@value":["Click to set speed to 0 meters/sec"]
                },
                {
                  "@name":"speedSetToZeroString",
                  "@accessType":"initializeOnly",
                  "@type":"MFString",
                  "@value":["Speed set to 0 meters/sec"]
                },
                {
                  "@name":"setHundredSpeedString",
                  "@accessType":"initializeOnly",
                  "@type":"MFString",
                  "@value":["Click to set speed to 100 meters/sec"]
                },
                {
                  "@name":"speedSetToHundredString",
                  "@accessType":"initializeOnly",
                  "@type":"MFString",
                  "@value":["Speed set to 100 meters/sec"]
                },
                {
                  "@name":"printSpeed",
                  "@accessType":"inputOnly",
                  "@type":"SFVec3f"
                },
                {
                  "@name":"changeSpeed0",
                  "@accessType":"inputOnly",
                  "@type":"SFBool"
                },
                {
                  "@name":"changeSpeed100",
                  "@accessType":"inputOnly",
                  "@type":"SFBool"
                },
                {
                  "@name":"printZeroSpeed",
                  "@accessType":"inputOnly",
                  "@type":"SFBool"
                },
                {
                  "@name":"printHundredSpeed",
                  "@accessType":"inputOnly",
                  "@type":"SFBool"
                },
                {
                  "@name":"printZero",
                  "@accessType":"inputOnly",
                  "@type":"SFTime"
                }
              ]
            }
          },
          { "ROUTE":
            {
              "@fromField":"isActive",
              "@fromNode":"TOUCH0",
              "@toField":"changeSpeed0",
              "@toNode":"SPEEDSCRIPT"
            }
          },
          { "ROUTE":
            {
              "@fromField":"isOver",
              "@fromNode":"TOUCH0",
              "@toField":"printZeroSpeed",
              "@toNode":"SPEEDSCRIPT"
            }
          },
          { "ROUTE":
            {
              "@fromField":"isActive",
              "@fromNode":"TOUCH100",
              "@toField":"changeSpeed100",
              "@toNode":"SPEEDSCRIPT"
            }
          },
          { "ROUTE":
            {
              "@fromField":"isOver",
              "@fromNode":"TOUCH100",
              "@toField":"printHundredSpeed",
              "@toNode":"SPEEDSCRIPT"
            }
          },
          { "ROUTE":
            {
              "@fromField":"position_changed",
              "@fromNode":"PROX_SENSOR",
              "@toField":"printSpeed",
              "@toNode":"SPEEDSCRIPT"
            }
          },
          { "ROUTE":
            {
              "@fromField":"position_changed",
              "@fromNode":"PROX_SENSOR",
              "@toField":"set_translation",
              "@toNode":"TRANS0"
            }
          },
          { "ROUTE":
            {
              "@fromField":"orientation_changed",
              "@fromNode":"PROX_SENSOR",
              "@toField":"set_rotation",
              "@toNode":"TRANS0"
            }
          },
          { "ROUTE":
            {
              "@fromField":"position_changed",
              "@fromNode":"PROX_SENSOR",
              "@toField":"set_translation",
              "@toNode":"TRANS1"
            }
          },
          { "ROUTE":
            {
              "@fromField":"orientation_changed",
              "@fromNode":"PROX_SENSOR",
              "@toField":"set_rotation",
              "@toNode":"TRANS1"
            }
          },
          { "ROUTE":
            {
              "@fromField":"position_changed",
              "@fromNode":"PROX_SENSOR",
              "@toField":"set_translation",
              "@toNode":"TRANS2"
            }
          },
          { "ROUTE":
            {
              "@fromField":"orientation_changed",
              "@fromNode":"PROX_SENSOR",
              "@toField":"set_rotation",
              "@toNode":"TRANS2"
            }
          },
          { "ROUTE":
            {
              "@fromField":"position_changed",
              "@fromNode":"PROX_SENSOR",
              "@toField":"set_translation",
              "@toNode":"TRANS4"
            }
          },
          { "ROUTE":
            {
              "@fromField":"orientation_changed",
              "@fromNode":"PROX_SENSOR",
              "@toField":"set_rotation",
              "@toNode":"TRANS4"
            }
          },
          { "ROUTE":
            {
              "@fromField":"cycleTime",
              "@fromNode":"TIME",
              "@toField":"printZero",
              "@toNode":"SPEEDSCRIPT"
            }
          }
        ]
    }
  }
}