{ "X3D": {
    "encoding":"UTF-8",
    "@profile":"Interactive",
    "@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":"UnderstandingSceneGraphsTouchToLight.x3d"
          },
          {
            "@name":"description",
            "@content":"Put mouse (or pointing device) over ball to turn on light. Demonstration example used in Doctor Dobb's Journal (DDJ) article."
          },
          {
            "@name":"creator",
            "@content":"Aaron Walsh, Mantiscorp Development"
          },
          {
            "@name":"reference",
            "@content":"aaron@mantiscorp.com(Aaron Walsh)?subject=Understanding Scene Graphs - example feedback"
          },
          {
            "@name":"reference",
            "@content":"http://www.mantiscorp.com/people/aew"
          },
          {
            "@name":"created",
            "@content":"9 April 2002"
          },
          {
            "@name":"modified",
            "@content":"20 October 2019"
          },
          {
            "@name":"reference",
            "@content":"http://www.ddj.com"
          },
          {
            "@name":"reference",
            "@content":"UnderstandingSceneGraphs.pdf"
          },
          {
            "@name":"reference",
            "@content":"https://www.web3d.org/x3d/content/examples/Basic/development/UnderstandingSceneGraphs.pdf"
          },
          {
            "@name":"identifier",
            "@content":"https://www.web3d.org/x3d/content/examples/Basic/development/UnderstandingSceneGraphsTouchToLight.x3d"
          },
          {
            "@name":"translator",
            "@content":"Don Brutzman, NPS"
          },
          {
            "@name":"generator",
            "@content":"Vrml97ToX3dNist, http://ovrt.nist.gov/v2_x3d.html"
          },
          {
            "@name":"generator",
            "@content":"X3D-Edit 3.3, https://www.web3d.org/x3d/tools/X3D-Edit"
          },
          {
            "@name":"license",
            "@content":"../license.html"
          },
          {
            "@name":"translated",
            "@content":"20 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":"UnderstandingSceneGraphsTouchToLight.x3d"
            }
          },
          { "Group":
            {
              "-children":[
                { "Shape":
                  {
                    "-appearance":
                      { "Appearance":
                        {
                          "-material":
                            { "Material":
                              {
                              }
                            }
                        }
                      },
                    "-geometry":
                      { "Sphere":
                        {
                        }
                      }
                  }
                },
                {
                  "#comment":"define sensor"
                },
                { "TouchSensor":
                  {
                    "@DEF":"TOUCH",
                    "@description":"hold pointing device over geometry to turn on light"
                  }
                },
                {
                  "#comment":"define light, R G B color"
                },
                { "DirectionalLight":
                  {
                    "@DEF":"LIGHT",
                    "@color":[1.0,1.0,0.0],
                    "@on":false
                  }
                },
                { "ROUTE":
                  {
                    "@fromField":"isOver",
                    "@fromNode":"TOUCH",
                    "@toField":"set_on",
                    "@toNode":"LIGHT"
                  }
                }
              ]
            }
          }
        ]
    }
  }
}