{ "X3D": {
    "encoding":"UTF-8",
    "@profile":"Interchange",
    "@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.01TorchHighDetail.x3d"
          },
          {
            "@name":"creator",
            "@content":"Figure 25.1, 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/25fig01.htm"
          },
          {
            "@name":"translator",
            "@content":"Don Brutzman"
          },
          {
            "@name":"created",
            "@content":"3 October 2000"
          },
          {
            "@name":"modified",
            "@content":"15 January 2011"
          },
          {
            "@name":"description",
            "@content":"A high-detail torch."
          },
          {
            "@name":"identifier",
            "@content":"http://www.web3d.org/x3d/content/examples/Vrml2Sourcebook/Chapter25-LevelOfDetail/Figure25.01TorchHighDetail.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":"Torch (high detail)",
              "@position":[0,0,2]
            }
          },
          { "Transform":
            {
              "@scale":[0.5,0.5,0.5],
              "@translation":[0,0,0.2],
              "-children":[
                { "Transform":
                  {
                    "@rotation":[1,0,0,3.14],
                    "@translation":[0,-0.75,0],
                    "-children":[
                      { "Shape":
                        {
                          "-geometry":
                            { "Cone":
                              {
                                "@bottomRadius":0.15,
                                "@height":1.5
                              }
                            },
                          "-appearance":
                            { "Appearance":
                              {
                                "@DEF":"Gray",
                                "-material":
                                  { "Material":
                                    {
                                      "@diffuseColor":[0.4,0.4,0.4],
                                      "@specularColor":[0.7,0.7,0.7]
                                    }
                                  }
                              }
                            }
                        }
                      }
                    ]
                  }
                },
                { "Shape":
                  {
                    "@DEF":"Ring",
                    "-geometry":
                      { "Cylinder":
                        {
                          "@bottom":false,
                          "@height":0.1,
                          "@radius":0.4,
                          "@top":false
                        }
                      },
                    "-appearance":
                      { "Appearance":
                        {
                          "@USE":"Gray"
                        }
                      }
                  }
                },
                { "Transform":
                  {
                    "@translation":[0,0.2,0],
                    "-children":[
                      { "Shape":
                        {
                          "@USE":"Ring"
                        }
                      }
                    ]
                  }
                },
                { "Shape":
                  {
                    "@DEF":"Bar",
                    "-geometry":
                      { "IndexedFaceSet":
                        {
                          "@coordIndex":[0,1,2,3],
                          "-coord":
                            { "Coordinate":
                              {
                                "@point":[0.04,0.00,0.38,0.04,0.35,0.38,-0.04,0.35,0.38,-0.04,0.00,0.38]
                              }
                            }
                        }
                      },
                    "-appearance":
                      { "Appearance":
                        {
                          "@USE":"Gray"
                        }
                      }
                  }
                },
                { "Transform":
                  {
                    "@rotation":[0,1,0,-1.571],
                    "-children":[
                      { "Shape":
                        {
                          "@USE":"Bar"
                        }
                      }
                    ]
                  }
                },
                { "Transform":
                  {
                    "@rotation":[0,1,0,-0.785],
                    "-children":[
                      { "Shape":
                        {
                          "@USE":"Bar"
                        }
                      }
                    ]
                  }
                },
                { "Transform":
                  {
                    "@rotation":[0,1,0,0.785],
                    "-children":[
                      { "Shape":
                        {
                          "@USE":"Bar"
                        }
                      }
                    ]
                  }
                },
                { "Transform":
                  {
                    "@rotation":[0,1,0,1.571],
                    "-children":[
                      { "Shape":
                        {
                          "@USE":"Bar"
                        }
                      }
                    ]
                  }
                },
                { "Transform":
                  {
                    "@translation":[0,-0.35,0],
                    "-children":[
                      { "Shape":
                        {
                          "-geometry":
                            { "Cylinder":
                              {
                                "@height":0.15,
                                "@radius":0.20
                              }
                            },
                          "-appearance":
                            { "Appearance":
                              {
                                "@USE":"Gray"
                              }
                            }
                        }
                      },
                      { "Transform":
                        {
                          "@translation":[0,0,-0.2],
                          "-children":[
                            { "Shape":
                              {
                                "-geometry":
                                  { "Box":
                                    {
                                      "@size":[0.45,0.25,0.39]
                                    }
                                  },
                                "-appearance":
                                  { "Appearance":
                                    {
                                      "@USE":"Gray"
                                    }
                                  }
                              }
                            }
                          ]
                        }
                      }
                    ]
                  }
                },
                { "Shape":
                  {
                    "@DEF":"Flames",
                    "-children":[
                      {
                        "#comment":"No appearance, use emissive shading"
                      }
                    ],
                    "-geometry":
                      { "IndexedFaceSet":
                        {
                          "@coordIndex":[0,1,2,-1,3,4,5,-1,6,7,8,-1],
                          "-coord":
                            { "Coordinate":
                              {
                                "@point":[0.25,0.0,0.00,0.15,1.0,0.10,0.05,0.0,0.15,0.18,0.0,0.05,0.00,1.2,0.05,-0.10,0.0,0.05,-0.00,0.0,0.15,-0.13,0.8,0.10,-0.25,0.0,0.00]
                              }
                            },
                          "-color":
                            { "Color":
                              {
                                "@color":[1.0,0.0,0.0,0.9,0.5,0,1.0,0.0,0.0,0.9,0.3,0,1.0,1.0,0.0,0.9,0.3,0,0.7,0.1,0.2,0.9,0.8,0,1.0,0.0,0.0]
                              }
                            }
                        }
                      }
                  }
                },
                { "Transform":
                  {
                    "@rotation":[0,1,0,1.57],
                    "@scale":[0.9,0.9,1],
                    "-children":[
                      { "Shape":
                        {
                          "@USE":"Flames"
                        }
                      }
                    ]
                  }
                },
                { "Transform":
                  {
                    "@rotation":[0,1,0,-1.57],
                    "@scale":[0.9,0.9,1],
                    "-children":[
                      { "Shape":
                        {
                          "@USE":"Flames"
                        }
                      }
                    ]
                  }
                }
              ]
            }
          }
        ]
    }
  }
}