{ "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":"HudKelpForest.x3d"
          },
          {
            "@name":"description",
            "@content":"Demonstrates use of a ProximitySensor in building a HUD, with display values showing current view location."
          },
          {
            "@name":"creator",
            "@content":"Leonard Daly and Don Brutzman"
          },
          {
            "@name":"created",
            "@content":"15 July 2006"
          },
          {
            "@name":"modified",
            "@content":"20 October 2019"
          },
          {
            "@name":"Image",
            "@content":"HudKelpForestScreenshot.png"
          },
          {
            "@name":"reference",
            "@content":"https://X3dGraphics.com"
          },
          {
            "@name":"reference",
            "@content":"https://www.web3d.org/x3d/content/examples/X3dResources.html"
          },
          {
            "@name":"rights",
            "@content":"Copyright 2006, Daly Realism and Don Brutzman"
          },
          {
            "@name":"subject",
            "@content":"X3D book, X3D graphics, X3D-Edit, http://www.x3dGraphics.com"
          },
          {
            "@name":"identifier",
            "@content":"https://www.web3d.org/x3d/content/examples/X3dForWebAuthors/Chapter14Prototypes/HudKelpForest.x3d"
          },
          {
            "@name":"generator",
            "@content":"X3D-Edit 3.3, https://www.web3d.org/x3d/tools/X3D-Edit"
          },
          {
            "@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":"HudKelpForest.x3d"
            }
          },
          { "ExternProtoDeclare":
            {
              "@name":"HeadsUpDisplay",
              "@appinfo":"Heads-up display (HUD) keeps child geometry aligned on screen in a consistent location",
              "@url":["HeadsUpDisplayPrototype.x3d#HeadsUpDisplay","https://www.web3d.org/x3d/content/examples/X3dForWebAuthors/Chapter14Prototypes/HeadsUpDisplayPrototype.x3d#HeadsUpDisplay","HeadsUpDisplayPrototype.wrl#HeadsUpDisplay","https://www.web3d.org/x3d/content/examples/X3dForWebAuthors/Chapter14Prototypes/HeadsUpDisplayPrototype.wrl#HeadsUpDisplay"],
              "field": [
                {
                  "@name":"screenOffset",
                  "@accessType":"inputOutput",
                  "@appinfo":"offset position for HUD relative to current view location, default 0 0 -5",
                  "@type":"SFVec3f"
                },
                {
                  "@name":"children",
                  "@accessType":"inputOutput",
                  "@appinfo":"X3D content positioned at HUD offset",
                  "@type":"MFNode"
                },
                {
                  "@name":"position_changed",
                  "@accessType":"outputOnly",
                  "@appinfo":"HUD position update (in world coordinates) relative to original location",
                  "@type":"SFVec3f"
                },
                {
                  "@name":"orientation_changed",
                  "@accessType":"outputOnly",
                  "@appinfo":"HUD orientation update relative to original location",
                  "@type":"SFRotation"
                }
              ]
            }
          },
          { "ExternProtoDeclare":
            {
              "@name":"TextString",
              "@url":["TextStringPrototype.x3d#TextString","https://www.web3d.org/x3d/content/examples/X3dForWebAuthors/Chapter14Prototypes/TextStringPrototype.x3d#TextString","TextStringPrototype.wrl#TextString","https://www.web3d.org/x3d/content/examples/X3dForWebAuthors/Chapter14Prototypes/TextStringPrototype.wrl#TextString"],
              "field": [
                {
                  "@name":"offset",
                  "@accessType":"inputOutput",
                  "@type":"SFVec3f"
                },
                {
                  "@name":"string",
                  "@accessType":"inputOutput",
                  "@type":"MFString"
                },
                {
                  "@name":"color",
                  "@accessType":"inputOutput",
                  "@type":"SFColor"
                },
                {
                  "@name":"size",
                  "@accessType":"initializeOnly",
                  "@type":"SFFloat"
                },
                {
                  "@name":"justify",
                  "@accessType":"initializeOnly",
                  "@type":"MFString"
                },
                {
                  "@name":"style",
                  "@accessType":"initializeOnly",
                  "@type":"SFString"
                },
                {
                  "@name":"family",
                  "@accessType":"initializeOnly",
                  "@type":"MFString"
                }
              ]
            }
          },
          { "Background":
            {
              "@backUrl":["urn:web3d:media:textures/panoramas/horizon_3_back.jpg","horizon_3_back.jpg","../../Basic/UniversalMediaPanoramas/horizon_3_back.jpg","https://www.web3d.org/WorkingGroups/media/textures/panoramas/horizon_3_back.jpg","https://www.web3d.org/x3d/content/examples/UniversalMediaPanoramas/horizon_3_back.jpg","http://www.web3dmedia.com/UniversalMedia/textures/panoramas/horizon_3_back.jpg","http://www.officetowers.com/UniversalMedia/textures/panoramas/horizon_3_back.jpg","http://geometrek.com/UniversalMedia/textures/panoramas/horizon_3_back.jpg","http://www.sc.ehu.es/ccwgamoa/UniversalMedia/textures/panoramas/horizon_3_back.jpg"],
              "@bottomUrl":["urn:web3d:media:textures/panoramas/horizon_3_bottom.jpg","horizon_3_bottom.jpg","../../Basic/UniversalMediaPanoramas/horizon_3_bottom.jpg","https://www.web3d.org/WorkingGroups/media/textures/panoramas/horizon_3_bottom.jpg","https://www.web3d.org/x3d/content/examples/UniversalMediaPanoramas/horizon_3_bottom.jpg","http://www.web3dmedia.com/UniversalMedia/textures/panoramas/horizon_3_bottom.jpg","http://www.officetowers.com/UniversalMedia/textures/panoramas/horizon_3_bottom.jpg","http://geometrek.com/UniversalMedia/textures/panoramas/horizon_3_bottom.jpg","http://www.sc.ehu.es/ccwgamoa/UniversalMedia/textures/panoramas/horizon_3_bottom.jpg"],
              "@frontUrl":["urn:web3d:media:textures/panoramas/horizon_3_front.jpg","horizon_3_front.jpg","../../Basic/UniversalMediaPanoramas/horizon_3_front.jpg","https://www.web3d.org/WorkingGroups/media/textures/panoramas/horizon_3_front.jpg","https://www.web3d.org/x3d/content/examples/UniversalMediaPanoramas/horizon_3_front.jpg","http://www.web3dmedia.com/UniversalMedia/textures/panoramas/horizon_3_front.jpg","http://www.officetowers.com/UniversalMedia/textures/panoramas/horizon_3_front.jpg","http://geometrek.com/UniversalMedia/textures/panoramas/horizon_3_front.jpg","http://www.sc.ehu.es/ccwgamoa/UniversalMedia/textures/panoramas/horizon_3_front.jpg"],
              "@groundAngle":[1.309,1.5707],
              "@groundColor":[0.1,0.1,0,0.4,0.25,0.2,0.6,0.6,0.6],
              "@leftUrl":["urn:web3d:media:textures/panoramas/horizon_3_left.jpg","horizon_3_left.jpg","../../Basic/UniversalMediaPanoramas/horizon_3_left.jpg","https://www.web3d.org/WorkingGroups/media/textures/panoramas/horizon_3_left.jpg","https://www.web3d.org/x3d/content/examples/UniversalMediaPanoramas/horizon_3_left.jpg","http://www.web3dmedia.com/UniversalMedia/textures/panoramas/horizon_3_left.jpg","http://www.officetowers.com/UniversalMedia/textures/panoramas/horizon_3_left.jpg","http://geometrek.com/UniversalMedia/textures/panoramas/horizon_3_left.jpg","http://www.sc.ehu.es/ccwgamoa/UniversalMedia/textures/panoramas/horizon_3_left.jpg"],
              "@rightUrl":["urn:web3d:media:textures/panoramas/horizon_3_right.jpg","horizon_3_right.jpg","../../Basic/UniversalMediaPanoramas/horizon_3_right.jpg","https://www.web3d.org/WorkingGroups/media/textures/panoramas/horizon_3_right.jpg","https://www.web3d.org/x3d/content/examples/UniversalMediaPanoramas/horizon_3_right.jpg","http://www.web3dmedia.com/UniversalMedia/textures/panoramas/horizon_3_right.jpg","http://www.officetowers.com/UniversalMedia/textures/panoramas/horizon_3_right.jpg","http://geometrek.com/UniversalMedia/textures/panoramas/horizon_3_right.jpg","http://www.sc.ehu.es/ccwgamoa/UniversalMedia/textures/panoramas/horizon_3_right.jpg"],
              "@skyAngle":[1.309,1.5707],
              "@skyColor":[0,0.5,1,0,0,1,0,0,1],
              "@topUrl":["urn:web3d:media:textures/panoramas/horizon_3_top.jpg","horizon_3_top.jpg","../../Basic/UniversalMediaPanoramas/horizon_3_top.jpg","https://www.web3d.org/WorkingGroups/media/textures/panoramas/horizon_3_top.jpg","https://www.web3d.org/x3d/content/examples/UniversalMediaPanoramas/horizon_3_top.jpg","http://www.web3dmedia.com/UniversalMedia/textures/panoramas/horizon_3_top.jpg","http://www.officetowers.com/UniversalMedia/textures/panoramas/horizon_3_top.jpg","http://geometrek.com/UniversalMedia/textures/panoramas/horizon_3_top.jpg","http://www.sc.ehu.es/ccwgamoa/UniversalMedia/textures/panoramas/horizon_3_top.jpg"]
            }
          },
          { "Switch":
            {
              "@whichChoice":-1,
              "-children":[
                { "Transform":
                  {
                    "@DEF":"HudContent",
                    "@translation":[-0.5,-0.5,0.1],
                    "-children":[
                      { "ProtoInstance":
                        {
                          "@name":"TextString",
                          "@DEF":"TopLabel",
                          "fieldValue": [
                            {
                              "@name":"offset",
                              "@value":[-0.07,-0.2,0]
                            },
                            {
                              "@name":"string",
                              "@value":["Position: "]
                            },
                            {
                              "@name":"color",
                              "@value":[0,0,0]
                            },
                            {
                              "@name":"size",
                              "@value":0.1
                            }
                          ]
                        }
                      },
                      { "ProtoInstance":
                        {
                          "@name":"TextString",
                          "@DEF":"BottomLabel",
                          "fieldValue": [
                            {
                              "@name":"offset",
                              "@value":[-0.13,-0.3,0]
                            },
                            {
                              "@name":"string",
                              "@value":["Orientation: "]
                            },
                            {
                              "@name":"color",
                              "@value":[0,0,0]
                            },
                            {
                              "@name":"size",
                              "@value":0.1
                            }
                          ]
                        }
                      },
                      { "ProtoInstance":
                        {
                          "@name":"TextString",
                          "@DEF":"TopLine",
                          "fieldValue": [
                            {
                              "@name":"offset",
                              "@value":[0.5,-0.2,0]
                            },
                            {
                              "@name":"string",
                              "@value":[""]
                            },
                            {
                              "@name":"color",
                              "@value":[0,0,1]
                            },
                            {
                              "@name":"size",
                              "@value":0.1
                            }
                          ]
                        }
                      },
                      { "ProtoInstance":
                        {
                          "@name":"TextString",
                          "@DEF":"BottomLine",
                          "fieldValue": [
                            {
                              "@name":"offset",
                              "@value":[0.5,-0.3,0]
                            },
                            {
                              "@name":"string",
                              "@value":["0 1 0 0"]
                            },
                            {
                              "@name":"color",
                              "@value":[0.1,0.7,0.1]
                            },
                            {
                              "@name":"size",
                              "@value":0.1
                            }
                          ]
                        }
                      },
                      { "Transform":
                        {
                          "@translation":[0.27,-0.25,-0.1],
                          "-children":[
                            { "Shape":
                              {
                                "-geometry":
                                  { "Box":
                                    {
                                      "@size":[1.4,0.25,0.01]
                                    }
                                  },
                                "-appearance":
                                  { "Appearance":
                                    {
                                      "-material":
                                        { "Material":
                                          {
                                            "@diffuseColor":[0.9,0.9,0.9],
                                            "@transparency":0.5
                                          }
                                        }
                                    }
                                  }
                              }
                            }
                          ]
                        }
                      }
                    ]
                  }
                }
              ]
            }
          },
          { "ProtoInstance":
            {
              "@name":"HeadsUpDisplay",
              "@DEF":"HeadsUpDisplayInstance",
              "fieldValue": [
                {
                  "@name":"screenOffset",
                  "@value":[0.2,0.5,-2]
                },
                {
                  "@name":"children",
                  "-children":[
                    { "Transform":
                      {
                        "@USE":"HudContent"
                      }
                    }
                  ]
                }
              ]
            }
          },
          { "Script":
            {
              "@DEF":"ConvertValueScript",
              "@url":["HudKelpForestScriptConvert.js","https://www.web3d.org/x3d/content/examples/X3dForWebAuthors/Chapter14Prototypes/HudKelpForestScriptConvert.js"],
              "field": [
                {
                  "@name":"sfVec3f",
                  "@accessType":"inputOnly",
                  "@type":"SFVec3f"
                },
                {
                  "@name":"sfRotation",
                  "@accessType":"inputOnly",
                  "@type":"SFRotation"
                },
                {
                  "@name":"sfVec3fString",
                  "@accessType":"outputOnly",
                  "@type":"MFString"
                },
                {
                  "@name":"sfRotationString",
                  "@accessType":"outputOnly",
                  "@type":"MFString"
                }
              ]
            }
          },
          { "ROUTE":
            {
              "@fromField":"position_changed",
              "@fromNode":"HeadsUpDisplayInstance",
              "@toField":"sfVec3f",
              "@toNode":"ConvertValueScript"
            }
          },
          { "ROUTE":
            {
              "@fromField":"orientation_changed",
              "@fromNode":"HeadsUpDisplayInstance",
              "@toField":"sfRotation",
              "@toNode":"ConvertValueScript"
            }
          },
          { "ROUTE":
            {
              "@fromField":"sfVec3fString",
              "@fromNode":"ConvertValueScript",
              "@toField":"string",
              "@toNode":"TopLine"
            }
          },
          { "ROUTE":
            {
              "@fromField":"sfRotationString",
              "@fromNode":"ConvertValueScript",
              "@toField":"string",
              "@toNode":"BottomLine"
            }
          },
          { "Inline":
            {
              "@url":["../KelpForestExhibit/KelpForestMain.x3d","https://www.web3d.org/x3d/content/examples/X3dForWebAuthors/KelpForestExhibit/KelpForestMain.x3d","../KelpForestExhibit//KelpForestMain.wrl","https://www.web3d.org/x3d/content/examples/X3dForWebAuthors/KelpForestExhibit/KelpForestMain.wrl"]
            }
          }
        ]
    }
  }
}