{ "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":"ExplosionExample.x3d"
          },
          {
            "@name":"description",
            "@content":"Animated explosion with sound implemented as a prototype instance"
          },
          {
            "@name":"creator",
            "@content":"Don Brutzman"
          },
          {
            "@name":"created",
            "@content":"29 September 2007"
          },
          {
            "@name":"modified",
            "@content":"15 April 2011"
          },
          {
            "@name":"Image",
            "@content":"ExplosionPrototypeExample.png"
          },
          {
            "@name":"MovingImage",
            "@content":"ExplosionExampleVideo.mov"
          },
          {
            "@name":"reference",
            "@content":"ExplosionPrototype.x3d"
          },
          {
            "@name":"identifier",
            "@content":"https://www.web3d.org/x3d/content/examples/Savage/Tools/Explosions/ExplosionExample.x3d"
          },
          {
            "@name":"generator",
            "@content":"X3D-Edit 3.2, https://www.web3d.org/x3d/tools/X3D-Edit"
          },
          {
            "@name":"generator",
            "@content":"Vrml97ToX3dNist, http://ovrt.nist.gov/v2_x3d.html"
          },
          {
            "@name":"license",
            "@content":"../../license.html"
          },
          {
            "@name":"translated",
            "@content":"26 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":"ExplosionExample.x3d"
            }
          },
          { "ExternProtoDeclare":
            {
              "@name":"Explosion",
              "@appinfo":"Simple explosion animation of a sphere covered with a flame texture, plus a sound effect",
              "@url":["ExplosionPrototype.x3d#Explosion","../../../Savage/Tools/Explosions/ExplosionPrototype.x3d#Explosion","https://www.web3d.org/x3d/content/examples/Savage/Tools/Explosions/ExplosionPrototype.x3d#Explosion","ExplosionPrototype.wrl#Explosion","../../../Savage/Tools/Explosions/ExplosionPrototype.wrl#Explosion","https://www.web3d.org/x3d/content/examples/Savage/Tools/Explosions/ExplosionPrototype.wrl#Explosion"],
              "field": [
                {
                  "@name":"detonateTime",
                  "@accessType":"inputOnly",
                  "@appinfo":"time event to trigger explosion",
                  "@type":"SFTime"
                },
                {
                  "@name":"size",
                  "@accessType":"inputOutput",
                  "@appinfo":"size of explosion sphere",
                  "@type":"SFVec3f"
                }
              ]
            }
          },
          { "ProtoInstance":
            {
              "@name":"Explosion",
              "@DEF":"ExplosionInstance",
              "fieldValue": [
                {
                  "@name":"size",
                  "@value":[3,3,3]
                }
              ]
            }
          },
          { "Group":
            {
              "-children":[
                { "TouchSensor":
                  {
                    "@DEF":"TextTouch",
                    "@description":"Click text to trigger explosion"
                  }
                },
                { "Shape":
                  {
                    "-geometry":
                      { "Text":
                        {
                          "@string":["Click text to trigger","explosion prototype"],
                          "-fontStyle":
                            { "FontStyle":
                              {
                                "@justify":["MIDDLE","MIDDLE"]
                              }
                            }
                        }
                      },
                    "-appearance":
                      { "Appearance":
                        {
                          "-material":
                            { "Material":
                              {
                                "@diffuseColor":[0.2,0.2,0.8]
                              }
                            }
                        }
                      }
                  }
                },
                { "ROUTE":
                  {
                    "@fromField":"touchTime",
                    "@fromNode":"TextTouch",
                    "@toField":"detonateTime",
                    "@toNode":"ExplosionInstance"
                  }
                }
              ]
            }
          }
        ]
    }
  }
}