{ "X3D": {
    "encoding":"UTF-8",
    "@profile":"Interactive",
    "@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":"Figure09.5FourStackingBlocks.x3d"
          },
          {
            "@name":"creator",
            "@content":"Figure 9.5, The VRML 2.0 Sourcebook, Copyright [1997] By Andrea L. Ames, David R. Nadeau, and John L. Moreland"
          },
          {
            "@name":"reference",
            "@content":"http://www.wiley.com/legacy/compbooks/vrml2sbk/ch09/09fig05.htm"
          },
          {
            "@name":"transcriber",
            "@content":"Don Brutzman"
          },
          {
            "@name":"created",
            "@content":"9 August 2000"
          },
          {
            "@name":"modified",
            "@content":"1 February 2014"
          },
          {
            "@name":"description",
            "@content":"Four stacking blocks, select and drag to see each of them."
          },
          {
            "@name":"identifier",
            "@content":"http://www.web3d.org/x3d/content/examples/Vrml2Sourcebook/Chapter09-SensingViewer/Figure09.5FourStackingBlocks.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":[
          { "Viewpoint":
            {
              "@description":"Hello Cubes.",
              "@position":[0,0,15]
            }
          },
          {
            "#comment":"Dragging Orderly Cubes. Superfluous Group nodes removed."
          },
          { "Transform":
            {
              "@DEF":"BLOCK_1_TRANSFORM",
              "-children":[
                { "Shape":
                  {
                    "-geometry":
                      { "Box":
                        {
                        }
                      },
                    "-appearance":
                      { "Appearance":
                        {
                          "-material":
                            { "Material":
                              {
                                "@diffuseColor":[0.5,0.5,0.5],
                                "@emissiveColor":[0.5,0,0]
                              }
                            }
                        }
                      }
                  }
                },
                { "PlaneSensor":
                  {
                    "@DEF":"BLOCK_1_SENSOR",
                    "@description":"Click and drag to move box",
                    "@maxPosition":[3,3],
                    "@minPosition":[-3,-3]
                  }
                }
              ]
            }
          },
          { "Transform":
            {
              "@DEF":"BLOCK_2_TRANSFORM",
              "-children":[
                { "Shape":
                  {
                    "-geometry":
                      { "Box":
                        {
                        }
                      },
                    "-appearance":
                      { "Appearance":
                        {
                          "-material":
                            { "Material":
                              {
                                "@diffuseColor":[0.5,0.5,0.5],
                                "@emissiveColor":[0,0.5,0]
                              }
                            }
                        }
                      }
                  }
                },
                { "PlaneSensor":
                  {
                    "@DEF":"BLOCK_2_SENSOR",
                    "@description":"Click and drag to move box",
                    "@maxPosition":[3,3],
                    "@minPosition":[-3,-3],
                    "@offset":[2.5,0,0]
                  }
                }
              ]
            }
          },
          { "Transform":
            {
              "@DEF":"BLOCK_3_TRANSFORM",
              "-children":[
                { "Shape":
                  {
                    "-geometry":
                      { "Box":
                        {
                        }
                      },
                    "-appearance":
                      { "Appearance":
                        {
                          "-material":
                            { "Material":
                              {
                                "@diffuseColor":[0.5,0.5,0.5],
                                "@emissiveColor":[0,0,0.5]
                              }
                            }
                        }
                      }
                  }
                },
                { "PlaneSensor":
                  {
                    "@DEF":"BLOCK_3_SENSOR",
                    "@description":"Click and drag to move box",
                    "@maxPosition":[3,3],
                    "@minPosition":[-3,-3],
                    "@offset":[-1.5,-2,0]
                  }
                }
              ]
            }
          },
          { "Transform":
            {
              "@DEF":"BLOCK_4_TRANSFORM",
              "-children":[
                { "Shape":
                  {
                    "-geometry":
                      { "Box":
                        {
                        }
                      },
                    "-appearance":
                      { "Appearance":
                        {
                          "-material":
                            { "Material":
                              {
                                "@diffuseColor":[0.5,0.5,0.5],
                                "@emissiveColor":[0.5,0.5,0]
                              }
                            }
                        }
                      }
                  }
                },
                { "PlaneSensor":
                  {
                    "@DEF":"BLOCK_4_SENSOR",
                    "@description":"Click and drag to move box",
                    "@maxPosition":[3,3],
                    "@minPosition":[-3,-3],
                    "@offset":[0.75,4,0]
                  }
                }
              ]
            }
          },
          {
            "#comment":"Note that we are connecting a translation (Vec3F) output to a translation (Vec3F) input in these ROUTEs."
          },
          { "ROUTE":
            {
              "@fromField":"translation_changed",
              "@fromNode":"BLOCK_1_SENSOR",
              "@toField":"set_translation",
              "@toNode":"BLOCK_1_TRANSFORM"
            }
          },
          { "ROUTE":
            {
              "@fromField":"translation_changed",
              "@fromNode":"BLOCK_2_SENSOR",
              "@toField":"set_translation",
              "@toNode":"BLOCK_2_TRANSFORM"
            }
          },
          { "ROUTE":
            {
              "@fromField":"translation_changed",
              "@fromNode":"BLOCK_3_SENSOR",
              "@toField":"set_translation",
              "@toNode":"BLOCK_3_TRANSFORM"
            }
          },
          { "ROUTE":
            {
              "@fromField":"translation_changed",
              "@fromNode":"BLOCK_4_SENSOR",
              "@toField":"set_translation",
              "@toNode":"BLOCK_4_TRANSFORM"
            }
          }
        ]
    }
  }
}