{ "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":"SeaDiver.x3d"
          },
          {
            "@name":"description",
            "@content":"Systeme d'Exploration Autonome D'Intervention VERsatile (SeaDiver) is an unmanned underwater vehicle (UUV) based on an underwater-glider concept. Dimensions: 2.8m long x 1.7m wide x 0.6m high. Hint: click on plane surfaces for simple animation."
          },
          {
            "@name":"creator",
            "@content":"Don Brutzman et Didier Leandri"
          },
          {
            "@name":"created",
            "@content":"17 Avril 2002"
          },
          {
            "@name":"modified",
            "@content":"20 October 2019"
          },
          {
            "@name":"reference",
            "@content":"http://www.univ-tln.fr"
          },
          {
            "@name":"reference",
            "@content":"SeaDiverConceptPresentation.ppt"
          },
          {
            "@name":"Image",
            "@content":"SeaDiverIsometricForwardStarboardQuarterView.jpg"
          },
          {
            "@name":"Image",
            "@content":"SeaDiverSideViewPeauQueue.jpg"
          },
          {
            "@name":"identifier",
            "@content":"https://www.web3d.org/x3d/content/examples/Savage/Robots/UnmannedUnderwaterVehicles/SeaDiver.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":[
          { "Background":
            {
              "@skyColor":[0.05,0.1,0.3]
            }
          },
          { "PointLight":
            {
              "@DEF":"SurfaceLight",
              "@color":[0.6,0.6,0.6],
              "@intensity":0.5,
              "@location":[0,3,0],
              "@radius":8
            }
          },
          { "Viewpoint":
            {
              "@DEF":"StarboardView",
              "@description":"SeaDiver starboard side 5m",
              "@position":[0,0,5]
            }
          },
          { "Transform":
            {
              "@rotation":[0,1,0,-1.57],
              "@translation":[-5,1,0],
              "-children":[
                { "Viewpoint":
                  {
                    "@description":"SeaDiver over-the-shoulder 5m",
                    "@orientation":[1,0,0,-0.25],
                    "@position":[0,0,0]
                  }
                }
              ]
            }
          },
          { "LOD":
            {
              "@range":[1000],
              "-children":[
                { "Group":
                  {
                    "-children":[
                      { "Viewpoint":
                        {
                          "@description":"SeaDiver from above 100m",
                          "@orientation":[-0.58,-0.58,-0.58,2.09],
                          "@position":[0,100,0]
                        }
                      },
                      { "Viewpoint":
                        {
                          "@description":"SeaDiver starboard side 25m",
                          "@position":[0,0,25]
                        }
                      },
                      { "Viewpoint":
                        {
                          "@description":"SeaDiver astern 25m",
                          "@orientation":[0,1,0,-1.57],
                          "@position":[-25,0,0]
                        }
                      },
                      { "Viewpoint":
                        {
                          "@description":"SeaDiver astern 5m",
                          "@orientation":[0,1,0,-1.57],
                          "@position":[-5,0,0]
                        }
                      },
                      { "Viewpoint":
                        {
                          "@description":"SeaDiver port side 25m",
                          "@orientation":[0,1,0,3.14],
                          "@position":[0,0,-25]
                        }
                      },
                      { "Viewpoint":
                        {
                          "@description":"SeaDiver port side 5m",
                          "@orientation":[0,1,0,3.14],
                          "@position":[0,0,-5]
                        }
                      }
                    ]
                  }
                },
                { "WorldInfo":
                  {
                    "@info":["null node outside of LOD range"]
                  }
                }
              ]
            }
          },
          {
            "#comment":"This file builds the SeaDiver Unmanned Underwater Vehicle (UUV)."
          },
          { "Transform":
            {
              "-children":[
                {
                  "#comment":"Body"
                },
                { "Shape":
                  {
                    "-geometry":
                      { "Extrusion":
                        {
                          "@creaseAngle":3.14,
                          "@crossSection":[0.3,0,0.3,-0.7,0.2,-0.8,0,-0.85,-0.2,-0.8,-0.3,-0.7,-0.3,0,-0.3,0.7,-0.2,0.8,0,0.85,0.2,0.8,0.3,0.7,0.3,0],
                          "@scale":[0.3,0.3,0.6,0.6,0.77,0.77,0.95,0.95,1,1,0.9,0.95,0.7,0.9,0.4,0.86,0.1,0.8],
                          "@spine":[1.3,0,0,1.25,0,0,1.15,0,0,1.0,0,0,0.7,0,0,0.0,0,0,-0.7,0,0,-1.1,0,0,-1.5,0,0]
                        }
                      },
                    "-appearance":
                      { "Appearance":
                        {
                          "@DEF":"HullAppearance",
                          "-material":
                            { "Material":
                              {
                                "@ambientIntensity":0.6,
                                "@diffuseColor":[0.94,0.94,1],
                                "@shininess":0.9,
                                "@specularColor":[0.7,1,0.8]
                              }
                            }
                        }
                      }
                  }
                },
                {
                  "#comment":"Astern diving planes"
                },
                { "Transform":
                  {
                    "@translation":[-1.5,0,0],
                    "-children":[
                      { "Transform":
                        {
                          "@DEF":"RotateDivePlanes",
                          "@center":[0.25,0,0],
                          "-children":[
                            { "TouchSensor":
                              {
                                "@DEF":"TouchDivePlanes",
                                "@description":"waggle dive planes"
                              }
                            },
                            { "Transform":
                              {
                                "@translation":[0,0,0.7],
                                "-children":[
                                  { "Shape":
                                    {
                                      "@DEF":"RightDivePlane",
                                      "-geometry":
                                        { "IndexedFaceSet":
                                          {
                                            "@coordIndex":[0,3,2,1,0,-1,4,7,6,5,4,-1,1,2,6,5,-1,2,3,7,6,2,-1,3,0,4,7,3,-1,0,1,5,4,0,-1],
                                            "@creaseAngle":3.14,
                                            "@solid":false,
                                            "-coord":
                                              { "Coordinate":
                                                {
                                                  "@point":[0,0.02,0,0.57,0.02,0.06,0.25,0.02,0.25,0,0.02,0.28,0,-0.02,0,0.57,-0.02,0.06,0.25,-0.02,0.25,0,-0.02,0.28]
                                                }
                                              }
                                          }
                                        },
                                      "-appearance":
                                        { "Appearance":
                                          {
                                            "@USE":"HullAppearance"
                                          }
                                        }
                                    }
                                  }
                                ]
                              }
                            },
                            { "Transform":
                              {
                                "@translation":[0,0,-0.7],
                                "-children":[
                                  { "Shape":
                                    {
                                      "@DEF":"LeftDivePlane",
                                      "-geometry":
                                        { "IndexedFaceSet":
                                          {
                                            "@coordIndex":[0,3,2,1,0,-1,4,7,6,5,4,-1,1,2,6,5,-1,2,3,7,6,2,-1,3,0,4,7,3,-1,0,1,5,4,0,-1],
                                            "@creaseAngle":3.14,
                                            "@solid":false,
                                            "-coord":
                                              { "Coordinate":
                                                {
                                                  "@point":[0,0.02,0,0.57,0.02,-0.06,0.25,0.02,-0.25,0,0.02,-0.28,0,-0.02,0,0.57,-0.02,-0.06,0.25,-0.02,-0.25,0,-0.02,-0.28]
                                                }
                                              }
                                          }
                                        },
                                      "-appearance":
                                        { "Appearance":
                                          {
                                            "@USE":"HullAppearance"
                                          }
                                        }
                                    }
                                  }
                                ]
                              }
                            }
                          ]
                        }
                      },
                      { "Group":
                        {
                          "@DEF":"RudderGroup",
                          "-children":[
                            { "TouchSensor":
                              {
                                "@DEF":"TouchRudders",
                                "@description":"wiggle rudders"
                              }
                            },
                            { "Transform":
                              {
                                "@DEF":"OffsetRudderLeft",
                                "@translation":[0,0.05,-0.3],
                                "-children":[
                                  { "Transform":
                                    {
                                      "@DEF":"RotateRudderLeft",
                                      "@center":[0.25,0,0],
                                      "-children":[
                                        { "Shape":
                                          {
                                            "@DEF":"Rudder",
                                            "-geometry":
                                              { "IndexedFaceSet":
                                                {
                                                  "@coordIndex":[0,3,2,1,0,-1,4,7,6,5,4,-1,1,2,6,5,-1,2,3,7,6,2,-1,3,0,4,7,3,-1,0,1,5,4,0,-1],
                                                  "@creaseAngle":3.14,
                                                  "@solid":false,
                                                  "-coord":
                                                    { "Coordinate":
                                                      {
                                                        "@point":[0,0,0.02,0.0,0.25,0.02,0.25,0.25,0.02,0.5,0.125,0.02,0,0,-0.02,0.0,0.25,-0.02,0.25,0.25,-0.02,0.5,0.125,-0.02]
                                                      }
                                                    }
                                                }
                                              },
                                            "-appearance":
                                              { "Appearance":
                                                {
                                                  "@USE":"HullAppearance"
                                                }
                                              }
                                          }
                                        }
                                      ]
                                    }
                                  }
                                ]
                              }
                            },
                            { "Transform":
                              {
                                "@DEF":"OffsetRudderRight",
                                "@translation":[0,0.05,0.3],
                                "-children":[
                                  { "Transform":
                                    {
                                      "@DEF":"RotateRudderRight",
                                      "@center":[0.25,0,0],
                                      "-children":[
                                        { "Shape":
                                          {
                                            "@USE":"Rudder"
                                          }
                                        }
                                      ]
                                    }
                                  }
                                ]
                              }
                            }
                          ]
                        }
                      }
                    ]
                  }
                },
                {
                  "#comment":"Astern diving-planes shaft"
                },
                { "Transform":
                  {
                    "@rotation":[1,0,0,1.57],
                    "@translation":[-1.25,0,0],
                    "-children":[
                      { "Shape":
                        {
                          "-geometry":
                            { "Cylinder":
                              {
                                "@bottom":false,
                                "@height":1.5,
                                "@radius":0.01,
                                "@top":false
                              }
                            },
                          "-appearance":
                            { "Appearance":
                              {
                                "@USE":"HullAppearance"
                              }
                            }
                        }
                      }
                    ]
                  }
                }
              ]
            }
          },
          {
            "#comment":"Example animation for dive planes"
          },
          { "TimeSensor":
            {
              "@DEF":"WiggleClock",
              "@cycleInterval":4
            }
          },
          { "ROUTE":
            {
              "@fromField":"touchTime",
              "@fromNode":"TouchDivePlanes",
              "@toField":"set_startTime",
              "@toNode":"WiggleClock"
            }
          },
          { "OrientationInterpolator":
            {
              "@DEF":"PlaneWiggler",
              "@key":[0,0.25,0.75,1],
              "@keyValue":[0,0,1,0,0,0,1,0.15,0,0,1,-0.15,0,0,1,0]
            }
          },
          { "ROUTE":
            {
              "@fromField":"fraction_changed",
              "@fromNode":"WiggleClock",
              "@toField":"set_fraction",
              "@toNode":"PlaneWiggler"
            }
          },
          { "ROUTE":
            {
              "@fromField":"value_changed",
              "@fromNode":"PlaneWiggler",
              "@toField":"set_rotation",
              "@toNode":"RotateDivePlanes"
            }
          },
          {
            "#comment":"Example animation for rudders"
          },
          { "TimeSensor":
            {
              "@DEF":"WaggleClock",
              "@cycleInterval":4
            }
          },
          { "ROUTE":
            {
              "@fromField":"touchTime",
              "@fromNode":"TouchRudders",
              "@toField":"set_startTime",
              "@toNode":"WaggleClock"
            }
          },
          { "OrientationInterpolator":
            {
              "@DEF":"RudderWaggler",
              "@key":[0,0.25,0.75,1],
              "@keyValue":[0,1,0,0,0,1,0,0.15,0,1,0,-0.15,0,1,0,0]
            }
          },
          { "ROUTE":
            {
              "@fromField":"fraction_changed",
              "@fromNode":"WaggleClock",
              "@toField":"set_fraction",
              "@toNode":"RudderWaggler"
            }
          },
          { "ROUTE":
            {
              "@fromField":"value_changed",
              "@fromNode":"RudderWaggler",
              "@toField":"set_rotation",
              "@toNode":"RotateRudderLeft"
            }
          },
          { "ROUTE":
            {
              "@fromField":"value_changed",
              "@fromNode":"RudderWaggler",
              "@toField":"set_rotation",
              "@toNode":"RotateRudderRight"
            }
          }
        ]
    }
  }
}