{ "X3D": {
    "encoding":"UTF-8",
    "@profile":"Immersive",
    "@version":"3.2",
    "@xsd:noNamespaceSchemaLocation":"https://www.web3d.org/specifications/x3d-3.2.xsd",
    "JSON schema":"https://www.web3d.org/specifications/x3d-4.0-JSONSchema.autogenerated.json",
    "head": {
        "component": [
          {
            "@name":"DIS",
            "@level":1
          }
        ],
        "meta": [
          {
            "@name":"title",
            "@content":"PiracyDisHelloWorld.x3d"
          },
          {
            "@name":"description",
            "@content":"Counter-piracy patrol using DIS networking protocol, with animation provided by separate Java classes for patrolling helicopter and pirate skiff. Directions: \"ant run.PiracyScenario\" invokes Java programs which send animation PDUs."
          },
          {
            "@name":"creator",
            "@content":"Chad R Hutchins"
          },
          {
            "@name":"created",
            "@content":"25 March 2012"
          },
          {
            "@name":"modified",
            "@content":"20 October 2019"
          },
          {
            "@name":"reference",
            "@content":"build.xml"
          },
          {
            "@name":"reference",
            "@content":"javadoc/index.html"
          },
          {
            "@name":"reference",
            "@content":"http://www.3dtexture.net/img-blue-water-ocean-texture-250.htm"
          },
          {
            "@name":"Image",
            "@content":"BlueWaterOceanTexture.jpg"
          },
          {
            "@name":"subject",
            "@content":"Piracy Distributed Interactive Simulation"
          },
          {
            "@name":"identifier",
            "@content":"https://www.web3d.org/x3d/content/examples/Savage/Scenarios/PiracyIncidents/PiracyDisHelloWorld.x3d"
          },
          {
            "@name":"generator",
            "@content":"X3D-Edit, 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":[
          {
            "#comment":"Viewpoints"
          },
          { "WorldInfo":
            {
              "@title":"PiracyDisHelloWorld.x3d"
            }
          },
          { "Viewpoint":
            {
              "@description":"Starting Point",
              "@orientation":[1,0,0,-0.1636],
              "@position":[0,10,40]
            }
          },
          { "Viewpoint":
            {
              "@description":"Looking from -80 meters out",
              "@fieldOfView":1.3963,
              "@orientation":[-0.0017,0.9983,0.0584,3.0829],
              "@position":[0,10,-80]
            }
          },
          { "Viewpoint":
            {
              "@description":"UAV View",
              "@fieldOfView":1.57079,
              "@orientation":[0,0.7415,0.671,-3.1416],
              "@position":[0,75,0]
            }
          },
          {
            "#comment":"Ocean"
          },
          { "Transform":
            {
              "@DEF":"OceanTransform",
              "@translation":[0,0.5,0],
              "-children":[
                { "Shape":
                  {
                    "-geometry":
                      { "Box":
                        {
                          "@size":[600,1,500]
                        }
                      },
                    "-appearance":
                      { "Appearance":
                        {
                          "-material":
                            { "Material":
                              {
                                "@diffuseColor":[0.380392,0.607843,1]
                              }
                            },
                          "-texture":
                            { "ImageTexture":
                              {
                                "@url":["BlueWaterOceanTexture.jpg","https://www.web3d.org/x3d/content/examples/Savage/ShipsCivilian/Piracy/Ocean.ppg"]
                              }
                            }
                        }
                      }
                  }
                }
              ]
            }
          },
          {
            "#comment":"Ocean interpolator, time sensor, and route"
          },
          { "PositionInterpolator":
            {
              "@DEF":"OceanMover",
              "@key":[0,0.2,0.4,0.6,0.8,0.9,1],
              "@keyValue":[0,-0.9,0,0,-0.8,0,0,-1,0,0,-0.9,0,0,-0.8,0,0,-1,0,0,-0.9,0]
            }
          },
          { "TimeSensor":
            {
              "@DEF":"OceanTimer",
              "@cycleInterval":7,
              "@loop":true
            }
          },
          { "ROUTE":
            {
              "@fromField":"value_changed",
              "@fromNode":"OceanMover",
              "@toField":"set_translation",
              "@toNode":"OceanTransform"
            }
          },
          { "ROUTE":
            {
              "@fromField":"fraction_changed",
              "@fromNode":"OceanTimer",
              "@toField":"set_fraction",
              "@toNode":"OceanMover"
            }
          },
          {
            "#comment":"Entities"
          },
          { "EspduTransform":
            {
              "@address":"239.1.2.3",
              "@entityID":1,
              "@marking":"PirateSkiff",
              "@networkMode":"networkReader",
              "@port":62040,
              "@translation":[0,1,0],
              "-children":[
                { "Inline":
                  {
                    "@DEF":"PirateSkiff",
                    "@url":["../../ShipsCivilian/Piracy/PirateMotherSkiff.x3d","https://www.web3d.org/x3d/content/examples/Savage/ShipsCivilian/Piracy/PirateMotherSkiff.x3d"]
                  }
                }
              ]
            }
          },
          { "EspduTransform":
            {
              "@address":"239.1.2.3",
              "@entityID":2,
              "@marking":"Helicopter",
              "@networkMode":"networkReader",
              "@port":62040,
              "@translation":[0,10,0],
              "-children":[
                { "Inline":
                  {
                    "@DEF":"Helicopter",
                    "@url":["../../AircraftHelicopters/SH60SeahawkUnitedStates/SH60Seahawk.x3d","https://www.web3d.org/x3d/content/examples/Savage/AircraftHelicopters/SH60SeahawkUnitedStates/SH60Seahawk.x3d"]
                  }
                }
              ]
            }
          }
        ]
    }
  }
}