X3D Model Documentation: AllenDuttonVillage.x3d

  1  <?xml version="1.0" encoding="UTF-8"?>
  2 
<!DOCTYPE X3D PUBLIC "ISO//Web3D//DTD X3D 3.0//EN" "https://www.web3d.org/specifications/x3d-3.0.dtd">
  3  <X3D profile='Immersive' version='3.0 xmlns:xsd='http://www.w3.org/2001/XMLSchema-instance' xsd:noNamespaceSchemaLocation='https://www.web3d.org/specifications/x3d-3.0.xsd'>
  4       <head>
  5            <meta name='titlecontent=' AllenDuttonVillage.x3d '/>
  6            <meta name='creatorcontent='LT Allen Dutton'/>
  7            <meta name='createdcontent='26 February 2001'/>
  8            <meta name='modifiedcontent='16 July 2025'/>
  9            <meta name='descriptioncontent='Primitive village. Move mouse over the hut roofs to see a demonstration of sensors and interpolators'/>
 10            <meta name='referencecontent=' https://www.web3d.org/x3d/content/examples/HumanoidAnimation/Legacy/AllenDutton.x3d '/>
 11            <meta name='referencecontent=' https://www.web3d.org/x3d/content/examples/Basic/StudentProjects/AllenDutton.x3d '/>
 12            <meta name='identifiercontent=' https://www.web3d.org/x3d/content/examples/Basic/StudentProjects/AllenDuttonVillage.x3d '/>
 13            <meta name='generatorcontent='X3D-Edit 4.0, https://savage.nps.edu/X3D-Edit'/>
 14            <meta name='licensecontent='../license.html'/>
 15       </head>
<!--

<!--
Event Graph ROUTE Table shows event connections.
-->
<!-- to top Index for DEF nodes: BROWN, CLOCK, CONE_TREE, grass, HUT, leaves, MyTouchSensor, ROOF_TRANSFORM, RoofRotateInterpolator, RoofTranslateInterpolator, SPHERE_TREE, straw, wood, YELLOW

