{ "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":"PhysicsBasedExplosionPrototype.x3d"
          },
          {
            "@name":"description",
            "@content":"A physics-based explosion model for 1/3 ton of TNT from the US Army's TNT Equivalency Model for modeling the attack on the USS COLE by Al-Qaida. Takes an input time as trigger parameter. Rings correspond to levels of damage on steel(unclass levels for representation purposes)."
          },
          {
            "@name":"creator",
            "@content":"James Harney"
          },
          {
            "@name":"created",
            "@content":"13 October 2001"
          },
          {
            "@name":"modified",
            "@content":"20 October 2019"
          },
          {
            "@name":"reference",
            "@content":"http://www.foia.navy.mil/usscole/index.html"
          },
          {
            "@name":"reference",
            "@content":"http//www.fas.org/man/dod-101/navy/docs/es310/warheads/Warheads.htm"
          },
          {
            "@name":"reference",
            "@content":"http//www.fas.org/man/dod-101/navy/docs/es310/dam_crit/dam_crit.htm"
          },
          {
            "@name":"reference",
            "@content":"http//www.eqe.com/publications/revf94/blast.htm"
          },
          {
            "@name":"reference",
            "@content":"http//www.siggraph.org/education/materials/HyperGraph/animation/particle.htm"
          },
          {
            "@name":"subject",
            "@content":"TNT Equivalency Based Explosion, VRML X3D"
          },
          {
            "@name":"identifier",
            "@content":"https://www.web3d.org/x3d/content/examples/Savage/Scenarios/UssColeTerroristAttack/PhysicsBasedExplosionPrototype.x3d"
          },
          {
            "@name":"generator",
            "@content":"X3D-Edit 3.2, https://www.web3d.org/x3d/tools/X3D-Edit"
          },
          {
            "@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":"PhysicsBasedExplosionPrototype.x3d"
            }
          },
          { "ProtoDeclare":
            {
              "@name":"TNTBasedExplosion",
              "@appinfo":"Physics-based explosion model",
              "ProtoInterface": {
                  "field": [
                    {
                      "@name":"startExplosion",
                      "@accessType":"inputOnly",
                      "@type":"SFTime"
                    }
                  ]
              },
              "ProtoBody": {
                  "-children":[
                    { "Group":
                      {
                        "-children":[
                          { "Group":
                            {
                              "-children":[
                                { "Transform":
                                  {
                                    "@DEF":"InnerRingTrans",
                                    "-children":[
                                      { "Transform":
                                        {
                                          "@DEF":"InnerRing",
                                          "@scale":[0.01,0.01,0.01],
                                          "-children":[
                                            { "Shape":
                                              {
                                                "-geometry":
                                                  { "Sphere":
                                                    {
                                                    }
                                                  },
                                                "-appearance":
                                                  { "Appearance":
                                                    {
                                                      "-material":
                                                        { "Material":
                                                          {
                                                            "@diffuseColor":[0.9333,0.9333,0],
                                                            "@shininess":1
                                                          }
                                                        }
                                                    }
                                                  }
                                              }
                                            }
                                          ]
                                        }
                                      }
                                    ]
                                  }
                                },
                                { "Transform":
                                  {
                                    "@DEF":"MiddleRingTrans",
                                    "-children":[
                                      { "Transform":
                                        {
                                          "@DEF":"MiddleRing",
                                          "@scale":[0.01,0.01,0.01],
                                          "-children":[
                                            { "Shape":
                                              {
                                                "-geometry":
                                                  { "Sphere":
                                                    {
                                                    }
                                                  },
                                                "-appearance":
                                                  { "Appearance":
                                                    {
                                                      "-material":
                                                        { "Material":
                                                          {
                                                            "@diffuseColor":[1,0.2,0],
                                                            "@shininess":1,
                                                            "@transparency":0.5
                                                          }
                                                        }
                                                    }
                                                  }
                                              }
                                            }
                                          ]
                                        }
                                      }
                                    ]
                                  }
                                },
                                { "Transform":
                                  {
                                    "@DEF":"OuterRingTrans",
                                    "-children":[
                                      { "Transform":
                                        {
                                          "@DEF":"OuterRing",
                                          "@scale":[0.01,0.01,0.01],
                                          "-children":[
                                            { "Shape":
                                              {
                                                "-geometry":
                                                  { "Sphere":
                                                    {
                                                    }
                                                  },
                                                "-appearance":
                                                  { "Appearance":
                                                    {
                                                      "-material":
                                                        { "Material":
                                                          {
                                                            "@diffuseColor":[0.8,0.8,0.8],
                                                            "@shininess":0.2,
                                                            "@transparency":0.8
                                                          }
                                                        }
                                                    }
                                                  }
                                              }
                                            }
                                          ]
                                        }
                                      }
                                    ]
                                  }
                                },
                                { "Sound":
                                  {
                                    "@maxBack":50000,
                                    "@maxFront":50000,
                                    "-source":
                                      { "AudioClip":
                                        {
                                          "@DEF":"Explode",
                                          "@description":"Explode!",
                                          "@url":["../../Scenarios/UssColeTerroristAttack/EXP03.wav","EXP03.wav","https://www.web3d.org/x3d/content/examples/Savage/Scenarios/UssColeTerroristAttack/EXP03.wav"]
                                        }
                                      }
                                  }
                                }
                              ]
                            }
                          },
                          { "TimeSensor":
                            {
                              "@DEF":"ExplosionClock",
                              "@cycleInterval":3,
                              "IS": {
                                  "connect": [
                                    {
                                      "@nodeField":"startTime",
                                      "@protoField":"startExplosion"
                                    }
                                  ]
                              }
                            }
                          },
                          { "TimeSensor":
                            {
                              "@DEF":"OuterClock",
                              "@cycleInterval":10
                            }
                          },
                          {
                            "#comment":"The explosion rings are based on the effects of approximately 1/3 ton of TNT."
                          },
                          { "PositionInterpolator":
                            {
                              "@DEF":"InnerRingInterp",
                              "@key":[0,0.1,1],
                              "@keyValue":[0.01,0.01,0.01,9.975,9.975,9.975,0.01,0.01,0.01]
                            }
                          },
                          { "PositionInterpolator":
                            {
                              "@DEF":"MiddleRingInterp",
                              "@key":[0,0.1,1],
                              "@keyValue":[0.01,0.01,0.01,12.635,12.635,12.635,0.01,0.01,0.01]
                            }
                          },
                          { "PositionInterpolator":
                            {
                              "@DEF":"OuterRingInterp",
                              "@key":[0,0.2,1],
                              "@keyValue":[0.01,0.01,0.01,13.965,13.965,13.965,0.01,0.01,0.01]
                            }
                          },
                          { "PositionInterpolator":
                            {
                              "@DEF":"TransInterp",
                              "@key":[0,1],
                              "@keyValue":[0,0,0,0,4,1]
                            }
                          }
                        ]
                      }
                    },
                    { "ROUTE":
                      {
                        "@fromField":"startTime",
                        "@fromNode":"ExplosionClock",
                        "@toField":"startTime",
                        "@toNode":"OuterClock"
                      }
                    },
                    { "ROUTE":
                      {
                        "@fromField":"fraction_changed",
                        "@fromNode":"ExplosionClock",
                        "@toField":"set_fraction",
                        "@toNode":"InnerRingInterp"
                      }
                    },
                    { "ROUTE":
                      {
                        "@fromField":"fraction_changed",
                        "@fromNode":"ExplosionClock",
                        "@toField":"set_fraction",
                        "@toNode":"MiddleRingInterp"
                      }
                    },
                    { "ROUTE":
                      {
                        "@fromField":"fraction_changed",
                        "@fromNode":"OuterClock",
                        "@toField":"set_fraction",
                        "@toNode":"OuterRingInterp"
                      }
                    },
                    { "ROUTE":
                      {
                        "@fromField":"value_changed",
                        "@fromNode":"InnerRingInterp",
                        "@toField":"set_scale",
                        "@toNode":"InnerRing"
                      }
                    },
                    { "ROUTE":
                      {
                        "@fromField":"value_changed",
                        "@fromNode":"MiddleRingInterp",
                        "@toField":"set_scale",
                        "@toNode":"MiddleRing"
                      }
                    },
                    { "ROUTE":
                      {
                        "@fromField":"value_changed",
                        "@fromNode":"OuterRingInterp",
                        "@toField":"set_scale",
                        "@toNode":"OuterRing"
                      }
                    },
                    { "ROUTE":
                      {
                        "@fromField":"startTime",
                        "@fromNode":"ExplosionClock",
                        "@toField":"startTime",
                        "@toNode":"Explode"
                      }
                    },
                    { "ROUTE":
                      {
                        "@fromField":"fraction_changed",
                        "@fromNode":"ExplosionClock",
                        "@toField":"set_fraction",
                        "@toNode":"TransInterp"
                      }
                    },
                    { "ROUTE":
                      {
                        "@fromField":"value_changed",
                        "@fromNode":"TransInterp",
                        "@toField":"translation",
                        "@toNode":"InnerRingTrans"
                      }
                    },
                    { "ROUTE":
                      {
                        "@fromField":"value_changed",
                        "@fromNode":"TransInterp",
                        "@toField":"translation",
                        "@toNode":"MiddleRingTrans"
                      }
                    },
                    { "ROUTE":
                      {
                        "@fromField":"value_changed",
                        "@fromNode":"TransInterp",
                        "@toField":"translation",
                        "@toNode":"OuterRingTrans"
                      }
                    }
                  ]
              }
            }
          },
          { "NavigationInfo":
            {
              "@speed":10,
              "@type":["FLY","EXAMINE","ANY"],
              "@visibilityLimit":7000
            }
          },
          { "Background":
            {
              "@groundAngle":[1.309],
              "@groundColor":[0.2,0.2,0.8,0.2,0.2,1.0],
              "@skyAngle":[1.309,1.571],
              "@skyColor":[0.0,0.2,0.7,0.0,0.5,1.0,1.0,1.0,1.0]
            }
          },
          { "Viewpoint":
            {
              "@description":"Watch the Explosion",
              "@position":[0,0,12]
            }
          },
          { "Anchor":
            {
              "@description":"Example use",
              "@parameter":["target=_blank"],
              "@url":["PhysicsBasedExplosionExample.x3d","https://www.web3d.org/x3d/content/examples/Savage/Scenarios/UssColeTerroristAttack/PhysicsBasedExplosionExample.x3d","PhysicsBasedExplosionExample.wrl","https://www.web3d.org/x3d/content/examples/Savage/Scenarios/UssColeTerroristAttack/PhysicsBasedExplosionExample.wrl"],
              "-children":[
                { "Shape":
                  {
                    "-appearance":
                      { "Appearance":
                        {
                          "-material":
                            { "Material":
                              {
                                "@diffuseColor":[0.8,0.4,0]
                              }
                            }
                        }
                      },
                    "-geometry":
                      { "Text":
                        {
                          "@string":["PhysicsBasedExplosionPrototype.x3d","is a Prototype declaration file.","For an example scene using the node","click this text and view","PhysicsBasedExplosionExample"],
                          "-fontStyle":
                            { "FontStyle":
                              {
                                "@justify":["MIDDLE","MIDDLE"],
                                "@size":0.8
                              }
                            }
                        }
                      }
                  }
                }
              ]
            }
          }
        ]
    }
  }
}