{ "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":"Torch.x3d"
          },
          {
            "@name":"description",
            "@content":"Example torch using MovieTexture and flickering lights."
          },
          {
            "@name":"creator",
            "@content":"Panos Michalopoulos"
          },
          {
            "@name":"created",
            "@content":"19 February 2001"
          },
          {
            "@name":"modified",
            "@content":"20 October 2019"
          },
          {
            "@name":"identifier",
            "@content":"https://www.web3d.org/x3d/content/examples/Basic/StudentProjects/Torch.x3d"
          },
          {
            "@name":"generator",
            "@content":"X3D-Edit 3.3, https://www.web3d.org/x3d/tools/X3D-Edit"
          },
          {
            "@name":"license",
            "@content":"../license.html"
          },
          {
            "@name":"translated",
            "@content":"20 April 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":"Torch.x3d"
            }
          },
          { "NavigationInfo":
            {
              "@headlight":false
            }
          },
          { "Viewpoint":
            {
              "@description":"Standard",
              "@orientation":[0,1,0,0.1],
              "@position":[0.5,0,8]
            }
          },
          { "Transform":
            {
              "@scale":[0.2,0.2,0.2],
              "@translation":[-2.3,1,0],
              "-children":[
                { "Group":
                  {
                    "@DEF":"Torch",
                    "-children":[
                      { "Shape":
                        {
                          "-geometry":
                            { "Extrusion":
                              {
                                "@creaseAngle":2,
                                "@crossSection":[-1,0,0,1,1,0,0,-1,-1,0],
                                "@scale":[0.1,0.1,0.2,0.2],
                                "@spine":[0,-1,0,0,1,0]
                              }
                            },
                          "-appearance":
                            { "Appearance":
                              {
                                "@DEF":"TorchMetal",
                                "-material":
                                  { "Material":
                                    {
                                      "@diffuseColor":[1,0.9,0.3]
                                    }
                                  }
                              }
                            }
                        }
                      },
                      { "Transform":
                        {
                          "@translation":[0,1.15,0],
                          "-children":[
                            { "Shape":
                              {
                                "-geometry":
                                  { "Cylinder":
                                    {
                                      "@height":0.3,
                                      "@radius":0.3
                                    }
                                  },
                                "-appearance":
                                  { "Appearance":
                                    {
                                      "@USE":"TorchMetal"
                                    }
                                  }
                              }
                            }
                          ]
                        }
                      },
                      { "Transform":
                        {
                          "@rotation":[0,1,0,-1.7],
                          "@scale":[1.5,1.5,1.5],
                          "@translation":[0,1.3,0],
                          "-children":[
                            { "Shape":
                              {
                                "-geometry":
                                  { "Extrusion":
                                    {
                                      "@crossSection":[-1,0,0,1,1,0,0,-1,-1,0],
                                      "@scale":[0.1,0.1,0.3,0.3,0.5,0.5,0.5,0.5,0.3,0.3,0.1,0.1,0.001,0.001],
                                      "@spine":[0,0,0,0,0.2,0,0,0.5,0,0,0.6,0,0,1,0,0,1.5,0,0,2,0]
                                    }
                                  },
                                "-appearance":
                                  { "Appearance":
                                    {
                                      "@DEF":"Flame",
                                      "-texture":
                                        { "MovieTexture":
                                          {
                                            "@DEF":"flames",
                                            "@loop":true,
                                            "@repeatS":false,
                                            "@repeatT":false,
                                            "@url":["flames.mpg","https://www.web3d.org/x3d/content/examples/Basic/StudentProjects/flames.mpg"]
                                          }
                                        }
                                    }
                                  }
                              }
                            }
                          ]
                        }
                      },
                      { "PointLight":
                        {
                          "@DEF":"Light",
                          "@ambientIntensity":0.3,
                          "@attenuation":[0,0,0.1],
                          "@color":[1,1,0.5],
                          "@location":[0,2,0]
                        }
                      },
                      { "TimeSensor":
                        {
                          "@DEF":"LightTimer",
                          "@cycleInterval":1.5,
                          "@loop":true
                        }
                      },
                      { "ScalarInterpolator":
                        {
                          "@DEF":"LightValues",
                          "@key":[0,0.1,0.2,0.3,0.4,0.5,0.6,0.7,0.8,0.9,1],
                          "@keyValue":[1,0.7,0.5,0.8,1,0.5,0.8,0.7,1,0.5,1]
                        }
                      }
                    ]
                  }
                }
              ]
            }
          },
          { "Transform":
            {
              "@scale":[0.2,0.2,0.2],
              "@translation":[2.3,1,0],
              "-children":[
                { "Group":
                  {
                    "@USE":"Torch"
                  }
                }
              ]
            }
          },
          { "Transform":
            {
              "@translation":[0,-2.5,0],
              "-children":[
                { "Shape":
                  {
                    "-geometry":
                      { "Box":
                        {
                          "@size":[5,0.1,5]
                        }
                      },
                    "-appearance":
                      { "Appearance":
                        {
                          "@DEF":"Wall",
                          "-material":
                            { "Material":
                              {
                                "@diffuseColor":[0.9,0.9,0.9],
                                "@specularColor":[0,0.1,0]
                              }
                            },
                          "-texture":
                            { "ImageTexture":
                              {
                                "@DEF":"Soil1",
                                "@url":["Soil1.jpg","https://www.web3d.org/x3d/content/examples/Basic/StudentProjects/Soil1.jpg"]
                              }
                            }
                        }
                      }
                  }
                }
              ]
            }
          },
          { "Transform":
            {
              "@translation":[0,2.5,0],
              "-children":[
                { "Shape":
                  {
                    "-geometry":
                      { "Box":
                        {
                          "@size":[5,0.1,5]
                        }
                      },
                    "-appearance":
                      { "Appearance":
                        {
                          "@USE":"Wall"
                        }
                      }
                  }
                }
              ]
            }
          },
          { "Transform":
            {
              "@translation":[-2.5,0,0],
              "-children":[
                { "Shape":
                  {
                    "-geometry":
                      { "Box":
                        {
                          "@size":[0.1,5,5]
                        }
                      },
                    "-appearance":
                      { "Appearance":
                        {
                          "@USE":"Wall"
                        }
                      }
                  }
                }
              ]
            }
          },
          { "Transform":
            {
              "@translation":[2.5,0,0],
              "-children":[
                { "Shape":
                  {
                    "-geometry":
                      { "Box":
                        {
                          "@size":[0.1,5,5]
                        }
                      },
                    "-appearance":
                      { "Appearance":
                        {
                          "@USE":"Wall"
                        }
                      }
                  }
                }
              ]
            }
          },
          { "Transform":
            {
              "@translation":[0,0,-2.5],
              "-children":[
                { "Shape":
                  {
                    "-geometry":
                      { "Box":
                        {
                          "@size":[5,5,0.1]
                        }
                      },
                    "-appearance":
                      { "Appearance":
                        {
                          "@USE":"Wall"
                        }
                      }
                  }
                }
              ]
            }
          },
          { "ROUTE":
            {
              "@fromField":"fraction_changed",
              "@fromNode":"LightTimer",
              "@toField":"set_fraction",
              "@toNode":"LightValues"
            }
          },
          { "ROUTE":
            {
              "@fromField":"value_changed",
              "@fromNode":"LightValues",
              "@toField":"set_intensity",
              "@toNode":"Light"
            }
          }
        ]
    }
  }
}