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='title' content=' AllenDuttonVillage.x3d '/> |
6 | <meta name='creator' content='LT Allen Dutton'/> |
7 | <meta name='created' content='26 February 2001'/> |
8 | <meta name='modified' content='16 July 2025'/> |
9 | <meta name='description' content='Primitive village. Move mouse over the hut roofs to see a demonstration of sensors and interpolators'/> |
10 | <meta name='reference' content=' https://www.web3d.org/x3d/content/examples/HumanoidAnimation/Legacy/AllenDutton.x3d '/> |
11 | <meta name='reference' content=' https://www.web3d.org/x3d/content/examples/Basic/StudentProjects/AllenDutton.x3d '/> |
12 | <meta name='identifier' content=' https://www.web3d.org/x3d/content/examples/Basic/StudentProjects/AllenDuttonVillage.x3d '/> |
13 | <meta name='generator' content='X3D-Edit 4.0, https://savage.nps.edu/X3D-Edit'/> |
14 | <meta name='license' content='../license.html'/> |
15 | </head> |
16 | <Scene> |
17 | <WorldInfo title='AllenDuttonVillage.x3d'/> |
18 | <Viewpoint description='View from 80m away' orientation='-1 0 0 0.5' position='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.8' direction='0 -1 0' intensity='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![]() ![]() |
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.7' scale='0.01 0.01 0.01' translation='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 | |
48 | <Shape> |
49 | <Appearance> |
50 | |
51 |
<!-- ImageTexture
wood is a DEF node that has 2 USE nodes: USE_1, USE_2 --> <ImageTexture DEF='wood' url=' "wood.gif ![]() ![]() |
52 | <TextureTransform rotation='1.57079' scale='1.0 4.0'/> |
53 | </Appearance> |
54 | <Cylinder bottom='false' height='6' radius='4' top='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_TRANSFORM' translation='0 4 0'> |
57 | <Shape> |
58 | <Appearance> |
59 | <Material DEF='YELLOW' diffuseColor='0.8 0.8 0'/> |
60 |
<ImageTexture DEF='straw'
url=' "straw.jpg![]() ![]() |
61 | </Appearance> |
62 | <Cone bottomRadius='6' height='4'/> |
63 | </Shape> |
64 |
<!-- ROUTE information for MyTouchSensor node:
[from isOver to CLOCK.set_enabled
]
-->
<TouchSensor DEF='MyTouchSensor' description='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='CLOCK' cycleInterval='4' enabled='false' loop='true'/> |
67 |
<!-- ROUTE information for RoofRotateInterpolator node:
[from CLOCK.fraction_changed to set_fraction
]
[from value_changed to ROOF_TRANSFORM.set_rotation
]
-->
<OrientationInterpolator DEF='RoofRotateInterpolator' key='0.0 0.50 1.0' keyValue='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='RoofTranslateInterpolator' key='0.0 0.5 1.0' keyValue='0.0 4.0 0.0 0.0 8.0 0.0 0.0 4.0 0.0'/> |
69 | </Group> |
70 | |
71 | <Transform translation='10 0 0'> |
72 | <Shape> |
73 | <Appearance> |
74 | <Material USE='BROWN'/> |
75 | <ImageTexture USE='wood'/> |
76 | </Appearance> |
77 | <Cylinder bottom='false' height='6' radius='0.5' top='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 ![]() ![]() |
85 | </Appearance> |
86 | <Cone bottomRadius='2' height='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='false' height='6' radius='0.5' top='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 .8' translation='-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.0' style='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.5' translation='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.0' style='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 .5' translation='-10 0 20'> |
142 | <Group USE='HUT'/> |
143 | <Transform translation='0 24 0'> |
144 | <Shape> |
145 | <Text string='"Outhouse"'> |
146 | <FontStyle family='"SANS"' horizontal='false' justify='"MIDDLE" "MIDDLE"' size='5.0' style='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.5' translation='30 0 30'> |
157 | <Group USE='SPHERE_TREE'/> |
158 | </Transform> |
159 | </Group> |
160 | <Group> |
161 | <Transform scale='2 1.0 2' translation='-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 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 |
CLOCK
TimeSensor set_enabled SFBool |
then
|
CLOCK
TimeSensor fraction_changed SFFloat |
RoofRotateInterpolator
OrientationInterpolator set_fraction SFFloat |
then
|
RoofRotateInterpolator
OrientationInterpolator value_changed SFRotation |
ROOF_TRANSFORM
Transform set_rotation SFRotation |
|||
then
|
CLOCK
TimeSensor fraction_changed SFFloat |
RoofTranslateInterpolator
PositionInterpolator set_fraction SFFloat |
then
|
RoofTranslateInterpolator
PositionInterpolator value_changed SFVec3f |
ROOF_TRANSFORM
Transform set_translation SFVec3f |
<!--
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.
-->