{ "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":"fivedeepnesting.x3d"
          },
          {
            "@name":"Image",
            "@content":"5deepnesting-front.jpg"
          },
          {
            "@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":"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":"revisions",
            "@content":"Don Brutzman"
          },
          {
            "@name":"description",
            "@content":"This is a test of browser ability to nest 5 PROTO node within each other. 5 PROTO node, consisting of a \"ringshaped\" Extrusion geometry are nested, one within the other, within the other. Each Extrusion geometry in each PROTO has a different diffuseColor. The result should appear as 5 ringshaped geometry, with the top ring colored red, below it a blue, then green, then yellow, then a purple ring."
          },
          {
            "@name":"identifier",
            "@content":"https://www.web3d.org/x3d/content/examples/ConformanceNist/Miscellaneous/PROTO/fivedeepnesting.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":"fivedeepnesting.x3d"
            }
          },
          { "ProtoDeclare":
            {
              "@name":"Proto1",
              "ProtoBody": {
                  "-children":[
                    { "ProtoDeclare":
                      {
                        "@name":"Proto2",
                        "ProtoBody": {
                            "-children":[
                              { "ProtoDeclare":
                                {
                                  "@name":"Proto3",
                                  "ProtoBody": {
                                      "-children":[
                                        { "ProtoDeclare":
                                          {
                                            "@name":"Proto4",
                                            "ProtoBody": {
                                                "-children":[
                                                  { "ProtoDeclare":
                                                    {
                                                      "@name":"Proto5",
                                                      "ProtoBody": {
                                                          "-children":[
                                                            { "Group":
                                                              {
                                                                "-children":[
                                                                  { "TouchSensor":
                                                                    {
                                                                      "@DEF":"TOUCH5",
                                                                      "@description":"touch to activate 5"
                                                                    }
                                                                  },
                                                                  { "Background":
                                                                    {
                                                                      "@DEF":"BACK5",
                                                                      "@groundColor":[0.5,0,0.5],
                                                                      "@skyColor":[0.5,0,0.5]
                                                                    }
                                                                  },
                                                                  { "Transform":
                                                                    {
                                                                      "@scale":[1.2,1.2,1.2],
                                                                      "@translation":[0,0,1],
                                                                      "-children":[
                                                                        { "Shape":
                                                                          {
                                                                            "-appearance":
                                                                              { "Appearance":
                                                                                {
                                                                                  "-material":
                                                                                    { "Material":
                                                                                      {
                                                                                        "@diffuseColor":[1,0,1]
                                                                                      }
                                                                                    }
                                                                                }
                                                                              },
                                                                            "-geometry":
                                                                              { "Extrusion":
                                                                                {
                                                                                  "@creaseAngle":1,
                                                                                  "@crossSection":[1,0,0.92388,0.382683,0.707107,0.707106,0.382684,0.923879,1.26759e-006,1,-0.382682,0.92388,-0.707105,0.707108,-0.923879,0.382685,-1,2.53518e-006,-0.923881,-0.382681,-0.707109,-0.707105,-0.382687,-0.923878,-3.80277e-006,-1,0.38268,-0.923881,0.707104,-0.70711,0.923878,-0.382688,1,0],
                                                                                  "@orientation":[0,0,1,0,0,0,1,0,0,0,1,0,0,0,1,0,0,0,1,0,0,0,1,0,0,0,1,0,0,0,1,0,0,0,1,0,0,0,1,0,0,0,1,0,0,0,1,0,0,0,1,0,0,0,1,0,0,0,1,0,0,0,1,0,0,0,1,0],
                                                                                  "@scale":[0.6,0.6,0.6,0.6,0.6,0.6,0.6,0.6,0.6,0.6,0.6,0.6,0.6,0.6,0.6,0.6,0.6,0.6,0.6,0.6,0.6,0.6,0.6,0.6,0.6,0.6,0.6,0.6,0.6,0.6,0.6,0.6,0.6,0.6],
                                                                                  "@solid":false,
                                                                                  "@spine":[1,0,0,0.92388,0.382683,0,0.707107,0.707106,0,0.382684,0.923879,0,1.26759e-006,1,0,-0.382682,0.92388,0,-0.707105,0.707108,0,-0.923879,0.382685,0,-1,2.53518e-006,0,-0.923881,-0.382681,0,-0.707109,-0.707105,0,-0.382687,-0.923878,0,-3.80277e-006,-1,0,0.38268,-0.923881,0,0.707104,-0.70711,0,0.923878,-0.382688,0,1,0,0]
                                                                                }
                                                                              }
                                                                          }
                                                                        }
                                                                      ]
                                                                    }
                                                                  }
                                                                ]
                                                              }
                                                            },
                                                            { "ROUTE":
                                                              {
                                                                "@fromField":"isOver",
                                                                "@fromNode":"TOUCH5",
                                                                "@toField":"set_bind",
                                                                "@toNode":"BACK5"
                                                              }
                                                            }
                                                          ]
                                                      }
                                                    }
                                                  },
                                                  { "Group":
                                                    {
                                                      "-children":[
                                                        { "TouchSensor":
                                                          {
                                                            "@DEF":"TOUCH4",
                                                            "@description":"touch to activate 4"
                                                          }
                                                        },
                                                        { "Background":
                                                          {
                                                            "@DEF":"BACK4",
                                                            "@groundColor":[0.5,0.5,0],
                                                            "@skyColor":[0.5,0.5,0]
                                                          }
                                                        },
                                                        { "Transform":
                                                          {
                                                            "@scale":[1.2,1.2,1.2],
                                                            "@translation":[0,0,0.75],
                                                            "-children":[
                                                              { "Shape":
                                                                {
                                                                  "-appearance":
                                                                    { "Appearance":
                                                                      {
                                                                        "-material":
                                                                          { "Material":
                                                                            {
                                                                              "@diffuseColor":[1,1,0]
                                                                            }
                                                                          }
                                                                      }
                                                                    },
                                                                  "-geometry":
                                                                    { "Extrusion":
                                                                      {
                                                                        "@creaseAngle":1,
                                                                        "@crossSection":[1,0,0.92388,0.382683,0.707107,0.707106,0.382684,0.923879,1.26759e-006,1,-0.382682,0.92388,-0.707105,0.707108,-0.923879,0.382685,-1,2.53518e-006,-0.923881,-0.382681,-0.707109,-0.707105,-0.382687,-0.923878,-3.80277e-006,-1,0.38268,-0.923881,0.707104,-0.70711,0.923878,-0.382688,1,0],
                                                                        "@orientation":[0,0,1,0,0,0,1,0,0,0,1,0,0,0,1,0,0,0,1,0,0,0,1,0,0,0,1,0,0,0,1,0,0,0,1,0,0,0,1,0,0,0,1,0,0,0,1,0,0,0,1,0,0,0,1,0,0,0,1,0,0,0,1,0,0,0,1,0],
                                                                        "@scale":[0.4,0.4,0.4,0.4,0.4,0.4,0.4,0.4,0.4,0.4,0.4,0.4,0.4,0.4,0.4,0.4,0.4,0.4,0.4,0.4,0.4,0.4,0.4,0.4,0.4,0.4,0.4,0.4,0.4,0.4,0.4,0.4,0.4,0.4],
                                                                        "@solid":false,
                                                                        "@spine":[1,0,0,0.92388,0.382683,0,0.707107,0.707106,0,0.382684,0.923879,0,1.26759e-006,1,0,-0.382682,0.92388,0,-0.707105,0.707108,0,-0.923879,0.382685,0,-1,2.53518e-006,0,-0.923881,-0.382681,0,-0.707109,-0.707105,0,-0.382687,-0.923878,0,-3.80277e-006,-1,0,0.38268,-0.923881,0,0.707104,-0.70711,0,0.923878,-0.382688,0,1,0,0]
                                                                      }
                                                                    }
                                                                }
                                                              },
                                                              { "ProtoInstance":
                                                                {
                                                                  "@name":"Proto5"
                                                                }
                                                              }
                                                            ]
                                                          }
                                                        }
                                                      ]
                                                    }
                                                  },
                                                  { "ROUTE":
                                                    {
                                                      "@fromField":"isOver",
                                                      "@fromNode":"TOUCH4",
                                                      "@toField":"set_bind",
                                                      "@toNode":"BACK4"
                                                    }
                                                  }
                                                ]
                                            }
                                          }
                                        },
                                        { "Group":
                                          {
                                            "-children":[
                                              { "TouchSensor":
                                                {
                                                  "@DEF":"TOUCH3",
                                                  "@description":"touch to activate 3"
                                                }
                                              },
                                              { "Background":
                                                {
                                                  "@DEF":"BACK3",
                                                  "@groundColor":[0,0,0.5],
                                                  "@skyColor":[0,0,0.5]
                                                }
                                              },
                                              { "Transform":
                                                {
                                                  "@scale":[1.2,1.2,1.2],
                                                  "@translation":[0,0,0.75],
                                                  "-children":[
                                                    { "Shape":
                                                      {
                                                        "-appearance":
                                                          { "Appearance":
                                                            {
                                                              "-material":
                                                                { "Material":
                                                                  {
                                                                    "@diffuseColor":[0,0,1]
                                                                  }
                                                                }
                                                            }
                                                          },
                                                        "-geometry":
                                                          { "Extrusion":
                                                            {
                                                              "@creaseAngle":1,
                                                              "@crossSection":[1,0,0.92388,0.382683,0.707107,0.707106,0.382684,0.923879,1.26759e-006,1,-0.382682,0.92388,-0.707105,0.707108,-0.923879,0.382685,-1,2.53518e-006,-0.923881,-0.382681,-0.707109,-0.707105,-0.382687,-0.923878,-3.80277e-006,-1,0.38268,-0.923881,0.707104,-0.70711,0.923878,-0.382688,1,0],
                                                              "@orientation":[0,0,1,0,0,0,1,0,0,0,1,0,0,0,1,0,0,0,1,0,0,0,1,0,0,0,1,0,0,0,1,0,0,0,1,0,0,0,1,0,0,0,1,0,0,0,1,0,0,0,1,0,0,0,1,0,0,0,1,0,0,0,1,0,0,0,1,0],
                                                              "@scale":[0.4,0.4,0.4,0.4,0.4,0.4,0.4,0.4,0.4,0.4,0.4,0.4,0.4,0.4,0.4,0.4,0.4,0.4,0.4,0.4,0.4,0.4,0.4,0.4,0.4,0.4,0.4,0.4,0.4,0.4,0.4,0.4,0.4,0.4],
                                                              "@solid":false,
                                                              "@spine":[1,0,0,0.92388,0.382683,0,0.707107,0.707106,0,0.382684,0.923879,0,1.26759e-006,1,0,-0.382682,0.92388,0,-0.707105,0.707108,0,-0.923879,0.382685,0,-1,2.53518e-006,0,-0.923881,-0.382681,0,-0.707109,-0.707105,0,-0.382687,-0.923878,0,-3.80277e-006,-1,0,0.38268,-0.923881,0,0.707104,-0.70711,0,0.923878,-0.382688,0,1,0,0]
                                                            }
                                                          }
                                                      }
                                                    },
                                                    { "ProtoInstance":
                                                      {
                                                        "@name":"Proto4"
                                                      }
                                                    }
                                                  ]
                                                }
                                              }
                                            ]
                                          }
                                        },
                                        { "ROUTE":
                                          {
                                            "@fromField":"isOver",
                                            "@fromNode":"TOUCH3",
                                            "@toField":"set_bind",
                                            "@toNode":"BACK3"
                                          }
                                        }
                                      ]
                                  }
                                }
                              },
                              { "Group":
                                {
                                  "-children":[
                                    { "TouchSensor":
                                      {
                                        "@DEF":"TOUCH2",
                                        "@description":"touch to activate 2"
                                      }
                                    },
                                    { "Background":
                                      {
                                        "@DEF":"BACK2",
                                        "@groundColor":[0,0.5,0],
                                        "@skyColor":[0,0.5,0]
                                      }
                                    },
                                    { "Transform":
                                      {
                                        "@scale":[1.2,1.2,1.2],
                                        "@translation":[0,0,0.75],
                                        "-children":[
                                          { "Shape":
                                            {
                                              "-appearance":
                                                { "Appearance":
                                                  {
                                                    "-material":
                                                      { "Material":
                                                        {
                                                          "@diffuseColor":[0,1,0]
                                                        }
                                                      }
                                                  }
                                                },
                                              "-geometry":
                                                { "Extrusion":
                                                  {
                                                    "@creaseAngle":1,
                                                    "@crossSection":[1,0,0.92388,0.382683,0.707107,0.707106,0.382684,0.923879,1.26759e-006,1,-0.382682,0.92388,-0.707105,0.707108,-0.923879,0.382685,-1,2.53518e-006,-0.923881,-0.382681,-0.707109,-0.707105,-0.382687,-0.923878,-3.80277e-006,-1,0.38268,-0.923881,0.707104,-0.70711,0.923878,-0.382688,1,0],
                                                    "@orientation":[0,0,1,0,0,0,1,0,0,0,1,0,0,0,1,0,0,0,1,0,0,0,1,0,0,0,1,0,0,0,1,0,0,0,1,0,0,0,1,0,0,0,1,0,0,0,1,0,0,0,1,0,0,0,1,0,0,0,1,0,0,0,1,0,0,0,1,0],
                                                    "@scale":[0.4,0.4,0.4,0.4,0.4,0.4,0.4,0.4,0.4,0.4,0.4,0.4,0.4,0.4,0.4,0.4,0.4,0.4,0.4,0.4,0.4,0.4,0.4,0.4,0.4,0.4,0.4,0.4,0.4,0.4,0.4,0.4,0.4,0.4],
                                                    "@solid":false,
                                                    "@spine":[1,0,0,0.92388,0.382683,0,0.707107,0.707106,0,0.382684,0.923879,0,1.26759e-006,1,0,-0.382682,0.92388,0,-0.707105,0.707108,0,-0.923879,0.382685,0,-1,2.53518e-006,0,-0.923881,-0.382681,0,-0.707109,-0.707105,0,-0.382687,-0.923878,0,-3.80277e-006,-1,0,0.38268,-0.923881,0,0.707104,-0.70711,0,0.923878,-0.382688,0,1,0,0]
                                                  }
                                                }
                                            }
                                          },
                                          { "ProtoInstance":
                                            {
                                              "@name":"Proto3"
                                            }
                                          }
                                        ]
                                      }
                                    }
                                  ]
                                }
                              },
                              { "ROUTE":
                                {
                                  "@fromField":"isOver",
                                  "@fromNode":"TOUCH2",
                                  "@toField":"set_bind",
                                  "@toNode":"BACK2"
                                }
                              }
                            ]
                        }
                      }
                    },
                    { "Group":
                      {
                        "-children":[
                          { "TouchSensor":
                            {
                              "@DEF":"TOUCH1",
                              "@description":"touch to activate 1"
                            }
                          },
                          { "Background":
                            {
                              "@DEF":"BACK1",
                              "@groundColor":[0.5,0,0],
                              "@skyColor":[0.5,0,0]
                            }
                          },
                          { "Transform":
                            {
                              "@scale":[1.2,1.2,1.2],
                              "@translation":[0,0,0.75],
                              "-children":[
                                { "Shape":
                                  {
                                    "-appearance":
                                      { "Appearance":
                                        {
                                          "-material":
                                            { "Material":
                                              {
                                                "@diffuseColor":[1,0,0]
                                              }
                                            }
                                        }
                                      },
                                    "-geometry":
                                      { "Extrusion":
                                        {
                                          "@creaseAngle":1,
                                          "@crossSection":[1,0,0.92388,0.382683,0.707107,0.707106,0.382684,0.923879,1.26759e-006,1,-0.382682,0.92388,-0.707105,0.707108,-0.923879,0.382685,-1,2.53518e-006,-0.923881,-0.382681,-0.707109,-0.707105,-0.382687,-0.923878,-3.80277e-006,-1,0.38268,-0.923881,0.707104,-0.70711,0.923878,-0.382688,1,0],
                                          "@orientation":[0,0,1,0,0,0,1,0,0,0,1,0,0,0,1,0,0,0,1,0,0,0,1,0,0,0,1,0,0,0,1,0,0,0,1,0,0,0,1,0,0,0,1,0,0,0,1,0,0,0,1,0,0,0,1,0,0,0,1,0,0,0,1,0,0,0,1,0],
                                          "@scale":[0.4,0.4,0.4,0.4,0.4,0.4,0.4,0.4,0.4,0.4,0.4,0.4,0.4,0.4,0.4,0.4,0.4,0.4,0.4,0.4,0.4,0.4,0.4,0.4,0.4,0.4,0.4,0.4,0.4,0.4,0.4,0.4,0.4,0.4],
                                          "@solid":false,
                                          "@spine":[1,0,0,0.92388,0.382683,0,0.707107,0.707106,0,0.382684,0.923879,0,1.26759e-006,1,0,-0.382682,0.92388,0,-0.707105,0.707108,0,-0.923879,0.382685,0,-1,2.53518e-006,0,-0.923881,-0.382681,0,-0.707109,-0.707105,0,-0.382687,-0.923878,0,-3.80277e-006,-1,0,0.38268,-0.923881,0,0.707104,-0.70711,0,0.923878,-0.382688,0,1,0,0]
                                        }
                                      }
                                  }
                                },
                                { "ProtoInstance":
                                  {
                                    "@name":"Proto2"
                                  }
                                }
                              ]
                            }
                          }
                        ]
                      }
                    },
                    { "ROUTE":
                      {
                        "@fromField":"isOver",
                        "@fromNode":"TOUCH1",
                        "@toField":"set_bind",
                        "@toNode":"BACK1"
                      }
                    }
                  ]
              }
            }
          },
          { "Group":
            {
              "-children":[
                { "NavigationInfo":
                  {
                    "@type":["EXAMINE","WALK","FLY","ANY"]
                  }
                },
                { "Viewpoint":
                  {
                    "@description":"Front View",
                    "@position":[0,0,25]
                  }
                },
                { "Background":
                  {
                    "@groundColor":[0,0,0]
                  }
                },
                { "Transform":
                  {
                    "@translation":[0,-3,0],
                    "-children":[
                      { "Transform":
                        {
                          "@translation":[0,5,0],
                          "-children":[
                            { "Shape":
                              {
                                "-appearance":
                                  { "Appearance":
                                    {
                                      "-material":
                                        { "Material":
                                          {
                                            "@DEF":"_0"
                                          }
                                        },
                                      "-texture":
                                        { "ImageTexture":
                                          {
                                            "@DEF":"OAK",
                                            "@url":["oak.jpg","https://www.web3d.org/x3d/content/examples/ConformanceNist/Miscellaneous/PROTO/oak.jpg"]
                                          }
                                        }
                                    }
                                  },
                                "-geometry":
                                  { "Cylinder":
                                    {
                                      "@height":10,
                                      "@radius":0.75
                                    }
                                  }
                              }
                            }
                          ]
                        }
                      },
                      { "Transform":
                        {
                          "-children":[
                            { "Shape":
                              {
                                "-appearance":
                                  { "Appearance":
                                    {
                                      "-texture":
                                        { "ImageTexture":
                                          {
                                            "@USE":"OAK"
                                          }
                                        }
                                    }
                                  },
                                "-geometry":
                                  { "Box":
                                    {
                                      "@size":[10,2,10]
                                    }
                                  }
                              }
                            }
                          ]
                        }
                      },
                      { "Transform":
                        {
                          "@rotation":[1,0,0,1.57],
                          "@translation":[0,8.5,0],
                          "-children":[
                            { "ProtoInstance":
                              {
                                "@name":"Proto1"
                              }
                            }
                          ]
                        }
                      }
                    ]
                  }
                }
              ]
            }
          }
        ]
    }
  }
}