{ "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":"Type209PrevezeDieselSubmarine.x3d"
          },
          {
            "@name":"creator",
            "@content":"Alper SINAV"
          },
          {
            "@name":"created",
            "@content":"1 August 2001"
          },
          {
            "@name":"modified",
            "@content":"28 November 2019"
          },
          {
            "@name":"description",
            "@content":"This is a Type 209 Preveze Class Submarine From Turkish Submarine Fleet. It consists of a cylindric pressure hull, hydroplanes, rudder, propeller and superstructure with tower."
          },
          {
            "@name":"creator",
            "@content":"Alper SINAV"
          },
          {
            "@name":"identifier",
            "@content":"https://www.web3d.org/x3d/content/examples/Savage/Submarines/Various/Type209PrevezeDieselSubmarine.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":"Type209PrevezeDieselSubmarine.x3d"
            }
          },
          { "Background":
            {
              "@groundAngle":[1.309,1.570796],
              "@groundColor":[0,0.4,0.4,0.25,0.6,0.6,0.1,0.4,0.4],
              "@skyAngle":[1.309,1.571],
              "@skyColor":[0.1,0.1,0.6,0.1,0.25,0.8,0.6,0.6,0.9]
            }
          },
          { "Viewpoint":
            {
              "@description":"Type 209 Preveze Diesel Submarine: look away"
            }
          },
          { "Viewpoint":
            {
              "@description":"Listen Sonar",
              "@position":[0,0,3]
            }
          },
          {
            "#comment":"Following is construction of submarine"
          },
          { "Transform":
            {
              "@scale":[0.2,0.2,0.2],
              "-children":[
                {
                  "#comment":"original rotation 0 0 1 -0.8"
                },
                { "Transform":
                  {
                    "@DEF":"ROT",
                    "-children":[
                      { "Transform":
                        {
                          "@DEF":"SUBTRANS",
                          "-children":[
                            { "Transform":
                              {
                                "@DEF":"SUBROTATE",
                                "-children":[
                                  { "Group":
                                    {
                                      "@DEF":"SUBMARINE",
                                      "-children":[
                                        {
                                          "#comment":"Main Pessure Hull and upper form super structure"
                                        },
                                        { "Transform":
                                          {
                                            "@rotation":[-1,0,0,1.57],
                                            "-children":[
                                              { "Transform":
                                                {
                                                  "@DEF":"Z90",
                                                  "@rotation":[0,0,1,1.57],
                                                  "-children":[
                                                    { "Shape":
                                                      {
                                                        "-appearance":
                                                          { "Appearance":
                                                            {
                                                              "@DEF":"SUBOUT",
                                                              "-material":
                                                                { "Material":
                                                                  {
                                                                    "@DEF":"Total",
                                                                    "@diffuseColor":[0.0,0.0,0.1],
                                                                    "@emissiveColor":[0.1,0.1,0.1],
                                                                    "@specularColor":[0.6,0.5,0.5]
                                                                  }
                                                                }
                                                            }
                                                          },
                                                        "-geometry":
                                                          { "Extrusion":
                                                            {
                                                              "@ccw":false,
                                                              "@creaseAngle":0.785,
                                                              "@crossSection":[0,2,0.2,1.95,0.4,1.92,0.6,1.9,0.8,1.8,1,1.7,1,2.19,0.9,2.28,0.8,2.37,0.7,2.4,-0.7,2.4,-0.8,2.37,-0.9,2.28,-1,2.19,-1,1.7,-0.8,1.8,-0.6,1.9,-0.4,1.92,-0.2,1.95,0,2],
                                                              "@spine":[0,-7,0,0,7,0]
                                                            }
                                                          }
                                                      }
                                                    },
                                                    { "Shape":
                                                      {
                                                        "-appearance":
                                                          { "Appearance":
                                                            {
                                                              "-material":
                                                                { "Material":
                                                                  {
                                                                    "@USE":"Total"
                                                                  }
                                                                }
                                                            }
                                                          },
                                                        "-geometry":
                                                          { "Cylinder":
                                                            {
                                                              "@height":14,
                                                              "@radius":2
                                                            }
                                                          }
                                                      }
                                                    },
                                                    { "Transform":
                                                      {
                                                        "@scale":[2,2,2],
                                                        "-children":[
                                                          { "Shape":
                                                            {
                                                              "-appearance":
                                                                { "Appearance":
                                                                  {
                                                                    "-material":
                                                                      { "Material":
                                                                        {
                                                                          "@USE":"Total"
                                                                        }
                                                                      }
                                                                  }
                                                                },
                                                              "-geometry":
                                                                { "Extrusion":
                                                                  {
                                                                    "@creaseAngle":0.785,
                                                                    "@crossSection":[1.00,0.00,0.92,-0.38,0.71,-0.71,0.38,-0.92,0.00,-1.00,-0.38,-0.92,-0.71,-0.71,-0.92,-0.38,-1.00,-0.00,-0.92,0.38,-0.71,0.71,-0.38,0.92,0.00,1.00,0.38,0.92,0.71,0.71,0.92,0.38,1.00,0.00],
                                                                    "@scale":[0.3,0.3,1,1],
                                                                    "@spine":[0,7,0,0,3.5,0]
                                                                  }
                                                                }
                                                            }
                                                          }
                                                        ]
                                                      }
                                                    },
                                                    { "Shape":
                                                      {
                                                        "-appearance":
                                                          { "Appearance":
                                                            {
                                                              "-material":
                                                                { "Material":
                                                                  {
                                                                    "@USE":"Total"
                                                                  }
                                                                }
                                                            }
                                                          },
                                                        "-geometry":
                                                          { "Extrusion":
                                                            {
                                                              "@ccw":false,
                                                              "@creaseAngle":0.785,
                                                              "@crossSection":[0,2,0.2,1.95,0.4,1.92,0.6,1.9,0.8,1.8,1,1.7,1,2.19,0.9,2.28,0.8,2.37,0.7,2.4,-0.7,2.4,-0.8,2.37,-0.9,2.28,-1,2.19,-1,1.7,-0.8,1.8,-0.6,1.9,-0.4,1.92,-0.2,1.95,0,2],
                                                              "@scale":[1,1,0.1,0.1],
                                                              "@spine":[0,-7,0,0,-9,0]
                                                            }
                                                          }
                                                      }
                                                    }
                                                  ]
                                                }
                                              }
                                            ]
                                          }
                                        },
                                        {
                                          "#comment":"Head section of submarine MAIN BALAST TANKS"
                                        },
                                        { "Transform":
                                          {
                                            "@center":[0,0,14],
                                            "@translation":[7,0,0],
                                            "-children":[
                                              { "Shape":
                                                {
                                                  "-geometry":
                                                    { "Sphere":
                                                      {
                                                        "@radius":2
                                                      }
                                                    },
                                                  "-appearance":
                                                    { "Appearance":
                                                      {
                                                        "-material":
                                                          { "Material":
                                                            {
                                                              "@USE":"Total"
                                                            }
                                                          }
                                                      }
                                                    }
                                                }
                                              }
                                            ]
                                          }
                                        },
                                        {
                                          "#comment":"Propeller copyright LtJg Burcin KAYALI"
                                        },
                                        { "Transform":
                                          {
                                            "@scale":[0.2,0.15,0.15],
                                            "@translation":[-14.2,0,0],
                                            "-children":[
                                              { "Inline":
                                                {
                                                  "@url":["Type209Propeller.wrl","https://www.web3d.org/x3d/content/examples/Savage/Submarines/Various/Type209Propeller.wrl"]
                                                }
                                              }
                                            ]
                                          }
                                        },
                                        {
                                          "#comment":"TOWER"
                                        },
                                        { "Transform":
                                          {
                                            "@scale":[4,0.5,1],
                                            "@translation":[-2,3,0],
                                            "-children":[
                                              { "Shape":
                                                {
                                                  "-appearance":
                                                    { "Appearance":
                                                      {
                                                        "-material":
                                                          { "Material":
                                                            {
                                                              "@USE":"Total"
                                                            }
                                                          }
                                                      }
                                                    },
                                                  "-geometry":
                                                    { "Cylinder":
                                                      {
                                                        "@height":4,
                                                        "@radius":0.6
                                                      }
                                                    }
                                                }
                                              }
                                            ]
                                          }
                                        },
                                        {
                                          "#comment":"Retractable Mast Group"
                                        },
                                        { "Transform":
                                          {
                                            "@DEF":"PERISCOPETRANS",
                                            "@translation":[-2,3,0],
                                            "-children":[
                                              { "Shape":
                                                {
                                                  "@DEF":"PERISCOPE",
                                                  "-appearance":
                                                    { "Appearance":
                                                      {
                                                        "-material":
                                                          { "Material":
                                                            {
                                                              "@USE":"Total"
                                                            }
                                                          }
                                                      }
                                                    },
                                                  "-geometry":
                                                    { "Cylinder":
                                                      {
                                                        "@height":6,
                                                        "@radius":0.1
                                                      }
                                                    }
                                                }
                                              }
                                            ]
                                          }
                                        },
                                        { "Transform":
                                          {
                                            "@DEF":"UHFANTENNATRANS",
                                            "@translation":[-4,3,0],
                                            "-children":[
                                              { "Shape":
                                                {
                                                  "@USE":"PERISCOPE"
                                                }
                                              }
                                            ]
                                          }
                                        },
                                        {
                                          "#comment":"Rudder and Hydro planes"
                                        },
                                        { "Group":
                                          {
                                            "@DEF":"RUDDER",
                                            "-children":[
                                              { "Transform":
                                                {
                                                  "@translation":[-13,1,0],
                                                  "-children":[
                                                    { "Transform":
                                                      {
                                                        "@DEF":"LowRudderRot",
                                                        "-children":[
                                                          { "Transform":
                                                            {
                                                              "@scale":[1,1,0.2],
                                                              "-children":[
                                                                { "Shape":
                                                                  {
                                                                    "-geometry":
                                                                      { "Cylinder":
                                                                        {
                                                                          "@DEF":"BOWHYDPLANE",
                                                                          "@height":1,
                                                                          "@radius":0.5
                                                                        }
                                                                      },
                                                                    "-appearance":
                                                                      { "Appearance":
                                                                        {
                                                                          "-material":
                                                                            { "Material":
                                                                              {
                                                                                "@USE":"Total"
                                                                              }
                                                                            }
                                                                        }
                                                                      }
                                                                  }
                                                                }
                                                              ]
                                                            }
                                                          }
                                                        ]
                                                      }
                                                    }
                                                  ]
                                                }
                                              },
                                              { "Transform":
                                                {
                                                  "@translation":[-13,-1,0],
                                                  "-children":[
                                                    { "Transform":
                                                      {
                                                        "@DEF":"UpRudderRot",
                                                        "-children":[
                                                          { "Transform":
                                                            {
                                                              "@scale":[1,1,0.2],
                                                              "-children":[
                                                                { "Shape":
                                                                  {
                                                                    "-geometry":
                                                                      { "Cylinder":
                                                                        {
                                                                          "@USE":"BOWHYDPLANE"
                                                                        }
                                                                      },
                                                                    "-appearance":
                                                                      { "Appearance":
                                                                        {
                                                                          "-material":
                                                                            { "Material":
                                                                              {
                                                                                "@USE":"Total"
                                                                              }
                                                                            }
                                                                        }
                                                                      }
                                                                  }
                                                                }
                                                              ]
                                                            }
                                                          }
                                                        ]
                                                      }
                                                    }
                                                  ]
                                                }
                                              }
                                            ]
                                          }
                                        },
                                        { "Group":
                                          {
                                            "@DEF":"BOWPLANE",
                                            "-children":[
                                              { "Transform":
                                                {
                                                  "@translation":[-12.5,0,1],
                                                  "-children":[
                                                    { "Transform":
                                                      {
                                                        "@rotation":[1,0,0,1.57],
                                                        "-children":[
                                                          { "Transform":
                                                            {
                                                              "@DEF":"RBowPlaneRot",
                                                              "-children":[
                                                                { "Transform":
                                                                  {
                                                                    "@scale":[1,1,0.2],
                                                                    "-children":[
                                                                      { "Shape":
                                                                        {
                                                                          "-geometry":
                                                                            { "Cylinder":
                                                                              {
                                                                                "@USE":"BOWHYDPLANE"
                                                                              }
                                                                            },
                                                                          "-appearance":
                                                                            { "Appearance":
                                                                              {
                                                                                "-material":
                                                                                  { "Material":
                                                                                    {
                                                                                      "@USE":"Total"
                                                                                    }
                                                                                  }
                                                                              }
                                                                            }
                                                                        }
                                                                      }
                                                                    ]
                                                                  }
                                                                }
                                                              ]
                                                            }
                                                          }
                                                        ]
                                                      }
                                                    }
                                                  ]
                                                }
                                              },
                                              { "Transform":
                                                {
                                                  "@translation":[-12.5,0,-1],
                                                  "-children":[
                                                    { "Transform":
                                                      {
                                                        "@rotation":[1,0,0,1.57],
                                                        "-children":[
                                                          { "Transform":
                                                            {
                                                              "@DEF":"LBowPlaneRot",
                                                              "@rotation":[0,1,0,0.8],
                                                              "-children":[
                                                                { "Transform":
                                                                  {
                                                                    "@scale":[1,1,0.2],
                                                                    "-children":[
                                                                      { "Shape":
                                                                        {
                                                                          "-geometry":
                                                                            { "Cylinder":
                                                                              {
                                                                                "@USE":"BOWHYDPLANE"
                                                                              }
                                                                            },
                                                                          "-appearance":
                                                                            { "Appearance":
                                                                              {
                                                                                "-material":
                                                                                  { "Material":
                                                                                    {
                                                                                      "@USE":"Total"
                                                                                    }
                                                                                  }
                                                                              }
                                                                            }
                                                                        }
                                                                      }
                                                                    ]
                                                                  }
                                                                }
                                                              ]
                                                            }
                                                          }
                                                        ]
                                                      }
                                                    }
                                                  ]
                                                }
                                              }
                                            ]
                                          }
                                        }
                                      ]
                                    }
                                  }
                                ]
                              }
                            },
                            { "Sound":
                              {
                                "@intensity":0.5,
                                "@maxBack":70,
                                "@maxFront":120,
                                "@minBack":50,
                                "@minFront":100,
                                "-source":
                                  { "AudioClip":
                                    {
                                      "@description":"sonar ping",
                                      "@loop":true,
                                      "@url":["sonar.wav","https://www.web3d.org/x3d/content/examples/Savage/Submarines/various/sonar.wav","https://www.web3d.org/x3d/content/examples/Vrml2Sourcebook/tone1.wav"]
                                    }
                                  }
                              }
                            }
                          ]
                        }
                      }
                    ]
                  }
                }
              ]
            }
          }
        ]
    }
  }
}