{ "X3D": {
    "encoding":"UTF-8",
    "@profile":"Interchange",
    "@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":"SpaceAttack.x3d"
          },
          {
            "@name":"creator",
            "@content":"Mike Perry"
          },
          {
            "@name":"created",
            "@content":"17 August 2000"
          },
          {
            "@name":"modified",
            "@content":"28 November 2019"
          },
          {
            "@name":"description",
            "@content":"Three Space Ships Attack"
          },
          {
            "@name":"identifier",
            "@content":"https://www.web3d.org/x3d/content/examples/Savage/Space/SpaceAttack/SpaceAttack.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":[
          {
            "#comment":"The Background Planets"
          },
          { "WorldInfo":
            {
              "@title":"SpaceAttack.x3d"
            }
          },
          { "Transform":
            {
              "@translation":[0,0,-15],
              "-children":[
                { "Shape":
                  {
                    "-geometry":
                      { "Sphere":
                        {
                          "@radius":2.4
                        }
                      },
                    "-appearance":
                      { "Appearance":
                        {
                          "-texture":
                            { "ImageTexture":
                              {
                                "@url":["../SolarSystem/mars.jpg","https://www.web3d.org/x3d/content/examples/Savage/Space/SolarSystem/mars.jpg"]
                              }
                            }
                        }
                      }
                  }
                }
              ]
            }
          },
          { "Transform":
            {
              "@translation":[-15,0,0],
              "-children":[
                { "Shape":
                  {
                    "-geometry":
                      { "Sphere":
                        {
                          "@radius":3
                        }
                      },
                    "-appearance":
                      { "Appearance":
                        {
                          "-texture":
                            { "ImageTexture":
                              {
                                "@url":["../SolarSystem/sun.jpg","https://www.web3d.org/x3d/content/examples/Savage/Space/SolarSystem/sun.jpg"]
                              }
                            }
                        }
                      }
                  }
                }
              ]
            }
          },
          { "Transform":
            {
              "@translation":[25,0,-4],
              "-children":[
                { "Shape":
                  {
                    "-geometry":
                      { "Sphere":
                        {
                          "@radius":2
                        }
                      },
                    "-appearance":
                      { "Appearance":
                        {
                          "-texture":
                            { "ImageTexture":
                              {
                                "@url":["../SolarSystem/neptune.jpg","https://www.web3d.org/x3d/content/examples/Savage/Space/SolarSystem/neptune.jpg"]
                              }
                            }
                        }
                      }
                  }
                }
              ]
            }
          },
          { "Transform":
            {
              "@translation":[0,0,25],
              "-children":[
                { "Shape":
                  {
                    "-geometry":
                      { "Sphere":
                        {
                          "@radius":2
                        }
                      },
                    "-appearance":
                      { "Appearance":
                        {
                          "-texture":
                            { "ImageTexture":
                              {
                                "@url":["../../earth-topo.png","../../earth-topo-small.gif","https://www.web3d.org/x3d/content/examples/Savage/Space/SpaceAttack/../../earth-topo.png","https://www.web3d.org/x3d/content/examples/Basic/earth-topo-small.gif"]
                              }
                            }
                        }
                      }
                  }
                }
              ]
            }
          },
          {
            "#comment":"camera angles"
          },
          { "Viewpoint":
            {
              "@DEF":"camera1",
              "@description":"camera 1",
              "@fieldOfView":0.9599,
              "@orientation":[1,0,0,-0.2618],
              "@position":[0.5,0.5,12]
            }
          },
          { "Viewpoint":
            {
              "@DEF":"camera2",
              "@description":"camera 2",
              "@orientation":[0,1,0,1.57],
              "@position":[7,0,0]
            }
          },
          { "Viewpoint":
            {
              "@DEF":"camera3",
              "@description":"camera 3",
              "@orientation":[0,1,0,-0.7854],
              "@position":[-5,0,5]
            }
          },
          { "Viewpoint":
            {
              "@DEF":"camera4",
              "@description":"camera 4",
              "@fieldOfView":1.0472,
              "@orientation":[0,1,0,3.14],
              "@position":[0,2,-2]
            }
          },
          {
            "#comment":"Fighters"
          },
          { "Transform":
            {
              "@DEF":"Threeflight",
              "@rotation":[1,0,0,1.57],
              "-children":[
                { "Group":
                  {
                    "@DEF":"Fighter1",
                    "-children":[
                      { "Transform":
                        {
                          "@scale":[1,3,1],
                          "@translation":[0.0,0.5,-0.3],
                          "-children":[
                            { "Shape":
                              {
                                "-geometry":
                                  { "Sphere":
                                    {
                                      "@radius":0.14
                                    }
                                  },
                                "-appearance":
                                  { "Appearance":
                                    {
                                      "@DEF":"Cockpit",
                                      "-material":
                                        { "Material":
                                          {
                                            "@emissiveColor":[0,0,1],
                                            "@transparency":0.55
                                          }
                                        }
                                    }
                                  }
                              }
                            }
                          ]
                        }
                      },
                      { "Transform":
                        {
                          "@scale":[0.8,0.8,0.8],
                          "@translation":[0.0,0.51,-0.3],
                          "-children":[
                            { "Shape":
                              {
                                "-geometry":
                                  { "Sphere":
                                    {
                                      "@DEF":"Pilot",
                                      "@radius":0.16
                                    }
                                  },
                                "-appearance":
                                  { "Appearance":
                                    {
                                      "-material":
                                        { "Material":
                                          {
                                            "@diffuseColor":[1.0,0.0,0.0]
                                          }
                                        }
                                    }
                                  }
                              }
                            }
                          ]
                        }
                      },
                      { "Transform":
                        {
                          "@scale":[1,3.8,1],
                          "-children":[
                            { "Shape":
                              {
                                "-geometry":
                                  { "Sphere":
                                    {
                                      "@radius":0.4
                                    }
                                  },
                                "-appearance":
                                  { "Appearance":
                                    {
                                      "-material":
                                        { "Material":
                                          {
                                            "@diffuseColor":[0.8,0.7,0.3]
                                          }
                                        }
                                    }
                                  }
                              }
                            }
                          ]
                        }
                      },
                      { "Transform":
                        {
                          "@rotation":[1,0,0,3.14],
                          "@translation":[0.5,-2.0,0.0],
                          "-children":[
                            { "Shape":
                              {
                                "@DEF":"Afterburner",
                                "-geometry":
                                  { "Cone":
                                    {
                                      "@bottomRadius":0.25,
                                      "@height":0.9
                                    }
                                  },
                                "-appearance":
                                  { "Appearance":
                                    {
                                      "-material":
                                        { "Material":
                                          {
                                            "@diffuseColor":[1.0,0.2,0.2],
                                            "@transparency":0.5
                                          }
                                        }
                                    }
                                  }
                              }
                            }
                          ]
                        }
                      },
                      { "Transform":
                        {
                          "@rotation":[1,0,0,3.14],
                          "@translation":[-0.5,-2.0,0.0],
                          "-children":[
                            { "Shape":
                              {
                                "@USE":"Afterburner"
                              }
                            }
                          ]
                        }
                      },
                      { "Transform":
                        {
                          "@translation":[0.5,-1,0],
                          "-children":[
                            { "Shape":
                              {
                                "@DEF":"Engine",
                                "-geometry":
                                  { "Cylinder":
                                    {
                                      "@bottom":false,
                                      "@radius":0.25
                                    }
                                  },
                                "-appearance":
                                  { "Appearance":
                                    {
                                      "-material":
                                        { "Material":
                                          {
                                            "@diffuseColor":[0.8,0.7,0.3]
                                          }
                                        }
                                    }
                                  }
                              }
                            }
                          ]
                        }
                      },
                      { "Transform":
                        {
                          "@translation":[-0.5,-1,0],
                          "-children":[
                            { "Shape":
                              {
                                "@USE":"Engine"
                              }
                            }
                          ]
                        }
                      },
                      { "Transform":
                        {
                          "@scale":[9,1,1],
                          "-children":[
                            { "Shape":
                              {
                                "@DEF":"Wing",
                                "-appearance":
                                  { "Appearance":
                                    {
                                      "-material":
                                        { "Material":
                                          {
                                            "@diffuseColor":[0.8,0.7,0.3]
                                          }
                                        }
                                    }
                                  },
                                "-geometry":
                                  { "Cone":
                                    {
                                      "@bottomRadius":0.2,
                                      "@height":2.8
                                    }
                                  }
                              }
                            }
                          ]
                        }
                      },
                      { "Transform":
                        {
                          "@scale":[1,3,1],
                          "@translation":[1.0,-0.6,0.2],
                          "-children":[
                            { "Shape":
                              {
                                "@DEF":"Bomb",
                                "-geometry":
                                  { "Sphere":
                                    {
                                      "@radius":0.1
                                    }
                                  },
                                "-appearance":
                                  { "Appearance":
                                    {
                                      "-material":
                                        { "Material":
                                          {
                                            "@diffuseColor":[0,0.8,0]
                                          }
                                        }
                                    }
                                  }
                              }
                            }
                          ]
                        }
                      },
                      { "Transform":
                        {
                          "@scale":[1,3,1],
                          "@translation":[-1.0,-0.6,0.2],
                          "-children":[
                            { "Shape":
                              {
                                "@USE":"Bomb"
                              }
                            }
                          ]
                        }
                      }
                    ]
                  }
                },
                { "Transform":
                  {
                    "@translation":[2.5,-2.0,1.0],
                    "-children":[
                      { "Group":
                        {
                          "@USE":"Fighter1"
                        }
                      }
                    ]
                  }
                },
                { "Transform":
                  {
                    "@translation":[-2.5,-2.0,1.3],
                    "-children":[
                      { "Group":
                        {
                          "@USE":"Fighter1"
                        }
                      }
                    ]
                  }
                }
              ]
            }
          },
          { "TimeSensor":
            {
              "@DEF":"Clock",
              "@cycleInterval":10.0,
              "@loop":true
            }
          },
          { "PositionInterpolator":
            {
              "@DEF":"Flightpath",
              "@key":[0.00,0.11,0.12,0.13,0.14,0.15,0.16,0.17,0.18,0.19,0.20,0.21,0.22,0.23,0.24,0.25,0.26,0.27,0.28,0.29,0.30,0.31,0.32,0.33,0.34,0.35,0.36,0.37,0.50,0.70,0.80,0.90,1],
              "@keyValue":[0.0,0.0,-10.0,0.0,0.0,0.0,0.0,0.0,0.5,0.0,0.0,1.0,0.0,0.0,1.5,0.0,0.0,2.0,0.0,0.0,3.5,0.0,0.0,4.0,0.0,0.0,4.5,0.0,0.0,5.0,0.0,0.0,5.5,0.0,0.0,6.0,0.0,0.0,6.5,0.0,0.0,7.0,0.0,0.0,7.5,0.0,0.0,8.0,0.0,0.0,8.5,0.0,0.0,9.0,0.0,0.0,10.0,0.0,0.0,10.5,0.0,0.0,11.0,0.0,0.0,11.5,0.0,0.0,12.0,0.0,0.0,12.5,0.0,0.0,13.0,0.0,0.0,13.5,0.0,0.0,14.0,0.0,0.0,14.5,0.0,0.0,15.0,0.0,0.0,15.5,0.0,0.0,17.0,0.0,0.0,18.0,0.0,0.0,19.0]
            }
          },
          { "ROUTE":
            {
              "@fromField":"fraction_changed",
              "@fromNode":"Clock",
              "@toField":"set_fraction",
              "@toNode":"Flightpath"
            }
          },
          { "ROUTE":
            {
              "@fromField":"value_changed",
              "@fromNode":"Flightpath",
              "@toField":"set_translation",
              "@toNode":"Threeflight"
            }
          }
        ]
    }
  }
}