| 1 |
<?xml version="1.0" encoding="UTF-8"?>
|
| 2 |
<!DOCTYPE X3D PUBLIC "ISO//Web3D//DTD X3D 3.3//EN" "https://www.web3d.org/specifications/x3d-3.3.dtd">
|
| 3 | <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'> |
| 4 | <head> |
| 5 | <meta name='title' content=' Windmill.x3d '/> |
| 6 | <meta name='description' content='This world builds a windmill whose sails spin about. Several viewpoints are added to look at the windmill from different angles.'/> |
| 7 | <meta name='creator' content='David R. Nadeau, John L. Moreland, Michael M. Heck'/> |
| 8 | <meta name='translator' content='Don Brutzman'/> |
| 9 | <meta name='created' content='1 July 1998'/> |
| 10 | <meta name='translated' content='2 February 2014'/> |
| 11 | <meta name='modified' content='20 October 2019'/> |
| 12 | <meta name='reference' content='originals/windmill.wrl'/> |
| 13 | <meta name='reference' content='http://www.siggraph.org/s98'/> |
| 14 | <meta name='reference' content=' http://www.siggraph.org/s98/conference/courses/18.html '/> |
| 15 | <meta name='reference' content=' http://www.sdsc.edu/~moreland/courses/Siggraph98/vrml97/slides/mt0356.htm '/> |
| 16 | <meta name='reference' content=' http://www.sdsc.edu/~moreland/courses/Siggraph98/vrml97/vrml97.htm '/> |
| 17 | <meta name='reference' content=' https://www.web3d.org/x3d/content/examples/X3dResources.html '/> |
| 18 | <meta name='identifier' content=' https://www.web3d.org/x3d/content/examples/Vrml2Sourcebook/Siggraph98Course/Windmill.x3d '/> |
| 19 | <meta name='generator' content=' Vrml97ToX3dNist, http://ovrt.nist.gov/v2_x3d.html '/> |
| 20 | <meta name='generator' content='X3D-Edit, https://www.web3d.org/x3d/tools/X3D-Edit'/> |
| 21 | <meta name='license' content='../license.html'/> |
| 22 | </head> |
| 23 | <Scene> |
| 24 | <!-- EXPERIMENTATION --> |
| 25 | <!-- 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. --> |
| 26 | <!-- Make the windmill door an anchor. Clicking on the door leads to another world describing the windmill interior. --> |
| 27 | <!-- Add panorama cloud and mountain textures to the Background node. --> |
| 28 | <!-- Remove the windmill's sails and, instead, create a rotating water wheel. --> |
| 29 | <WorldInfo info='"Copyright (c) 1997, David R. Nadeau"' title='Windmill'/> |
| 30 | <Viewpoint description='Entry view' orientation='1.0 0.0 0.0 0.2' position='0.0 1.65 35.0'/> |
| 31 | <Viewpoint description='Close-up' orientation='1.0 0.0 0.0 0.5' position='0.0 1.65 15.0'/> |
| 32 | <Viewpoint description='Front door' orientation='0.0 1.0 0.0 0.785' position='7.05 1.65 7.05'/> |
| 33 | <Viewpoint description='Far away' orientation='0.0 1.0 0.0 2.356' position='35.0 1.65 -35.0'/> |
| 34 | <Viewpoint description='Roof top' orientation='0.00128 0.959 0.282 3.1503' position='0.0 14.43 2.0'/> |
| 35 | <NavigationInfo headlight='false' speed='3.0'/> |
| 36 | <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'/> |
| 37 | <DirectionalLight ambientIntensity='0.8' direction='-1.0 -1.0 -1.0'/> |
| 38 | <Transform translation='0.0 -0.005 0.0'> |
| 39 | <Shape> |
| 40 | <Appearance> |
| 41 | <TextureTransform scale='2.0 2.0'/> |
| 42 | <Material ambientIntensity='0.7' diffuseColor='0.0 0.5 0.1'/> |
| 43 |
<ImageTexture
url=' "fire_g.jpg
" "https://www.web3d.org/x3d/content/examples/Vrml2Sourcebook/Siggraph98Course/fire_g.jpg
" '/>
|
| 44 | </Appearance> |
| 45 | <IndexedFaceSet coordIndex='0 1 2 3' texCoordIndex='0 1 2 3'> |
| 46 | <TextureCoordinate point='0.0 0.0 1.0 0.0 1.0 1.0 0.0 1.0'/> |
| 47 | <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'/> |
| 48 | </IndexedFaceSet> |
| 49 | </Shape> |
| 50 | </Transform> |
| 51 | <Transform translation='0.0 5.0 0.0'> |
| 52 | <Shape> |
| 53 | <Appearance> |
| 54 | <TextureTransform scale='2.0 2.0'/> |
| 55 | <Material ambientIntensity='0.3' diffuseColor='1.0 1.0 1.0'/> |
| 56 |
<ImageTexture
url=' "swall1.jpg
" "https://www.web3d.org/x3d/content/examples/Vrml2Sourcebook/Siggraph98Course/swall1.jpg
" '/>
|
| 57 | </Appearance> |
| 58 | <Cylinder bottom='false' height='10.0' radius='5.0' top='false'/> |
| 59 | </Shape> |
| 60 | </Transform> |
| 61 | <Transform translation='0.0 12.0 0.0'> |
| 62 | <Shape> |
| 63 | |
| 64 | <TextureTransform scale='4.0 4.0'/> |
| 65 | <Material ambientIntensity='0.3' diffuseColor='0.8 0.0 0.0'/> |
| 66 |
<ImageTexture
url=' "wtile.jpg
" "https://www.web3d.org/x3d/content/examples/Vrml2Sourcebook/Siggraph98Course/wtile.jpg
" '/>
|
| 67 | </Appearance> |
| 68 | <Cone bottomRadius='6.0' height='4.0'/> |
| 69 | </Shape> |
| 70 | </Transform> |
| 71 | <Transform rotation='0.0 1.0 0.0 0.785' translation='3.55 0.0 3.55'> |
| 72 | <Transform translation='0.0 3.6 0.0'> |
| 73 | <Shape> |
| 74 | <Appearance USE='Tile'/> |
| 75 | <Cone bottomRadius='1.5'/> |
| 76 | </Shape> |
| 77 | </Transform> |
| 78 | <Shape> |
| 79 | <Appearance> |
| 80 | <Material ambientIntensity='0.3' diffuseColor='0.4 0.2 0.0'/> |
| 81 |
<ImageTexture
url=' "wdoor.jpg
" "https://www.web3d.org/x3d/content/examples/Vrml2Sourcebook/Siggraph98Course/wdoor.jpg
" '/>
|
| 82 | </Appearance> |
| 83 | <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'> |
| 84 | <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'/> |
| 85 | <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'/> |
| 86 | </IndexedFaceSet> |
| 87 | </Shape> |
| 88 | <Transform translation='0.0 0.05 0.5'> |
| 89 | <Shape> |
| 90 | <Appearance> |
| 91 | <Material diffuseColor='0.4 0.4 0.4'/> |
| 92 | </Appearance> |
| 93 | <Box size='2.0 0.1 1.0'/> |
| 94 | </Shape> |
| 95 | </Transform> |
| 96 | </Transform> |
| 97 |
<!-- ROUTE information for Sails node:
[from Rotator.value_changed to set_rotation
]
-->
<Transform DEF='Sails' translation='0.0 8.0 6.5'> |
| 98 | <Viewpoint description='On a sail' position='0.0 6.5 -0.1'/> |
| 99 | <Transform rotation='1.0 0.0 0.0 1.571' translation='0.0 0.0 -0.75'> |
| 100 | <Shape> |
| 101 | |
| 102 | <Material diffuseColor='0.6 0.4 0.0'/> |
| 103 | </Appearance> |
| 104 | <Cylinder bottom='false' height='1.5' radius='0.8'/> |
| 105 | </Shape> |
| 106 | </Transform> |
| 107 | |
| 108 | <Transform translation='0.0 1.0 0.1'> |
| 109 | <Shape> |
| 110 | <Appearance> |
| 111 | <TextureTransform scale='2.0 6.0'/> |
| 112 | <Material diffuseColor='1.0 1.0 1.0'/> |
| 113 |
<ImageTexture
url=' "sails.jpg
" "https://www.web3d.org/x3d/content/examples/Vrml2Sourcebook/Siggraph98Course/sails.jpg
" '/>
|
| 114 | </Appearance> |
| 115 | <Box size='2.0 6.0 0.1'/> |
| 116 | </Shape> |
| 117 | </Transform> |
| 118 | <Shape> |
| 119 | <Appearance USE='Wood'/> |
| 120 | <Box size='0.1 7.0 0.1'/> |
| 121 | </Shape> |
| 122 | </Transform> |
| 123 | <Transform rotation='0.0 0.0 1.0 1.571'> |
| 124 | <Transform USE='Sail'/> |
| 125 | </Transform> |
| 126 | <Transform rotation='0.0 0.0 1.0 -1.571'> |
| 127 | <Transform USE='Sail'/> |
| 128 | </Transform> |
| 129 | <Transform rotation='0.0 0.0 1.0 3.141'> |
| 130 | <Transform USE='Sail'/> |
| 131 | </Transform> |
| 132 | </Transform> |
| 133 |
<!-- ROUTE information for Clock node:
[from fraction_changed to Rotator.set_fraction
]
-->
<TimeSensor DEF='Clock' cycleInterval='10.0' loop='true' startTime='1.0'/> |
| 134 |
<!-- ROUTE information for Rotator node:
[from Clock.fraction_changed to set_fraction
]
[from value_changed to Sails.set_rotation
]
-->
<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'/> |
| 135 | < ROUTE fromNode='Clock' fromField='fraction_changed' toNode='Rotator' toField='set_fraction'/> |
| 136 | < ROUTE fromNode='Rotator' fromField='value_changed' toNode='Sails' toField='set_rotation'/> |
| 137 | </Scene> |
| 138 | </X3D> |
Event Graph ROUTE Table entries 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 |
Rotator
OrientationInterpolator set_fraction SFFloat |
then
|
Rotator
OrientationInterpolator value_changed SFRotation |
Sails
Transform set_rotation SFRotation |
<!--
Color-coding 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)
-->
<!--
For additional help information about X3D scenes, please see X3D Tooltips, X3D Resources, and X3D Scene Authoring Hints.
-->