{ "X3D": {
    "encoding":"UTF-8",
    "@profile":"Immersive",
    "@version":"3.0",
    "@xsd:noNamespaceSchemaLocation":"http://www.web3d.org/specifications/x3d-3.0.xsd",
    "JSON schema":"http://www.web3d.org/specifications/x3d-3.3-JSONSchema.json",
    "head": {
        "meta": [
          {
            "@name":"title",
            "@content":"Figure25.12DungeonRoomsWithSlidingDoors.x3d"
          },
          {
            "@name":"creator",
            "@content":"Figure 25.12, The VRML 2.0 Sourcebook, Copyright [1997] By Andrea L. Ames, David R. Nadeau, and John L. Moreland"
          },
          {
            "@name":"reference",
            "@content":"http://www.wiley.com/legacy/compbooks/vrml2sbk/ch25/25fig12.htm"
          },
          {
            "@name":"translator",
            "@content":"Don Brutzman"
          },
          {
            "@name":"created",
            "@content":"4 October 2000"
          },
          {
            "@name":"modified",
            "@content":"11 January 2014"
          },
          {
            "@name":"description",
            "@content":"Two dungeon rooms controlled by LOD nodes and separated by a wall and a pair of sliding doors."
          },
          {
            "@name":"identifier",
            "@content":"http://www.web3d.org/x3d/content/examples/Vrml2Sourcebook/Chapter25-LevelOfDetail/Figure25.12DungeonRoomsWithSlidingDoors.x3d"
          },
          {
            "@name":"generator",
            "@content":"X3D-Edit 3.3, https://savage.nps.edu/X3D-Edit"
          },
          {
            "@name":"license",
            "@content":"../../license.html"
          },
          {
            "@name":"translated",
            "@content":"19 March 2017"
          },
          {
            "@name":"generator",
            "@content":"X3dToJson.xslt, http://www.web3d.org/x3d/stylesheets/X3dToJson.html"
          },
          {
            "@name":"warning",
            "@content":"An experimental version of X3D JSON encoding is used for this scene.  Status online at http://www.web3d.org/wiki/index.php/X3D_JSON_Encoding"
          }
        ]
    },
    "Scene": {
        "-children":[
          { "Viewpoint":
            {
              "@description":"Click door for next dungeon room",
              "@fieldOfView":1.05,
              "@position":[0,2,10]
            }
          },
          { "NavigationInfo":
            {
              "@avatarSize":[0.5,1.6,0.5],
              "@headlight":false,
              "@speed":2,
              "@type":["WALK","EXAMINE","ANY"]
            }
          },
          { "Group":
            {
              "-children":[
                { "LOD":
                  {
                    "@range":[20],
                    "-children":[
                      { "Inline":
                        {
                          "@DEF":"DungeonRoom",
                          "@url":["Figure25.08DungeonRoom.x3d","http://www.web3d.org/x3d/content/examples/Vrml2Sourcebook/Chapter25-LevelOfDetail/Figure25.08DungeonRoom.x3d","Figure25.08DungeonRoom.wrl","http://www.web3d.org/x3d/content/examples/Vrml2Sourcebook/Chapter25-LevelOfDetail/Figure25.08DungeonRoom.wrl"]
                        }
                      },
                      { "WorldInfo":
                        {
                          "@info":["null node"]
                        }
                      }
                    ]
                  }
                },
                { "Transform":
                  {
                    "@translation":[0,0,-10],
                    "-children":[
                      { "LOD":
                        {
                          "@range":[20],
                          "-children":[
                            { "Inline":
                              {
                                "@USE":"DungeonRoom"
                              }
                            },
                            { "WorldInfo":
                              {
                                "@info":["null node"]
                              }
                            }
                          ]
                        }
                      }
                    ]
                  }
                },
                { "Transform":
                  {
                    "@translation":[0,0,-5],
                    "-children":[
                      { "Inline":
                        {
                          "@url":["Figure25.10DungeonWallWithDoorway.x3d","http://www.web3d.org/x3d/content/examples/Vrml2Sourcebook/Chapter25-LevelOfDetail/Figure25.10DungeonWallWithDoorway.x3d","Figure25.10DungeonWallWithDoorway.wrl","http://www.web3d.org/x3d/content/examples/Vrml2Sourcebook/Chapter25-LevelOfDetail/Figure25.10DungeonWallWithDoorway.wrl"]
                        }
                      }
                    ]
                  }
                },
                { "Transform":
                  {
                    "@rotation":[0,1,0,1.57],
                    "@scale":[1,1,2],
                    "@translation":[0,0,-15],
                    "-children":[
                      { "Inline":
                        {
                          "@url":["Figure25.07DungeonRoomWall.x3d","http://www.web3d.org/x3d/content/examples/Vrml2Sourcebook/Chapter25-LevelOfDetail/Figure25.07DungeonRoomWall.x3d","Figure25.07DungeonRoomWall.wrl","http://www.web3d.org/x3d/content/examples/Vrml2Sourcebook/Chapter25-LevelOfDetail/Figure25.07DungeonRoomWall.wrl"]
                        }
                      }
                    ]
                  }
                },
                { "Transform":
                  {
                    "@translation":[0,0,-4.95],
                    "-children":[
                      { "Transform":
                        {
                          "@DEF":"LeftDoor",
                          "-children":[
                            { "Transform":
                              {
                                "@translation":[-0.75,0,0],
                                "-children":[
                                  { "Inline":
                                    {
                                      "@DEF":"Door",
                                      "@url":["Figure25.11DungeonDoor.x3d","http://www.web3d.org/x3d/content/examples/Vrml2Sourcebook/Chapter25-LevelOfDetail/Figure25.11DungeonDoor.x3d","Figure25.11DungeonDoor.wrl","http://www.web3d.org/x3d/content/examples/Vrml2Sourcebook/Chapter25-LevelOfDetail/Figure25.11DungeonDoor.wrl"]
                                    }
                                  }
                                ]
                              }
                            }
                          ]
                        }
                      },
                      { "Transform":
                        {
                          "@DEF":"RightDoor",
                          "-children":[
                            { "Transform":
                              {
                                "@translation":[0.75,0,0],
                                "-children":[
                                  { "Inline":
                                    {
                                      "@USE":"Door"
                                    }
                                  }
                                ]
                              }
                            }
                          ]
                        }
                      },
                      { "TouchSensor":
                        {
                          "@DEF":"TouchDoor",
                          "@description":"touch to open doors for 10 seconds"
                        }
                      }
                    ]
                  }
                },
                { "TimeSensor":
                  {
                    "@DEF":"Clock",
                    "@cycleInterval":10
                  }
                },
                { "PositionInterpolator":
                  {
                    "@DEF":"LeftOpen",
                    "@key":[0,0.05,0.8,1],
                    "@keyValue":[0,0,0,-1.3,0,0,-1.3,0,0,0,0,0]
                  }
                },
                { "PositionInterpolator":
                  {
                    "@DEF":"RightOpen",
                    "@key":[0,0.05,0.8,1],
                    "@keyValue":[0,0,0,1.3,0,0,1.3,0,0,0,0,0]
                  }
                }
              ]
            }
          },
          { "ROUTE":
            {
              "@fromField":"touchTime",
              "@fromNode":"TouchDoor",
              "@toField":"set_startTime",
              "@toNode":"Clock"
            }
          },
          { "ROUTE":
            {
              "@fromField":"fraction_changed",
              "@fromNode":"Clock",
              "@toField":"set_fraction",
              "@toNode":"LeftOpen"
            }
          },
          { "ROUTE":
            {
              "@fromField":"fraction_changed",
              "@fromNode":"Clock",
              "@toField":"set_fraction",
              "@toNode":"RightOpen"
            }
          },
          { "ROUTE":
            {
              "@fromField":"value_changed",
              "@fromNode":"LeftOpen",
              "@toField":"set_translation",
              "@toNode":"LeftDoor"
            }
          },
          { "ROUTE":
            {
              "@fromField":"value_changed",
              "@fromNode":"RightOpen",
              "@toField":"set_translation",
              "@toNode":"RightDoor"
            }
          }
        ]
    }
  }
}