<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE X3D PUBLIC "ISO//Web3D//DTD X3D 3.3//EN" "https://www.web3d.org/specifications/x3d-3.3.dtd">
<X3D profile='Interchange'  version='3.3 xmlns:xsd='http://www.w3.org/2001/XMLSchema-instance' xsd:noNamespaceSchemaLocation =' https://www.web3d.org/specifications/x3d-3.3.xsd ' >
<head>
<meta name='titlecontent='Windmill.x3d'/>
<meta name='descriptioncontent='This world builds a windmill whose sails spin about. Several viewpoints are added to look at the windmill from different angles.'/>
<meta name='creatorcontent='David R. Nadeau, John L. Moreland, Michael M. Heck'/>
<meta name='translatorcontent='Don Brutzman'/>
<meta name='createdcontent='1 July 1998'/>
<meta name='translatedcontent='2 February 2014'/>
<meta name='modifiedcontent='20 October 2019'/>
<meta name='referencecontent='originals/windmill.wrl'/>
<meta name='referencecontent=' http://www.siggraph.org/s98 '/>
<meta name='referencecontent=' http://www.siggraph.org/s98/conference/courses/18.html '/>
<meta name='referencecontent=' http://www.sdsc.edu/~moreland/courses/Siggraph98/vrml97/slides/mt0356.htm '/>
<meta name='referencecontent=' http://www.sdsc.edu/~moreland/courses/Siggraph98/vrml97/vrml97.htm '/>
<meta name='referencecontent=' https://www.web3d.org/x3d/content/examples/X3dResources.html '/>
<meta name='identifiercontent=' https://www.web3d.org/x3d/content/examples/Vrml2Sourcebook/Siggraph98Course/Windmill.x3d '/>
<meta name='generatorcontent='Vrml97ToX3dNist, http://ovrt.nist.gov/v2_x3d.html'/>
<meta name='generatorcontent='X3D-Edit, https://savage.nps.edu/X3D-Edit'/>
<meta name='licensecontent=' ../license.html'/>
</head>
<!--

to top <!-- Event Graph ROUTE Table shows event connections -->
 
<!-- Index for DEF nodes: Clock, Rotator, Sail, Sails, Tile, Wood

Index for Viewpoint nodes: Viewpoint_1, Viewpoint_2, Viewpoint_3, Viewpoint_4, Viewpoint_5, Viewpoint_6
-->
<Scene>
<!-- EXPERIMENTATION -->
<!-- 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. -->
<!-- Make the windmill door an anchor. Clicking on the door leads to another world describing the windmill interior. -->
<!-- Add panorama cloud and mountain textures to the Background node. -->
<!-- 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 vieworientation='1.0 0.0 0.0 0.2position='0.0 1.65 35.0'/>
<Viewpoint description='Close-uporientation='1.0 0.0 0.0 0.5position='0.0 1.65 15.0'/>
<Viewpoint description='Front doororientation='0.0 1.0 0.0 0.785position='7.05 1.65 7.05'/>
<Viewpoint description='Far awayorientation='0.0 1.0 0.0 2.356position='35.0 1.65 -35.0'/>
<Viewpoint description='Roof toporientation='0.00128 0.959 0.282 3.1503position='0.0 14.43 2.0'/>
<NavigationInfo headlight='falsespeed='3.0'/>
<Background skyAngle='1.3 1.471skyColor='0.0 0.2 0.8 0.1 0.3 0.9 0.7 0.7 0.7'/>
<DirectionalLight ambientIntensity='0.8direction='-1.0 -1.0 -1.0'/>
<Transform translation='0.0 -0.005 0.0'>
<Shape>
<Appearance>
<TextureTransform scale='2.0 2.0'/>
<Material ambientIntensity='0.7diffuseColor='0.0 0.5 0.1'/>
<ImageTexture
  url=' "fire_g.jpg " "https://www.web3d.org/x3d/content/examples/Vrml2Sourcebook/Siggraph98Course/fire_g.jpg " ' />
</Appearance>
<IndexedFaceSet coordIndex='0 1 2 3texCoordIndex='0 1 2 3'>
<TextureCoordinate point='0.0 0.0 1.0 0.0 1.0 1.0 0.0 1.0'/>
<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'/>
</IndexedFaceSet>
</Shape>
</Transform>
<Transform translation='0.0 5.0 0.0'>
<Shape>
<Appearance>
<TextureTransform scale='2.0 2.0'/>
<Material ambientIntensity='0.3diffuseColor='1.0 1.0 1.0'/>
<ImageTexture
  url=' "swall1.jpg " "https://www.web3d.org/x3d/content/examples/Vrml2Sourcebook/Siggraph98Course/swall1.jpg " ' />
</Appearance>
<Cylinder bottom='falseheight='10.0radius='5.0top='false'/>
</Shape>
</Transform>
<Transform translation='0.0 12.0 0.0'>
<Shape>
<Appearance DEF='Tile'>
<TextureTransform scale='4.0 4.0'/>
<Material ambientIntensity='0.3diffuseColor='0.8 0.0 0.0'/>
<ImageTexture
  url=' "wtile.jpg " "https://www.web3d.org/x3d/content/examples/Vrml2Sourcebook/Siggraph98Course/wtile.jpg " ' />