Index for Viewpoint nodes: Viewpoint_1, Viewpoint_2
-->
 16       <Scene>
 17            <WorldInfo title='AllenDuttonVillage.x3d'/>
 18            <Viewpoint description='View from 80m awayorientation='-1 0 0 0.5position='0 60 100'/>
 19            <Viewpoint description='Default viewpoint at (0 0 10) is way too close!! That is a bad place to be, provide a replacement viewpoint instead.'/>
 20            <Background skyColor='0 0 .7'/>
 21            <DirectionalLight color='1 1 0.8direction='0 -1 0intensity='0.5'/>
 22            <Group>
 23                 <Transform translation='0 -3.5 0'>
 24                      <Shape>
 25                           <Appearance>
 26                                <Material diffuseColor='0 .7 0'/>
 27                                <ImageTexture DEF='grass'   url=' "grass.jpg " "https://www.web3d.org/x3d/content/examples/Basic/StudentProjects/grass.jpg " '/>
 28                                <TextureTransform scale='20 20'/>
 29                           </Appearance>
 30                           <Box size='160 1 160'/>
 31                      </Shape>
 32                 </Transform>
 33            </Group>
 34            <Group>
 35                 <Transform rotation='0 1 0 2.7scale='0.01 0.01 0.01translation='5 12.3 30'>
 36                      <Inline   url=' "ALLEN.WRL" "https://www.web3d.org/x3d/content/examples/Basic/StudentProjects/ALLEN.WRL" '/>
 37                 </Transform>
 38                 <Transform translation='5 0 30'>
 39                      <Shape>
 40                           <Box size='5 5 5'/>
 41                           <Appearance>
 42                                <Material diffuseColor='0.5 0.5 0.5'/>
 43                           </Appearance>
 44                      </Shape>
 45                 </Transform>
 46            </Group>
 47 
          <!-- Group HUT is a DEF node that has 3 USE nodes: USE_1, USE_2, USE_3 -->
          <Group DEF='HUT'>
 48                 <Shape>
 49                      <Appearance>
 50 
                         <!-- Material BROWN is a DEF node that has 2 USE nodes: USE_1, USE_2 -->
                         <Material DEF='BROWNdiffuseColor='0.5 0.4 0.3'/>
 51 
                         <!-- ImageTexture wood is a DEF node that has 2 USE nodes: USE_1, USE_2 -->
                         <ImageTexture DEF='wood'   url=' "wood.gif " "https://www.web3d.org/x3d/content/examples/Basic/StudentProjects/wood.gif " '/>
 52                           <TextureTransform rotation='1.57079scale='1.0 4.0'/>
 53                      </Appearance>
 54                      <Cylinder bottom='falseheight='6radius='4top='false'/>
 55                 </Shape>
 56 
               <!-- ROUTE information for ROOF_TRANSFORM node:  [from RoofRotateInterpolator.value_changed to set_rotation ] [from RoofTranslateInterpolator.value_changed to set_translation ] -->
               <Transform DEF='ROOF_TRANSFORMtranslation='0 4 0'>
 57                      <Shape>
 58                           <Appearance>
 59                                <Material DEF='YELLOWdiffuseColor='0.8 0.8 0'/>
 60                                <ImageTexture DEF='straw'   url=' "straw.jpg " "https://www.web3d.org/x3d/content/examples/Basic/StudentProjects/straw.jpg " '/>
 61                           </Appearance>
 62                           <Cone bottomRadius='6height='4'/>
 63                      </Shape>
 64 
                    <!-- ROUTE information for MyTouchSensor node:  [from isOver to CLOCK.set_enabled ] -->
                    <TouchSensor DEF='MyTouchSensordescription='raise the roof'/>
 65                 </Transform>
 66 
               <!-- ROUTE information for CLOCK node:  [from MyTouchSensor.isOver to set_enabled ] [from fraction_changed to RoofRotateInterpolator.set_fraction ] [from fraction_changed to RoofTranslateInterpolator.set_fraction ] -->
               <TimeSensor DEF='CLOCKcycleInterval='4enabled='falseloop='true'/>
 67 
               <!-- ROUTE information for RoofRotateInterpolator node:  [from CLOCK.fraction_changed to set_fraction ] [from value_changed to ROOF_TRANSFORM.set_rotation ] -->
               <OrientationInterpolator DEF='RoofRotateInterpolatorkey='0.0 0.50 1.0keyValue='0.0 1.0 0.0 0.0 0.0 1.0 0.0 3.14 0.0 1.0 0.0 6.28'/>
 68 
               <!-- ROUTE information for RoofTranslateInterpolator node:  [from CLOCK.fraction_changed to set_fraction ] [from value_changed to ROOF_TRANSFORM.set_translation ] -->
               <PositionInterpolator DEF='RoofTranslateInterpolatorkey='0.0 0.5 1.0keyValue='0.0 4.0 0.0 0.0 8.0 0.0 0.0 4.0 0.0'/>
 69            </Group>
 70 
          <!-- Group CONE_TREE is a DEF node that has 1 USE node: USE_1 -->
          <Group DEF='CONE_TREE'>
 71                 <Transform translation='10 0 0'>
 72                      <Shape>
 73                           <Appearance>
 74                                <Material USE='BROWN'/>
 75                                <ImageTexture USE='wood'/>
 76                           </Appearance>
 77                           <Cylinder bottom='falseheight='6radius='0.5top='false'/>
 78                      </Shape>
 79                 </Transform>
 80                 <Transform translation='10 3 0'>
 81                      <Shape>
 82                           <Appearance>
 83                                <Material diffuseColor='0 .3 0'/>
 84 
                              <!-- ImageTexture leaves is a DEF node that has 1 USE node: USE_1 -->
                              <ImageTexture DEF='leaves'   url=' "leaves.jpg " "https://www.web3d.org/x3d/content/examples/Basic/StudentProjects/leaves.jpg " '/>
 85                           </Appearance>
 86                           <Cone bottomRadius='2height='6'/>
 87                      </Shape>
 88                 </Transform>
 89            </Group>
 90 
          <!-- Group SPHERE_TREE is a DEF node that has 1 USE node: USE_1 -->
          <Group DEF='SPHERE_TREE'>
 91                 <Transform translation='-30 0 -3'>
 92                      <Shape>
 93                           <Appearance>
 94                                <Material USE='BROWN'/>
 95                                <ImageTexture USE='wood'/>
 96                           </Appearance>
 97                           <Cylinder bottom='falseheight='6radius='0.5top='false'/>
 98                      </Shape>
 99                 </Transform>
