{ "X3D": {
    "encoding":"UTF-8",
    "@profile":"Interchange",
    "@version":"3.3",
    "@xsd:noNamespaceSchemaLocation":"https://www.web3d.org/specifications/x3d-3.3.xsd",
    "JSON schema":"https://www.web3d.org/specifications/x3d-4.0-JSONSchema.autogenerated.json",
    "head": {
        "meta": [
          {
            "@name":"title",
            "@content":"Windmill.x3d"
          },
          {
            "@name":"description",
            "@content":"This world builds a windmill whose sails spin about. Several viewpoints are added to look at the windmill from different angles."
          },
          {
            "@name":"creator",
            "@content":"David R. Nadeau, John L. Moreland, Michael M. Heck"
          },
          {
            "@name":"translator",
            "@content":"Don Brutzman"
          },
          {
            "@name":"created",
            "@content":"1 July 1998"
          },
          {
            "@name":"translated",
            "@content":"2 February 2014"
          },
          {
            "@name":"modified",
            "@content":"20 October 2019"
          },
          {
            "@name":"reference",
            "@content":"originals/windmill.wrl"
          },
          {
            "@name":"reference",
            "@content":"http://www.siggraph.org/s98"
          },
          {
            "@name":"reference",
            "@content":"http://www.siggraph.org/s98/conference/courses/18.html"
          },
          {
            "@name":"reference",
            "@content":"http://www.sdsc.edu/~moreland/courses/Siggraph98/vrml97/slides/mt0356.htm"
          },
          {
            "@name":"reference",
            "@content":"http://www.sdsc.edu/~moreland/courses/Siggraph98/vrml97/vrml97.htm"
          },
          {
            "@name":"reference",
            "@content":"https://www.web3d.org/x3d/content/examples/X3dResources.html"
          },
          {
            "@name":"identifier",
            "@content":"https://www.web3d.org/x3d/content/examples/Vrml2Sourcebook/Siggraph98Course/Windmill.x3d"
          },
          {
            "@name":"generator",
            "@content":"Vrml97ToX3dNist, http://ovrt.nist.gov/v2_x3d.html"
          },
          {
            "@name":"generator",
            "@content":"X3D-Edit, 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":[
          {
            "#comment":"EXPERIMENTATION"
          },
          {
            "#comment":"Add additional windmills to the world. Make each windmill's sails rotate at a slightly different speed. This will insure that the windmills don't all rotate in sync, thereby making the scene look more natural."
          },
          {
            "#comment":"Make the windmill door an anchor. Clicking on the door leads to another world describing the windmill interior."
          },
          {
            "#comment":"Add panorama cloud and mountain textures to the Background node."
          },
          {
            "#comment":"Remove the windmill's sails and, instead, create a rotating water wheel."
          },
          { "WorldInfo":
            {
              "@info":["Copyright (c) 1997, David R. Nadeau"],
              "@title":"Windmill"
            }
          },
          { "Viewpoint":
            {
              "@description":"Entry view",
              "@orientation":[1.0,0.0,0.0,0.2],
              "@position":[0.0,1.65,35.0]
            }
          },
          { "Viewpoint":
            {
              "@description":"Close-up",
              "@orientation":[1.0,0.0,0.0,0.5],
              "@position":[0.0,1.65,15.0]
            }
          },
          { "Viewpoint":
            {
              "@description":"Front door",
              "@orientation":[0.0,1.0,0.0,0.785],
              "@position":[7.05,1.65,7.05]
            }
          },
          { "Viewpoint":
            {
              "@description":"Far away",
              "@orientation":[0.0,1.0,0.0,2.356],
              "@position":[35.0,1.65,-35.0]
            }
          },
          { "Viewpoint":
            {
              "@description":"Roof top",
              "@orientation":[0.00128,0.959,0.282,3.1503],
              "@position":[0.0,14.43,2.0]
            }
          },
          { "NavigationInfo":
            {
              "@headlight":false,
              "@speed":3.0
            }
          },
          { "Background":
            {
              "@skyAngle":[1.3,1.471],
              "@skyColor":[0.0,0.2,0.8,0.1,0.3,0.9,0.7,0.7,0.7]
            }
          },
          { "DirectionalLight":
            {
              "@ambientIntensity":0.8,
              "@direction":[-1.0,-1.0,-1.0]
            }
          },
          { "Transform":
            {
              "@translation":[0.0,-0.005,0.0],
              "-children":[
                { "Shape":
                  {
                    "-appearance":
                      { "Appearance":
                        {
                          "-textureTransform":
                            { "TextureTransform":
                              {
                                "@scale":[2.0,2.0]
                              }
                            },
                          "-material":
                            { "Material":
                              {
                                "@ambientIntensity":0.7,
                                "@diffuseColor":[0.0,0.5,0.1]
                              }
                            },
                          "-texture":
                            { "ImageTexture":
                              {
                                "@url":["fire_g.jpg","https://www.web3d.org/x3d/content/examples/Vrml2Sourcebook/Siggraph98Course/fire_g.jpg"]
                              }
                            }
                        }
                      },
                    "-geometry":
                      { "IndexedFaceSet":
                        {
                          "@coordIndex":[0,1,2,3],
                          "@texCoordIndex":[0,1,2,3],
                          "-texCoord":
                            { "TextureCoordinate":
                              {
                                "@point":[0.0,0.0,1.0,0.0,1.0,1.0,0.0,1.0]
                              }
                            },
                          "-coord":
                            { "Coordinate":
                              {
                                "@point":[-100.0,0.0,100.0,100.0,0.0,100.0,100.0,0.0,-100.0,-100.0,0.0,-100.0]
                              }
                            }
                        }
                      }
                  }
                }
              ]
            }
          },
          { "Transform":
            {
              "@translation":[0.0,5.0,0.0],
              "-children":[
                { "Shape":
                  {
                    "-appearance":
                      { "Appearance":
                        {
                          "-textureTransform":
                            { "TextureTransform":
                              {
                                "@scale":[2.0,2.0]
                              }
                            },
                          "-material":
                            { "Material":
                              {
                                "@ambientIntensity":0.3,
                                "@diffuseColor":[1.0,1.0,1.0]
                              }
                            },
                          "-texture":
                            { "ImageTexture":
                              {
                                "@url":["swall1.jpg","https://www.web3d.org/x3d/content/examples/Vrml2Sourcebook/Siggraph98Course/swall1.jpg"]
                              }
                            }
                        }
                      },
                    "-geometry":
                      { "Cylinder":
                        {
                          "@bottom":false,
                          "@height":10.0,
                          "@radius":5.0,
                          "@top":false
                        }
                      }
                  }
                }
              ]
            }
          },
          { "Transform":
            {
              "@translation":[0.0,12.0,0.0],
              "-children":[
                { "Shape":
                  {
                    "-appearance":
                      { "Appearance":
                        {
                          "@DEF":"Tile",
                          "-textureTransform":
                            { "TextureTransform":
                              {
                                "@scale":[4.0,4.0]
                              }
                            },
                          "-material":
                            { "Material":
                              {
                                "@ambientIntensity":0.3,
                                "@diffuseColor":[0.8,0.0,0.0]
                              }
                            },
                          "-texture":
                            { "ImageTexture":
                              {
                                "@url":["wtile.jpg","https://www.web3d.org/x3d/content/examples/Vrml2Sourcebook/Siggraph98Course/wtile.jpg"]
                              }
                            }
                        }
                      },
                    "-geometry":
                      { "Cone":
                        {
                          "@bottomRadius":6.0,
                          "@height":4.0
                        }
                      }
                  }
                }
              ]
            }
          },
          { "Transform":
            {
              "@rotation":[0.0,1.0,0.0,0.785],
              "@translation":[3.55,0.0,3.55],
              "-children":[
                { "Transform":
                  {
                    "@translation":[0.0,3.6,0.0],
                    "-children":[
                      { "Shape":
                        {
                          "-appearance":
                            { "Appearance":
                              {
                                "@USE":"Tile"
                              }
                            },
                          "-geometry":
                            { "Cone":
                              {
                                "@bottomRadius":1.5
                              }
                            }
                        }
                      }
                    ]
                  }
                },
                { "Shape":
                  {
                    "-appearance":
                      { "Appearance":
                        {
                          "-material":
                            { "Material":
                              {
                                "@ambientIntensity":0.3,
                                "@diffuseColor":[0.4,0.2,0.0]
                              }
                            },
                          "-texture":
                            { "ImageTexture":
                              {
                                "@url":["wdoor.jpg","https://www.web3d.org/x3d/content/examples/Vrml2Sourcebook/Siggraph98Course/wdoor.jpg"]
                              }
                            }
                        }
                      },
                    "-geometry":
                      { "IndexedFaceSet":
                        {
                          "@coordIndex":[0,1,2,3,-1,4,0,3,7,-1,1,5,6,2,-1],
                          "@texCoordIndex":[0,1,2,3,-1,4,5,6,7,-1,4,5,6,7,-1],
                          "-texCoord":
                            { "TextureCoordinate":
                              {
                                "@point":[0.0,0.0,1.0,0.0,1.0,1.0,0.0,1.0,0.0,0.0,0.08,0.0,0.08,1.0,0.0,1.0]
                              }
                            },
                          "-coord":
                            { "Coordinate":
                              {
                                "@point":[-0.7,0.0,0.15,0.7,0.0,0.15,0.7,2.9,0.15,-0.7,2.9,0.15,-0.7,0.0,-0.05,0.7,0.0,-0.05,0.7,2.9,-0.05,-0.7,2.9,-0.05]
                              }
                            }
                        }
                      }
                  }
                },
                { "Transform":
                  {
                    "@translation":[0.0,0.05,0.5],
                    "-children":[
                      { "Shape":
                        {
                          "-appearance":
                            { "Appearance":
                              {
                                "-material":
                                  { "Material":
                                    {
                                      "@diffuseColor":[0.4,0.4,0.4]
                                    }
                                  }
                              }
                            },
                          "-geometry":
                            { "Box":
                              {
                                "@size":[2.0,0.1,1.0]
                              }
                            }
                        }
                      }
                    ]
                  }
                }
              ]
            }
          },
          { "Transform":
            {
              "@DEF":"Sails",
              "@translation":[0.0,8.0,6.5],
              "-children":[
                { "Viewpoint":
                  {
                    "@description":"On a sail",
                    "@position":[0.0,6.5,-0.1]
                  }
                },
                { "Transform":
                  {
                    "@rotation":[1.0,0.0,0.0,1.571],
                    "@translation":[0.0,0.0,-0.75],
                    "-children":[
                      { "Shape":
                        {
                          "-appearance":
                            { "Appearance":
                              {
                                "@DEF":"Wood",
                                "-material":
                                  { "Material":
                                    {
                                      "@diffuseColor":[0.6,0.4,0.0]
                                    }
                                  }
                              }
                            },
                          "-geometry":
                            { "Cylinder":
                              {
                                "@bottom":false,
                                "@height":1.5,
                                "@radius":0.8
                              }
                            }
                        }
                      }
                    ]
                  }
                },
                { "Transform":
                  {
                    "@DEF":"Sail",
                    "@translation":[0.0,3.5,0.1],
                    "-children":[
                      { "Transform":
                        {
                          "@translation":[0.0,1.0,0.1],
                          "-children":[
                            { "Shape":
                              {
                                "-appearance":
                                  { "Appearance":
                                    {
                                      "-textureTransform":
                                        { "TextureTransform":
                                          {
                                            "@scale":[2.0,6.0]
                                          }
                                        },
                                      "-material":
                                        { "Material":
                                          {
                                            "@diffuseColor":[1.0,1.0,1.0]
                                          }
                                        },
                                      "-texture":
                                        { "ImageTexture":
                                          {
                                            "@url":["sails.jpg","https://www.web3d.org/x3d/content/examples/Vrml2Sourcebook/Siggraph98Course/sails.jpg"]
                                          }
                                        }
                                    }
                                  },
                                "-geometry":
                                  { "Box":
                                    {
                                      "@size":[2.0,6.0,0.1]
                                    }
                                  }
                              }
                            }
                          ]
                        }
                      },
                      { "Shape":
                        {
                          "-appearance":
                            { "Appearance":
                              {
                                "@USE":"Wood"
                              }
                            },
                          "-geometry":
                            { "Box":
                              {
                                "@size":[0.1,7.0,0.1]
                              }
                            }
                        }
                      }
                    ]
                  }
                },
                { "Transform":
                  {
                    "@rotation":[0.0,0.0,1.0,1.571],
                    "-children":[
                      { "Transform":
                        {
                          "@USE":"Sail"
                        }
                      }
                    ]
                  }
                },
                { "Transform":
                  {
                    "@rotation":[0.0,0.0,1.0,-1.571],
                    "-children":[
                      { "Transform":
                        {
                          "@USE":"Sail"
                        }
                      }
                    ]
                  }
                },
                { "Transform":
                  {
                    "@rotation":[0.0,0.0,1.0,3.141],
                    "-children":[
                      { "Transform":
                        {
                          "@USE":"Sail"
                        }
                      }
                    ]
                  }
                }
              ]
            }
          },
          { "TimeSensor":
            {
              "@DEF":"Clock",
              "@cycleInterval":10.0,
              "@loop":true,
              "@startTime":1.0
            }
          },
          { "OrientationInterpolator":
            {
              "@DEF":"Rotator",
              "@key":[0.0,0.5,1.0],
              "@keyValue":[0.0,0.0,1.0,0.0,0.0,0.0,1.0,3.141,0.0,0.0,1.0,6.282]
            }
          },
          { "ROUTE":
            {
              "@fromField":"fraction_changed",
              "@fromNode":"Clock",
              "@toField":"set_fraction",
              "@toNode":"Rotator"
            }
          },
          { "ROUTE":
            {
              "@fromField":"value_changed",
              "@fromNode":"Rotator",
              "@toField":"set_rotation",
              "@toNode":"Sails"
            }
          }
        ]
    }
  }
}