</Appearance>
<Cone bottomRadius='6.0height='4.0'/>
</Shape>
</Transform>
<Transform rotation='0.0 1.0 0.0 0.785translation='3.55 0.0 3.55'>
<Transform translation='0.0 3.6 0.0'>
<Shape>
<Appearance USE=' Tile'/>
<Cone bottomRadius='1.5'/>
</Shape>
</Transform>
<Shape>
<Appearance>
<Material ambientIntensity='0.3diffuseColor='0.4 0.2 0.0'/>
<ImageTexture
  url=' "wdoor.jpg " "https://www.web3d.org/x3d/content/examples/Vrml2Sourcebook/Siggraph98Course/wdoor.jpg " ' />
</Appearance>
<IndexedFaceSet coordIndex='0 1 2 3 -1 4 0 3 7 -1 1 5 6 2 -1texCoordIndex='0 1 2 3 -1 4 5 6 7 -1 4 5 6 7 -1'>
<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'/>
<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'/>
</IndexedFaceSet>
</Shape>
<Transform translation='0.0 0.05 0.5'>
<Shape>
<Appearance>
<Material diffuseColor='0.4 0.4 0.4'/>
</Appearance>
<Box size='2.0 0.1 1.0'/>
</Shape>
</Transform>
</Transform>
<!-- ROUTE information for Sails node:  [from Rotator.value_changed to set_rotation ] -->
<Transform DEF='Sailstranslation='0.0 8.0 6.5'>
<Viewpoint description='On a sailposition='0.0 6.5 -0.1'/>
<Transform rotation='1.0 0.0 0.0 1.571translation='0.0 0.0 -0.75'>
<Shape>
<Appearance DEF='Wood'>
<Material diffuseColor='0.6 0.4 0.0'/>
</Appearance>
<Cylinder bottom='falseheight='1.5radius='0.8'/>
</Shape>
</Transform>
<Transform DEF='Sailtranslation='0.0 3.5 0.1'>
<Transform translation='0.0 1.0 0.1'>
<Shape>
<Appearance>
<TextureTransform scale='2.0 6.0'/>
<Material diffuseColor='1.0 1.0 1.0'/>
<ImageTexture
  url=' "sails.jpg " "https://www.web3d.org/x3d/content/examples/Vrml2Sourcebook/Siggraph98Course/sails.jpg " ' />
</Appearance>
<Box size='2.0 6.0 0.1'/>
</Shape>
</Transform>
<Shape>
<Appearance USE=' Wood'/>
<Box size='0.1 7.0 0.1'/>
</Shape>
</Transform>
<Transform rotation='0.0 0.0 1.0 1.571'>
<Transform USE=' Sail'/>
</Transform>
<Transform rotation='0.0 0.0 1.0 -1.571'>
<Transform USE=' Sail'/>
</Transform>
<Transform rotation='0.0 0.0 1.0 3.141'>
<Transform USE=' Sail'/>
</Transform>
</Transform>
<!-- ROUTE information for Clock node:  [from fraction_changed to Rotator.set_fraction ] -->
<TimeSensor DEF='ClockcycleInterval='10.0loop='truestartTime='1.0'/>

<!-- ROUTE information for Rotator node:  [from Clock.fraction_changed to set_fraction ] [from value_changed to Sails.set_rotation ] -->
<OrientationInterpolator DEF='Rotatorkey='0.0 0.5 1.0keyValue='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  fromNode=' Clock' fromField='fraction_changed' toNode=' Rotator' toField='set_fraction'/>
< ROUTE  fromNode=' Rotator' fromField='value_changed' toNode=' Sails' toField='set_rotation'/>
</Scene>
</X3D>
<!--

to top <!-- Event Graph ROUTE Table shows event connections -->
 
<!-- Index for DEF nodes: Clock, Rotator, Sail, Sails, Tile, Wood

Index for Viewpoint nodes: Viewpoint_1, Viewpoint_2, Viewpoint_3, Viewpoint_4, Viewpoint_5, Viewpoint_6
-->

Event Graph ROUTE Table with 2 ROUTE connections total, showing X3D event-model relationships for this scene.

Each row shows an event cascade that may occur during a single timestamp interval between frame renderings, as part of the X3D execution model.

Clock
TimeSensor
fraction_changed
SFFloat

ROUTE
event to
(1)
Rotator
OrientationInterpolator
set_fraction
SFFloat

 
 
then
Rotator
OrientationInterpolator
value_changed
SFRotation

ROUTE
event to
(2)
Sails
Transform
set_rotation
SFRotation


-->

<!-- Online at
https://www.web3d.org/x3d/content/examples/Vrml2Sourcebook/Siggraph98Course/WindmillIndex.html -->
<!-- Version control at
https://sourceforge.net/p/x3d/code/HEAD/tree/www.web3d.org/x3d/content/examples/Vrml2Sourcebook/Siggraph98Course/Windmill.x3d -->

<!-- Color legend: X3D terminology <X3dNode DEF='idName' field='value'/> matches XML terminology <XmlElement DEF='idName' attribute='value'/>
(Light-blue background: event-based behavior node or statement) (Grey background inside box: inserted documentation) (Magenta background: X3D Extensibility)
-->

to top <!-- For additional help information about X3D scenes, please see X3D Tooltips, X3D Resources, and X3D Scene Authoring Hints. -->