{ "X3D": {
    "encoding":"UTF-8",
    "@profile":"Immersive",
    "@version":"4.0",
    "@xsd:noNamespaceSchemaLocation":"https://www.web3d.org/specifications/x3d-4.0.xsd",
    "JSON schema":"https://www.web3d.org/specifications/x3d-4.0-JSONSchema.autogenerated.json",
    "head": {
        "meta": [
          {
            "@name":"title",
            "@content":"HelloPortugal.x3d"
          },
          {
            "@name":"description",
            "@content":"HelloPortugal example scene to show Portuguese special characters, built for Web3D 2024 Conference Tutorial."
          },
          {
            "@name":"creator",
            "@content":"Don Brutzman"
          },
          {
            "@name":"created",
            "@content":"24 September 2024"
          },
          {
            "@name":"modified",
            "@content":"28 December 2024"
          },
          {
            "@name":"subject",
            "@content":"Hello World, Portugal"
          },
          {
            "@name":"reference",
            "@content":"https://en.wikipedia.org/wiki/Portugal"
          },
          {
            "@name":"Image",
            "@content":"https://en.wikipedia.org/wiki/Portugal#/media/File:Flag_of_Portugal.svg"
          },
          {
            "@name":"Image",
            "@content":"https://upload.wikimedia.org/wikipedia/commons/thumb/5/5c/Flag_of_Portugal.svg/600px-Flag_of_Portugal.svg.png"
          },
          {
            "@name":"Image",
            "@content":"images/HelloPortugalCastleModelViewer.png"
          },
          {
            "@name":"Image",
            "@content":"images/HelloPortugalFreeWRL.png"
          },
          {
            "@name":"Image",
            "@content":"images/HelloPortugalH3DViewer.png"
          },
          {
            "@name":"Image",
            "@content":"images/HelloPortugalInstantReality.png"
          },
          {
            "@name":"Image",
            "@content":"images/HelloPortugalOctaga.png"
          },
          {
            "@name":"reference",
            "@content":"Completed https://github.com/castle-engine/view3dscene/issues/30#issuecomment-630715046"
          },
          {
            "@name":"Image",
            "@content":"images/HelloPortugalXj3d.png"
          },
          {
            "@name":"Image",
            "@content":"images/HelloPortugalX_ITE.png"
          },
          {
            "@name":"Image",
            "@content":"images/HelloPortugalX_ITE-FlagRotating.png"
          },
          {
            "@name":"Image",
            "@content":"images/HelloPortugalX_ITEPlayground.png"
          },
          {
            "@name":"Image",
            "@content":"images/HelloPortugalX3DOM.png"
          },
          {
            "@name":"Image",
            "@content":"images/HelloPortugalX3DOMEditor.png"
          },
          {
            "@name":"reference",
            "@content":"https://www.w3.org/International"
          },
          {
            "@name":"reference",
            "@content":"https://de.wikipedia.org/wiki/Liste_von_Hallo-Welt-Programmen/H%C3%B6here_Programmiersprachen"
          },
          {
            "@name":"reference",
            "@content":"https://en.wikipedia.org/wiki/Percent-encoding"
          },
          {
            "@name":"reference",
            "@content":"https://helloworldcollection.de/#VRML"
          },
          {
            "@name":"reference",
            "@content":"https://en.wiktionary.org/wiki/Hello_World"
          },
          {
            "@name":"reference",
            "@content":"https://en.wikipedia.org/wiki/%22Hello,%20World!%22_program"
          },
          {
            "@name":"reference",
            "@content":"https://en.wikibooks.org/w/index.php?title=Computer_Programming/Hello_world"
          },
          {
            "@name":"reference",
            "@content":"https://www.youtube.com/channel/UCSOnGlgAFxkWg8ilg-JEbAQ"
          },
          {
            "@name":"identifier",
            "@content":"https://www.web3d.org/x3d/content/examples/X3dForAdvancedModeling/HelloWorldScenes/HelloPortugal.x3d"
          },
          {
            "@name":"generator",
            "@content":"X3D-Edit 4.0, https://www.web3d.org/x3d/tools/X3D-Edit"
          },
          {
            "@name":"license",
            "@content":"../license.html"
          },
          {
            "@name":"translated",
            "@content":"31 August 2025"
          },
          {
            "@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":"HelloPortugal.x3d"
            }
          },
          { "Background":
            {
              "@skyColor":[1,0.84,0.26]
            }
          },
          { "NavigationInfo":
            {
              "@type":["EXAMINE","LOOKAT","ANY"]
            }
          },
          { "Viewpoint":
            {
              "@DEF":"ViewpointEntry",
              "@description":"Olá Portugal! Divirta-se com o X3D!"
            }
          },
          { "Viewpoint":
            {
              "@DEF":"ViewpointRotation",
              "@description":"rotate the flag"
            }
          },
          { "Anchor":
            {
              "@description":"Wikipedia: Tourism in Portugal",
              "@url":["https://en.wikipedia.org/wiki/Tourism_in_Portugal"],
              "-children":[
                { "Transform":
                  {
                    "@translation":[0,-2,0],
                    "-children":[
                      { "Transform":
                        {
                          "@translation":[0,4.8,0],
                          "-children":[
                            { "Shape":
                              {
                                "@DEF":"OlaShape",
                                "-geometry":
                                  { "Text":
                                    {
                                      "@string":["Olá Portugal!"],
                                      "-children":[
                                        {
                                          "#comment":"https://translate.google.com/?sl=auto&tl=pt-PT&text=Hello%20Portugal!&op=translate"
                                        }
                                      ],
                                      "-fontStyle":
                                        { "FontStyle":
                                          {
                                            "@DEF":"CenteredFontStyle",
                                            "@justify":["MIDDLE","MIDDLE"]
                                          }
                                        }
                                    }
                                  },
                                "-appearance":
                                  { "Appearance":
                                    {
                                      "@DEF":"BlackAppearance",
                                      "-material":
                                        { "Material":
                                          {
                                            "@diffuseColor":[0.01,0.4,0.01]
                                          }
                                        }
                                    }
                                  }
                              }
                            }
                          ]
                        }
                      },
                      { "Shape":
                        {
                          "-geometry":
                            { "Text":
                              {
                                "@string":["Divirta-se com o X3D!","Have fun with X3D!"],
                                "-fontStyle":
                                  { "FontStyle":
                                    {
                                      "@USE":"CenteredFontStyle"
                                    }
                                  }
                              }
                            },
                          "-appearance":
                            { "Appearance":
                              {
                                "@USE":"BlackAppearance"
                              }
                            }
                        }
                      },
                      { "Transform":
                        {
                          "@DEF":"PortugueseFlagTransform",
                          "@scale":[0.8,0.8,0.8],
                          "@translation":[0,2.6,0],
                          "-children":[
                            { "Shape":
                              {
                                "-children":[
                                  {
                                    "#comment":"image is 600px x 400px"
                                  }
                                ],
                                "-geometry":
                                  { "Box":
                                    {
                                      "@size":[6,4,0.01]
                                    }
                                  },
                                "-appearance":
                                  { "Appearance":
                                    {
                                      "-material":
                                        { "Material":
                                          {
                                          }
                                        },
                                      "-children":[
                                        {
                                          "#comment":"https://upload.wikimedia.org/wikipedia/commons/thumb/5/5c/Flag_of_Portugal.svg/600px-Flag_of_Portugal.svg.png"
                                        },
                                        {
                                          "#comment":"although not specified by X3D 4.0, SVG is an allowable format and so it can be included in the list"
                                        }
                                      ],
                                      "-texture":
                                        { "ImageTexture":
                                          {
                                            "@DEF":"FlagOfPortugalImage",
                                            "@description":"Flag of Portugal",
                                            "@url":["Flag_of_Portugal.svg","Flag_of_Portugal.svg.png","https://www.web3d.org/x3d/content/examples/X3dForAdvancedModeling/HelloWorldScenes/Flag_of_Portugal.svg","https://www.web3d.org/x3d/content/examples/X3dForAdvancedModeling/HelloWorldScenes/Flag_of_Portugal.svg.png"]
                                          }
                                        }
                                    }
                                  }
                              }
                            }
                          ]
                        }
                      }
                    ]
                  }
                }
              ]
            }
          },
          { "OrientationInterpolator":
            {
              "@DEF":"SpinInterpolator",
              "@key":[0,0.3333,0.6667,1],
              "@keyValue":[0,1,0,0,0,1,0,2.094395,0,1,0,4.18879,0,1,0,0]
            }
          },
          { "TimeSensor":
            {
              "@DEF":"SpinClock",
              "@cycleInterval":4,
              "@enabled":false,
              "@loop":true
            }
          },
          { "ROUTE":
            {
              "@fromField":"isBound",
              "@fromNode":"ViewpointRotation",
              "@toField":"enabled",
              "@toNode":"SpinClock"
            }
          },
          { "ROUTE":
            {
              "@fromField":"fraction_changed",
              "@fromNode":"SpinClock",
              "@toField":"set_fraction",
              "@toNode":"SpinInterpolator"
            }
          },
          { "ROUTE":
            {
              "@fromField":"value_changed",
              "@fromNode":"SpinInterpolator",
              "@toField":"set_rotation",
              "@toNode":"PortugueseFlagTransform"
            }
          }
        ]
    }
  }
}