{ "X3D": {
    "encoding":"UTF-8",
    "@profile":"Interchange",
    "@version":"3.0",
    "@xsd:noNamespaceSchemaLocation":"http://www.web3d.org/specifications/x3d-3.0.xsd",
    "JSON schema":"http://www.web3d.org/specifications/x3d-3.3-JSONSchema.json",
    "head": {
        "meta": [
          {
            "@name":"title",
            "@content":"Figure08.3PositionInterpolator.x3d"
          },
          {
            "@name":"reference",
            "@content":"http://www.wiley.com/legacy/compbooks/vrml2sbk/ch08/08fig03.htm"
          },
          {
            "@name":"creator",
            "@content":"Don Brutzman"
          },
          {
            "@name":"created",
            "@content":"8 August 2000"
          },
          {
            "@name":"modified",
            "@content":"11 January 2014"
          },
          {
            "@name":"description",
            "@content":"Simple PositionInterpolator example. An animation that moves a coordinate system and the cube built within it along a bouncing path."
          },
          {
            "@name":"reference",
            "@content":"PositionInterpolatorPathMapDiagram.png"
          },
          {
            "@name":"identifier",
            "@content":"http://www.web3d.org/x3d/content/examples/Vrml2Sourcebook/Chapter08-AnimatingPositionOrientationScale/Figure08.3PositionInterpolator.x3d"
          },
          {
            "@name":"generator",
            "@content":"X3D-Edit 3.3, https://savage.nps.edu/X3D-Edit"
          },
          {
            "@name":"license",
            "@content":"../../license.html"
          },
          {
            "@name":"translated",
            "@content":"19 March 2017"
          },
          {
            "@name":"generator",
            "@content":"X3dToJson.xslt, http://www.web3d.org/x3d/stylesheets/X3dToJson.html"
          },
          {
            "@name":"warning",
            "@content":"An experimental version of X3D JSON encoding is used for this scene.  Status online at http://www.web3d.org/wiki/index.php/X3D_JSON_Encoding"
          }
        ]
    },
    "Scene": {
        "-children":[
          { "NavigationInfo":
            {
            }
          },
          {
            "#comment":"Animation clock"
          },
          { "TimeSensor":
            {
              "@DEF":"CLOCK",
              "@cycleInterval":4,
              "@loop":true
            }
          },
          {
            "#comment":"Key locations in the animation path are captured in the PositionInterpolator."
          },
          {
            "#comment":"Intermediate position values are interpolated between key locations."
          },
          { "PositionInterpolator":
            {
              "@DEF":"CUBEPATH",
              "@key":[0.00,0.11,0.17,0.22,0.33,0.44,0.50,0.55,0.66,0.77,0.83,0.88,0.99],
              "@keyValue":[0.0,0.0,0.0,1.0,1.96,1.0,1.5,2.21,1.5,2.0,1.96,2.0,3.0,0.0,3.0,2.0,1.96,3.0,1.5,2.21,3.0,1.0,1.96,3.0,0.0,0.0,3.0,0.0,1.96,2.0,0.0,2.21,1.5,0.0,1.96,1.0,0.0,0.0,0.0]
            }
          },
          { "ROUTE":
            {
              "@fromField":"fraction_changed",
              "@fromNode":"CLOCK",
              "@toField":"set_fraction",
              "@toNode":"CUBEPATH"
            }
          },
          {
            "#comment":"Moving box is rotated slightly to better show its shape."
          },
          { "Transform":
            {
              "@DEF":"BOUNCINGBOXTRANSFORM",
              "@rotation":[0,1,0,0.78],
              "-children":[
                { "Shape":
                  {
                    "-appearance":
                      { "Appearance":
                        {
                          "-material":
                            { "Material":
                              {
                                "@diffuseColor":[0.8,0.8,0.2]
                              }
                            }
                        }
                      },
                    "-geometry":
                      { "Box":
                        {
                          "@size":[1,1.5,1]
                        }
                      }
                  }
                }
              ]
            }
          },
          { "ROUTE":
            {
              "@fromField":"value_changed",
              "@fromNode":"CUBEPATH",
              "@toField":"set_translation",
              "@toNode":"BOUNCINGBOXTRANSFORM"
            }
          }
        ]
    }
  }
}