100                 <Transform translation='-30 6 -3'>
101                      <Shape>
102                           <Appearance>
103                                <Material diffuseColor='0 .3 0'/>
104                                <ImageTexture USE='leaves'/>
105                           </Appearance>
106                           <Sphere radius='3.5'/>
107                      </Shape>
108                 </Transform>
109            </Group>
110            <Group>
111                 <Transform scale='.8 1 .8translation='-45 0 10'>
112                      <Group USE='HUT'/>
113                      <Transform translation='0 11 0'>
114                           <Shape>
115                                <Text string='"Visitor's" "Center"'>
116                                     <FontStyle justify='"MIDDLE" "MIDDLE"size='5.0style='BOLDITALIC'/>
117                                </Text>
118                                <Appearance>
119                                     <Material diffuseColor='0.8 0.1 0.4'/>
120                                </Appearance>
121                           </Shape>
122                      </Transform>
123                 </Transform>
124            </Group>
125            <Group>
126                 <Transform scale='1.5 1 1.5translation='30 0 20'>
127                      <Group USE='HUT'/>
128                      <Transform translation='1 8 0'>
129                           <Shape>
130                                <Text string='"Chief's Hut"'>
131                                     <FontStyle justify='"MIDDLE" "MIDDLE"size='4.0style='BOLD'/>
132                                </Text>
133                                <Appearance>
134                                     <Material diffuseColor='0.8 0.1 0.4'/>
135                                </Appearance>
136                           </Shape>
137                      </Transform>
138                 </Transform>
139            </Group>
140            <Group>
141                 <Transform scale='.5 1 .5translation='-10 0 20'>
142                      <Group USE='HUT'/>
143                      <Transform translation='0 24 0'>
144                           <Shape>
145                                <Text string='"Outhouse"'>
146                                     <FontStyle family='"SANS"horizontal='falsejustify='"MIDDLE" "MIDDLE"size='5.0style='BOLD'/>
147                                </Text>
148                                <Appearance>
149                                     <Material diffuseColor='0.8 0.1 0.4'/>
150                                </Appearance>
151                           </Shape>
152                      </Transform>
153                 </Transform>
154            </Group>
155            <Group>
156                 <Transform scale='0.5 1.0 0.5translation='30 0 30'>
157                      <Group USE='SPHERE_TREE'/>
158                 </Transform>
159            </Group>
160            <Group>
161                 <Transform scale='2 1.0 2translation='-45 0 30'>
162                      <Group USE='CONE_TREE'/>
163                 </Transform>
164            </Group>
165            < ROUTE  fromNode='MyTouchSensor' fromField='isOver' toNode='CLOCK' toField='set_enabled'/>
166            < ROUTE  fromNode='CLOCK' fromField='fraction_changed' toNode='RoofRotateInterpolator' toField='set_fraction'/>
167            < ROUTE  fromNode='RoofRotateInterpolator' fromField='value_changed' toNode='ROOF_TRANSFORM' toField='set_rotation'/>
168            < ROUTE  fromNode='CLOCK' fromField='fraction_changed' toNode='RoofTranslateInterpolator' toField='set_fraction'/>
169            < ROUTE  fromNode='RoofTranslateInterpolator' fromField='value_changed' toNode='ROOF_TRANSFORM' toField='set_translation'/>
170       </Scene>
171  </X3D>
<!--

<!--
Event Graph ROUTE Table shows event connections.
-->
<!-- to top Index for DEF nodes: BROWN, CLOCK, CONE_TREE, grass, HUT, leaves, MyTouchSensor, ROOF_TRANSFORM, RoofRotateInterpolator, RoofTranslateInterpolator, SPHERE_TREE, straw, wood, YELLOW

Index for Viewpoint nodes: Viewpoint_1, Viewpoint_2
-->
X3D Tooltips element index: Appearance, Background, Box, Cone, Cylinder, DirectionalLight, FontStyle, Group, head, ImageTexture, Inline, Material, meta, OrientationInterpolator, PositionInterpolator, ROUTE, Scene, Shape, Sphere, Text, TextureTransform, TimeSensor, TouchSensor, Transform, Viewpoint, WorldInfo, X3D, plus documentation for accessType definitions, type definitions, XML data types, and field types

Event Graph ROUTE Table entries with 5 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.

MyTouchSensor
TouchSensor
isOver
SFBool

ROUTE
event to
(1)
CLOCK
TimeSensor
set_enabled
SFBool
then
 
 
 
CLOCK
TimeSensor
fraction_changed
SFFloat

ROUTE
event to
(2)
RoofRotateInterpolator
OrientationInterpolator
set_fraction
SFFloat
then
 
 
 
RoofRotateInterpolator
OrientationInterpolator
value_changed
SFRotation

ROUTE
event to
(3)
ROOF_TRANSFORM
Transform
set_rotation
SFRotation
  then
 
 
 
CLOCK
TimeSensor
fraction_changed
SFFloat

ROUTE
event to
(2)
RoofTranslateInterpolator
PositionInterpolator
set_fraction
SFFloat
then
 
 
 
RoofTranslateInterpolator
PositionInterpolator
value_changed
SFVec3f

ROUTE
event to
(3)
ROOF_TRANSFORM
Transform
set_translation
SFVec3f


Additional guidance on X3D animation can be found in the 10-Step Animation Design Process and Event Tracing hint sheets. Have fun with X3D! 😀

-->
<!-- Online at
https://www.web3d.org/x3d/content/examples/Basic/StudentProjects/AllenDuttonVillageIndex.html -->
<!-- Version control at
https://sourceforge.net/p/x3d/code/HEAD/tree/www.web3d.org/x3d/content/examples/Basic/StudentProjects/AllenDuttonVillage.x3d -->

<!-- Color-coding legend: X3D terminology <X3dNode  DEF='idNamefield='value'/> matches XML terminology <XmlElement  DEF='idNameattribute='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. -->