{ "X3D": {
    "encoding":"UTF-8",
    "@profile":"Immersive",
    "@version":"3.3",
    "@xsd:noNamespaceSchemaLocation":"https://www.web3d.org/specifications/x3d-3.3.xsd",
    "JSON schema":"https://www.web3d.org/specifications/x3d-4.0-JSONSchema.autogenerated.json",
    "head": {
        "meta": [
          {
            "@name":"title",
            "@content":"KelpExamplesNoBase.x3d"
          },
          {
            "@name":"description",
            "@content":"Creates 3 instances of Kelp that sway."
          },
          {
            "@name":"creator",
            "@content":"Joseph Cannon, Dan DeVos, Don Brutzman"
          },
          {
            "@name":"created",
            "@content":"25 September 1998"
          },
          {
            "@name":"modified",
            "@content":"20 October 2019"
          },
          {
            "@name":"reference",
            "@content":"http://faculty.nps.edu/brutzman/kelp"
          },
          {
            "@name":"reference",
            "@content":"KelpForestDesignPaperWeb3dSymposiumFebruary2002.pdf"
          },
          {
            "@name":"reference",
            "@content":"https://www.web3d.org/x3d/content/examples/X3dForWebAuthors/KelpForestExhibit/KelpForestDesignPaperWeb3dSymposiumFebruary2002.pdf"
          },
          {
            "@name":"reference",
            "@content":"https://www.web3d.org/x3d/content/examples/X3dForWebAuthors/KelpForestExhibit/Teaching3d-KelpForestCaseStudy.pdf"
          },
          {
            "@name":"accessRights",
            "@content":"All content has permissions for free use. Please provide credit to the Naval Postgraduate School (NPS) Modeling Virtual Environments and Simulation (MOVES) Institute."
          },
          {
            "@name":"identifier",
            "@content":"https://www.web3d.org/x3d/content/examples/X3dForWebAuthors/KelpForestExhibit/KelpExamplesNoBase.x3d"
          },
          {
            "@name":"generator",
            "@content":"Vrml97ToX3dNist, http://ovrt.nist.gov/v2_x3d.html"
          },
          {
            "@name":"license",
            "@content":"../license.html"
          },
          {
            "@name":"translated",
            "@content":"17 April 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":"KelpExamplesNoBase.x3d"
            }
          },
          { "ExternProtoDeclare":
            {
              "@name":"Kelp",
              "@appinfo":"Kelp strands and bulbs with no base",
              "@url":["KelpPrototype.x3d#Kelp","https://www.web3d.org/x3d/content/examples/X3dForWebAuthors/KelpForestExhibit/KelpPrototype.x3d#Kelp","KelpPrototype.wrl#Kelp","https://www.web3d.org/x3d/content/examples/X3dForWebAuthors/KelpForestExhibit/KelpPrototype.wrl#Kelp"],
              "field": [
                {
                  "@name":"frontBladeSize",
                  "@accessType":"inputOutput",
                  "@type":"SFVec3f"
                },
                {
                  "@name":"rearSideBladeHeight",
                  "@accessType":"inputOutput",
                  "@type":"SFVec3f"
                },
                {
                  "@name":"frontSideBladeHeight",
                  "@accessType":"inputOutput",
                  "@type":"SFVec3f"
                },
                {
                  "@name":"rightBladeSize",
                  "@accessType":"inputOutput",
                  "@type":"SFVec3f"
                },
                {
                  "@name":"rightSideBladeHeight",
                  "@accessType":"inputOutput",
                  "@type":"SFVec3f"
                },
                {
                  "@name":"leftBladeSize",
                  "@accessType":"inputOutput",
                  "@type":"SFVec3f"
                },
                {
                  "@name":"rearBladeSize",
                  "@accessType":"inputOutput",
                  "@type":"SFVec3f"
                },
                {
                  "@name":"leftSideBladeHeight",
                  "@accessType":"inputOutput",
                  "@type":"SFVec3f"
                }
              ]
            }
          },
          { "Group":
            {
              "-children":[
                { "Transform":
                  {
                    "@DEF":"KelpTransform0",
                    "@scale":[0.3,0.3,0.3],
                    "-children":[
                      { "ProtoInstance":
                        {
                          "@name":"Kelp"
                        }
                      }
                    ]
                  }
                },
                { "Transform":
                  {
                    "@DEF":"KelpTransform1",
                    "@rotation":[0.0,1.0,0.0,5.5],
                    "@scale":[0.29,0.29,0.29],
                    "@translation":[-0.5,0.0,0.0],
                    "-children":[
                      { "ProtoInstance":
                        {
                          "@name":"Kelp",
                          "fieldValue": [
                            {
                              "@name":"rearSideBladeHeight",
                              "@value":[0.0,15.0,0.0]
                            },
                            {
                              "@name":"frontBladeSize",
                              "@value":[0.4,0.4,0.4]
                            },
                            {
                              "@name":"frontSideBladeHeight",
                              "@value":[0.0,23.0,0.0]
                            },
                            {
                              "@name":"rightBladeSize",
                              "@value":[0.4,0.4,0.4]
                            },
                            {
                              "@name":"rightSideBladeHeight",
                              "@value":[0.0,20.0,0.0]
                            },
                            {
                              "@name":"leftBladeSize",
                              "@value":[0.7,0.7,0.7]
                            },
                            {
                              "@name":"rearBladeSize",
                              "@value":[0.7,0.7,0.7]
                            },
                            {
                              "@name":"leftSideBladeHeight",
                              "@value":[0.0,6.0,0.0]
                            }
                          ]
                        }
                      }
                    ]
                  }
                },
                { "Transform":
                  {
                    "@DEF":"KelpTransform2",
                    "@scale":[0.3,0.3,0.3],
                    "@translation":[0.5,0.0,0.5],
                    "-children":[
                      { "ProtoInstance":
                        {
                          "@name":"Kelp",
                          "fieldValue": [
                            {
                              "@name":"rearSideBladeHeight",
                              "@value":[0.0,18.0,0.0]
                            },
                            {
                              "@name":"frontBladeSize",
                              "@value":[0.7,0.7,0.7]
                            },
                            {
                              "@name":"frontSideBladeHeight",
                              "@value":[0.0,8.0,0.0]
                            },
                            {
                              "@name":"rightBladeSize",
                              "@value":[0.7,0.7,0.7]
                            },
                            {
                              "@name":"rightSideBladeHeight",
                              "@value":[0.0,16.0,0.0]
                            },
                            {
                              "@name":"leftBladeSize",
                              "@value":[0.7,0.7,0.7]
                            },
                            {
                              "@name":"rearBladeSize",
                              "@value":[0.4,0.4,0.4]
                            },
                            {
                              "@name":"leftSideBladeHeight",
                              "@value":[0.0,13.0,0.0]
                            }
                          ]
                        }
                      }
                    ]
                  }
                }
              ]
            }
          },
          { "Group":
            {
              "-children":[
                {
                  "#comment":"===================="
                },
                { "TimeSensor":
                  {
                    "@DEF":"Clock0",
                    "@cycleInterval":5.5,
                    "@loop":true
                  }
                },
                {
                  "#comment":"===================="
                },
                { "OrientationInterpolator":
                  {
                    "@DEF":"KelpPath0",
                    "@key":[0.0,0.05,0.25,0.45,0.5,0.55,0.75,0.95,1.0],
                    "@keyValue":[0,0,1,0.1,0,0,1,0.095,0,0,1,0,0,0,1,-0.095,0,0,1,-0.1,0,0,1,-0.095,0,0,1,0,0,0,1,0.095,0,0,1,0.1]
                  }
                },
                { "ROUTE":
                  {
                    "@fromField":"fraction_changed",
                    "@fromNode":"Clock0",
                    "@toField":"set_fraction",
                    "@toNode":"KelpPath0"
                  }
                },
                { "ROUTE":
                  {
                    "@fromField":"value_changed",
                    "@fromNode":"KelpPath0",
                    "@toField":"set_rotation",
                    "@toNode":"KelpTransform0"
                  }
                },
                {
                  "#comment":"===================="
                },
                { "Script":
                  {
                    "@DEF":"TimeDelay1",
                    "field": [
                      {
                        "@name":"set_fraction",
                        "@accessType":"inputOnly",
                        "@type":"SFFloat"
                      },
                      {
                        "@name":"value_changed",
                        "@accessType":"outputOnly",
                        "@type":"SFFloat"
                      }
                    ],
                    "#sourceCode":[
"",
"",
"ecmascript:",
"",
"function set_fraction (value, timestamp)",
"{",
"\tdelay = 0.25;",
"\tdelayedValue = value + (delay/5.5); // delay/interval, seconds",
"\tif (delayedValue > 1) delayedValue--;",
"\tvalue_changed = delayedValue;",
"",
"//\tBrowser.println ('TimeDelay1 value=' + value + ', value_changed=' + value_changed);",
"}",
"",
""
]
                  }
                },
                { "OrientationInterpolator":
                  {
                    "@DEF":"KelpPath1",
                    "@key":[0.0,0.05,0.25,0.45,0.5,0.55,0.75,0.95,1.0],
                    "@keyValue":[0,0,1,0.1,0,0,1,0.095,0,0,1,0,0,0,1,-0.095,0,0,1,-0.1,0,0,1,-0.095,0,0,1,0,0,0,1,0.095,0,0,1,0.1]
                  }
                },
                { "ROUTE":
                  {
                    "@fromField":"fraction_changed",
                    "@fromNode":"Clock0",
                    "@toField":"set_fraction",
                    "@toNode":"TimeDelay1"
                  }
                },
                { "ROUTE":
                  {
                    "@fromField":"value_changed",
                    "@fromNode":"TimeDelay1",
                    "@toField":"set_fraction",
                    "@toNode":"KelpPath1"
                  }
                },
                { "ROUTE":
                  {
                    "@fromField":"value_changed",
                    "@fromNode":"KelpPath1",
                    "@toField":"set_rotation",
                    "@toNode":"KelpTransform1"
                  }
                },
                {
                  "#comment":"===================="
                },
                { "Script":
                  {
                    "@DEF":"TimeDelay2",
                    "field": [
                      {
                        "@name":"set_fraction",
                        "@accessType":"inputOnly",
                        "@type":"SFFloat"
                      },
                      {
                        "@name":"value_changed",
                        "@accessType":"outputOnly",
                        "@type":"SFFloat"
                      }
                    ],
                    "#sourceCode":[
"",
"",
"ecmascript:",
"",
"function set_fraction (value, timestamp)",
"{",
"\tdelay = 0.5;",
"\tdelayedValue = value + (delay/5.5); // delay/interval, seconds",
"\tif (delayedValue > 1) delayedValue--;",
"\tvalue_changed = delayedValue;",
"",
"//\tBrowser.println ('TimeDelay2 value=' + value + ', value_changed=' + value_changed);",
"}",
"",
""
]
                  }
                },
                { "OrientationInterpolator":
                  {
                    "@DEF":"KelpPath2",
                    "@key":[0.0,0.05,0.25,0.45,0.5,0.55,0.75,0.95,1.0],
                    "@keyValue":[0,0,1,0.1,0,0,1,0.095,0,0,1,0,0,0,1,-0.095,0,0,1,-0.1,0,0,1,-0.095,0,0,1,0,0,0,1,0.095,0,0,1,0.1]
                  }
                },
                { "ROUTE":
                  {
                    "@fromField":"fraction_changed",
                    "@fromNode":"Clock0",
                    "@toField":"set_fraction",
                    "@toNode":"TimeDelay2"
                  }
                },
                { "ROUTE":
                  {
                    "@fromField":"value_changed",
                    "@fromNode":"TimeDelay2",
                    "@toField":"set_fraction",
                    "@toNode":"KelpPath2"
                  }
                },
                { "ROUTE":
                  {
                    "@fromField":"value_changed",
                    "@fromNode":"KelpPath2",
                    "@toField":"set_rotation",
                    "@toNode":"KelpTransform2"
                  }
                }
              ]
            }
          }
        ]
    }
  }
}