{ "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":"set_bottomurlpng.x3d"
          },
          {
            "@name":"reference",
            "@content":"http://www.nist.gov/vrml.html"
          },
          {
            "@name":"reference",
            "@content":"http://www.itl.nist.gov/div897/ctg/vrml/vrml.html"
          },
          {
            "@name":"creator",
            "@content":"http://www.itl.nist.gov/div897/ctg/vrml/members.html"
          },
          {
            "@name":"disclaimer",
            "@content":"This file was provided by the National Institute of Standards and Technology, and is part of the X3D Conformance Test Suite, available at http://www.nist.gov/vrml.html The information contained within this file is provided for use in establishing conformance to the ISO VRML97 Specification. Conformance to this test does not imply recommendation or endorsement by the National Institute of Standards and Technology (NIST). This software can be redistributed and/or modified freely provided that any derivative works bear some notice that they are derived from it, and any modified versions bear some notice that they have been modified."
          },
          {
            "@name":"reference",
            "@content":"Original NIST Conformance Testing Group, https://www.itl.nist.gov/div897/ctg/vrml"
          },
          {
            "@name":"reference",
            "@content":"Interactive Conformance Testing for VRML, Mary Brady and Lynn Rosenthal, NIST, created 8 September 2010 and updated 25 August 2016, https://www.nist.gov/itl/ssd/information-systems-group/interactive-conformance-testing-vrml"
          },
          {
            "@name":"info",
            "@content":"Correct definition and compliance of this conformance scene is maintained by the X3D Working Group, https://www.web3d.org/working-groups/x3d"
          },
          {
            "@name":"creator",
            "@content":"Michael Kass NIST"
          },
          {
            "@name":"translator",
            "@content":"Don Brutzman"
          },
          {
            "@name":"translated",
            "@content":"21 January 2001"
          },
          {
            "@name":"modified",
            "@content":"28 August 2023"
          },
          {
            "@name":"description",
            "@content":"Test browser to switch between different backgrounds where each one contains a different bottomurl PNG image associated with it. The bottom image may be changed by clicking on the appropriate text as indicated. The test should generate a different PNG image each time the appropriate text is clicked. All images are on PNG format and are of the mountains of the High Sierra. A viewpoint node is set so that the image will be rotated -1.57 radians along the X axis the make it possible to see and toggle the images."
          },
          {
            "@name":"identifier",
            "@content":"https://www.web3d.org/x3d/content/examples/ConformanceNist/BindableNodes/Background/set_bottomurlpng.x3d"
          },
          {
            "@name":"generator",
            "@content":"Vrml97ToX3dNist, http://ovrt.nist.gov/v2_x3d.html"
          },
          {
            "@name":"generator",
            "@content":"X3D-Edit 4.0, https://www.web3d.org/x3d/tools/X3D-Edit"
          },
          {
            "@name":"license",
            "@content":"../../license.html"
          },
          {
            "@name":"translated",
            "@content":"25 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":"set_bottomurlpng.x3d"
            }
          },
          { "NavigationInfo":
            {
              "@type":["EXAMINE","WALK","FLY","ANY"]
            }
          },
          { "Group":
            {
              "-children":[
                { "Viewpoint":
                  {
                    "@DEF":"the-view1",
                    "@description":"Bottom View",
                    "@orientation":[1,0,0,-1.57],
                    "@position":[0,0,23]
                  }
                }
              ]
            }
          },
          { "Group":
            {
              "-children":[
                { "Background":
                  {
                    "@DEF":"back1",
                    "@backUrl":["mt-humphreys.jpg","https://www.web3d.org/x3d/content/examples/ConformanceNist/BindableNodes/Background/mt-humphreys.jpg"],
                    "@groundColor":[0,0,0]
                  }
                },
                { "Background":
                  {
                    "@DEF":"back2",
                    "@backUrl":["lostlakes.jpg","https://www.web3d.org/x3d/content/examples/ConformanceNist/BindableNodes/Background/lostlakes.jpg"],
                    "@groundColor":[0,0,0]
                  }
                },
                { "Background":
                  {
                    "@DEF":"back3",
                    "@backUrl":["mt-huxley.jpg","https://www.web3d.org/x3d/content/examples/ConformanceNist/BindableNodes/Background/mt-huxley.jpg"],
                    "@groundColor":[0,0,0]
                  }
                },
                { "Background":
                  {
                    "@DEF":"back4",
                    "@backUrl":["mt-whitney.jpg","https://www.web3d.org/x3d/content/examples/ConformanceNist/BindableNodes/Background/mt-whitney.jpg"],
                    "@groundColor":[0,0,0]
                  }
                }
              ]
            }
          },
          { "Transform":
            {
              "@rotation":[1,0,0,-1.57],
              "@translation":[0,-10,23],
              "-children":[
                { "Transform":
                  {
                    "@scale":[0.02,0.02,0.02],
                    "@translation":[-5.4,-2,0],
                    "-children":[
                      { "Shape":
                        {
                          "-appearance":
                            { "Appearance":
                              {
                                "-material":
                                  { "Material":
                                    {
                                      "@ambientIntensity":1,
                                      "@diffuseColor":[0,1,0],
                                      "@emissiveColor":[0,1,0]
                                    }
                                  }
                              }
                            },
                          "-geometry":
                            { "Text":
                              {
                                "@string":["CLICK TO SELECT BOTTOM URL IMAGE"],
                                "-fontStyle":
                                  { "FontStyle":
                                    {
                                      "@DEF":"the-style",
                                      "@justify":["FIRST","FIRST"],
                                      "@size":28,
                                      "@style":"BOLD"
                                    }
                                  }
                              }
                            }
                        }
                      }
                    ]
                  }
                },
                { "Transform":
                  {
                    "@scale":[0.02,0.02,0.02],
                    "@translation":[-5.4,-2.7,0],
                    "-children":[
                      { "Shape":
                        {
                          "-appearance":
                            { "Appearance":
                              {
                                "@DEF":"the-appearance",
                                "-material":
                                  { "Material":
                                    {
                                      "@ambientIntensity":1,
                                      "@diffuseColor":[0,0,1],
                                      "@emissiveColor":[0,0,1]
                                    }
                                  }
                              }
                            },
                          "-geometry":
                            { "Text":
                              {
                                "@string":["Mt. Humphreys"],
                                "-fontStyle":
                                  { "FontStyle":
                                    {
                                      "@USE":"the-style"
                                    }
                                  }
                              }
                            }
                        }
                      },
                      { "TouchSensor":
                        {
                          "@DEF":"the-touch1",
                          "@description":"touch to activate"
                        }
                      }
                    ]
                  }
                },
                { "Transform":
                  {
                    "@scale":[0.02,0.02,0.02],
                    "@translation":[-5.4,-3.4,0],
                    "-children":[
                      { "Shape":
                        {
                          "-appearance":
                            { "Appearance":
                              {
                                "@USE":"the-appearance"
                              }
                            },
                          "-geometry":
                            { "Text":
                              {
                                "@string":["Lost Lakes"],
                                "-fontStyle":
                                  { "FontStyle":
                                    {
                                      "@USE":"the-style"
                                    }
                                  }
                              }
                            }
                        }
                      },
                      { "TouchSensor":
                        {
                          "@DEF":"the-touch2",
                          "@description":"touch to activate"
                        }
                      }
                    ]
                  }
                },
                { "Transform":
                  {
                    "@scale":[0.02,0.02,0.02],
                    "@translation":[1,-2.7,0],
                    "-children":[
                      { "Shape":
                        {
                          "-appearance":
                            { "Appearance":
                              {
                                "@USE":"the-appearance"
                              }
                            },
                          "-geometry":
                            { "Text":
                              {
                                "@string":["Mt. Huxley"],
                                "-fontStyle":
                                  { "FontStyle":
                                    {
                                      "@USE":"the-style"
                                    }
                                  }
                              }
                            }
                        }
                      },
                      { "TouchSensor":
                        {
                          "@DEF":"the-touch3",
                          "@description":"touch to activate"
                        }
                      }
                    ]
                  }
                },
                { "Transform":
                  {
                    "@scale":[0.02,0.02,0.02],
                    "@translation":[1,-3.4,0],
                    "-children":[
                      { "Shape":
                        {
                          "-appearance":
                            { "Appearance":
                              {
                                "@USE":"the-appearance"
                              }
                            },
                          "-geometry":
                            { "Text":
                              {
                                "@string":["Mt. Whitney"],
                                "-fontStyle":
                                  { "FontStyle":
                                    {
                                      "@USE":"the-style"
                                    }
                                  }
                              }
                            }
                        }
                      },
                      { "TouchSensor":
                        {
                          "@DEF":"the-touch4",
                          "@description":"touch to activate"
                        }
                      }
                    ]
                  }
                }
              ]
            }
          },
          { "Script":
            {
              "@DEF":"image-back1",
              "field": [
                {
                  "@name":"value_in",
                  "@accessType":"inputOnly",
                  "@type":"SFBool"
                },
                {
                  "@name":"value_out",
                  "@accessType":"outputOnly",
                  "@type":"SFBool"
                }
              ],
              "#sourceCode":[
"",
"",
"ecmascript:",
"function value_in (the_value) {",
"\tif (the_value == true) { value_out = true; }",
"\telse { value_out = true;}",
"}",
"",
""
]
            }
          },
          { "Script":
            {
              "@DEF":"image-back2",
              "field": [
                {
                  "@name":"value_in",
                  "@accessType":"inputOnly",
                  "@type":"SFBool"
                },
                {
                  "@name":"value_out",
                  "@accessType":"outputOnly",
                  "@type":"SFBool"
                }
              ],
              "#sourceCode":[
"",
"",
"ecmascript:",
"",
"function value_in (the_value) ",
"{",
"\tif (the_value == true)",
"\t{",
"\t\tvalue_out = true;",
"\t}",
"\telse",
"\t{",
"\t\tvalue_out = true;",
"\t}",
"}",
"",
""
]
            }
          },
          { "Script":
            {
              "@DEF":"image-back3",
              "field": [
                {
                  "@name":"value_in",
                  "@accessType":"inputOnly",
                  "@type":"SFBool"
                },
                {
                  "@name":"value_out",
                  "@accessType":"outputOnly",
                  "@type":"SFBool"
                }
              ],
              "#sourceCode":[
"",
"",
"ecmascript:",
"",
"function value_in (the_value) ",
"{",
"\tif (the_value == true)",
"\t{",
"\t\tvalue_out = true;",
"\t}",
"\telse",
"\t{",
"\t\tvalue_out = true;",
"\t}",
"}",
"",
""
]
            }
          },
          { "Script":
            {
              "@DEF":"image-back4",
              "field": [
                {
                  "@name":"value_in",
                  "@accessType":"inputOnly",
                  "@type":"SFBool"
                },
                {
                  "@name":"value_out",
                  "@accessType":"outputOnly",
                  "@type":"SFBool"
                }
              ],
              "#sourceCode":[
"",
"",
"ecmascript:",
"",
"function value_in (the_value) ",
"{",
"\tif (the_value == true)",
"\t{",
"\t\tvalue_out = true;",
"\t}",
"\telse",
"\t{",
"\t\tvalue_out = true;",
"\t}",
"}",
"",
""
]
            }
          },
          { "ROUTE":
            {
              "@fromField":"isActive",
              "@fromNode":"the-touch1",
              "@toField":"value_in",
              "@toNode":"image-back1"
            }
          },
          { "ROUTE":
            {
              "@fromField":"isActive",
              "@fromNode":"the-touch2",
              "@toField":"value_in",
              "@toNode":"image-back2"
            }
          },
          { "ROUTE":
            {
              "@fromField":"isActive",
              "@fromNode":"the-touch3",
              "@toField":"value_in",
              "@toNode":"image-back3"
            }
          },
          { "ROUTE":
            {
              "@fromField":"isActive",
              "@fromNode":"the-touch4",
              "@toField":"value_in",
              "@toNode":"image-back4"
            }
          },
          { "ROUTE":
            {
              "@fromField":"value_out",
              "@fromNode":"image-back1",
              "@toField":"set_bind",
              "@toNode":"back1"
            }
          },
          { "ROUTE":
            {
              "@fromField":"value_out",
              "@fromNode":"image-back2",
              "@toField":"set_bind",
              "@toNode":"back2"
            }
          },
          { "ROUTE":
            {
              "@fromField":"value_out",
              "@fromNode":"image-back3",
              "@toField":"set_bind",
              "@toNode":"back3"
            }
          },
          { "ROUTE":
            {
              "@fromField":"value_out",
              "@fromNode":"image-back4",
              "@toField":"set_bind",
              "@toNode":"back4"
            }
          }
        ]
    }
  }
}