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=' Track.x3d '/> |
6 | <meta name='description' content='AAAV Tracks and Road Wheels'/> |
7 | <meta name='creator' content='William Geissler'/> |
8 | <meta name='created' content='31 January 2001'/> |
9 | <meta name='modified' content='20 October 2019'/> |
10 | <meta name='identifier' content=' https://www.web3d.org/x3d/content/examples/Savage/AmphibiousVehicles/AAAV/Track.x3d '/> |
11 | <meta name='generator' content='X3D-Edit 3.2, https://www.web3d.org/x3d/tools/X3D-Edit'/> |
12 | <meta name='license' content='../../license.html'/> |
13 | </head> |
14 | <Scene> |
15 | <WorldInfo info='"AAAV Track and Road Wheels"' title='Track'/> |
16 | <Viewpoint description='Front Tracks View' orientation='0 0 -1 0' position='0 1 15'/> |
17 | <Viewpoint description='Lower Rear Tracks View' orientation='0 1 0 3.14' position='0 0 -15'/> |
18 | <Viewpoint description='Port Side View' orientation='0 1 0 1.57' position='15 4 0'/> |
19 | <Transform translation='3.5 0 4.8'> |
20 | |
21 |
<!-- Transform
Horizontal is a DEF node that has 5 USE nodes: USE_1, USE_2, USE_3, USE_4, USE_5
<!-- ROUTE information for Horizontal node: [from TRACKPATH.value_changed to set_translation ] --> <Transform DEF='Horizontal'> |
22 | |
23 | <Shape> |
24 | <Box size='1 .05 .3'/> |
25 | <Appearance> |
26 | <Material diffuseColor='0.4 0.4 0.4'/> |
27 | </Appearance> |
28 | </Shape> |
29 | <Transform translation='-0.25 -0.05 0.0'> |
30 | <Shape> |
31 | <Box size='.35 .05 .2'/> |
32 | <Appearance> |
33 | <Material diffuseColor='.2 .2 .2'/> |
34 | </Appearance> |
35 | </Shape> |
36 | </Transform> |
37 | <Transform translation='0.25 -0.05 0.0'> |
38 | <Shape> |
39 | <Box size='.35 .05 .2'/> |
40 | <Appearance> |
41 | <Material diffuseColor='.2 .2 .2'/> |
42 | </Appearance> |
43 | </Shape> |
44 | </Transform> |
45 | <Transform translation='0.0 0.075 0.0'> |
46 | <Shape> |
47 | <Box size='.1 .1 .4'/> |
48 | <Appearance> |
49 | <Material diffuseColor='0.6 0.6 0.6'/> |
50 | </Appearance> |
51 | </Shape> |
52 | </Transform> |
53 | <Transform rotation='0 0 1 1.57' translation='0.0 0.075 0.2'> |
54 | <Shape> |
55 | <Cylinder height='.12' radius='.06'/> |
56 | <Appearance> |
57 | <Material diffuseColor='0.4 0.4 0.4'/> |
58 | </Appearance> |
59 | </Shape> |
60 | </Transform> |
61 | </Group> |
62 | <Transform translation='0.0 0.0 -0.4'> |
63 | <Group USE='SingleTrack'/> |
64 | </Transform> |
65 | <Transform translation='0.0 0.0 -0.8'> |
66 | <Group USE='SingleTrack'/> |
67 | </Transform> |
68 | <Transform translation='0.0 0.0 -1.2'> |
69 | <Group USE='SingleTrack'/> |
70 | </Transform> |
71 | <Transform translation='0.0 0.0 -1.6'> |
72 | <Group USE='SingleTrack'/> |
73 | </Transform> |
74 | <Transform translation='0.0 0.0 -2.0'> |
75 | <Group USE='SingleTrack'/> |
76 | </Transform> |
77 | <!-- CLOCK TimeSensor node controls speed of all track movement. --> |
78 |
<!-- ROUTE information for CLOCK node:
[from TrackSensor.isOver to set_enabled
]
[from fraction_changed to TRACKPATH.set_fraction
]
[from fraction_changed to PIVOTPATH1.set_fraction
]
[from fraction_changed to PIVOTPATH2.set_fraction
]
[from fraction_changed to WHEELPATH.set_fraction
]
-->
<TimeSensor DEF='CLOCK' cycleInterval='.5' enabled='false' loop='true'/> |
79 | <!-- TRACKPATH node moves SingleTrack along flat path. --> |
80 |
<!-- ROUTE information for TRACKPATH node:
[from CLOCK.fraction_changed to set_fraction
]
[from value_changed to Horizontal.set_translation
]
-->
<PositionInterpolator DEF='TRACKPATH' key='0.0 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 0.99' keyValue='0.0 0.0 0.00 0.0 0.0 -0.04 0.0 0.0 -0.08 0.0 0.0 -0.12 0.0 0.0 -0.16 0.0 0.0 -0.20 0.0 0.0 -0.24 0.0 0.0 -0.28 0.0 0.0 -0.32 0.0 0.0 -0.36 0.0 0.0 -0.40'/> |
81 | </Transform> |
82 | <Transform translation='0.0 0.0 -2.4'> |
83 | <Transform USE='Horizontal'/> |
84 | </Transform> |
85 | <Transform translation='0.0 0.0 -4.8'> |
86 | <Transform USE='Horizontal'/> |
87 | </Transform> |
88 | <Transform translation='0.0 0.0 -7.2'> |
89 | <Transform USE='Horizontal'/> |
90 | </Transform> |
91 |
<!-- ROUTE information for Pivot1 node:
[from PIVOTPATH1.value_changed to set_rotation
]
-->
<Transform DEF='Pivot1' center='0 1 0' translation='0.0 0.0 -9.5'> |
92 | <Group USE='SingleTrack'/> |
93 | <!-- PIVOTPATH1 nodes moves SingleTrack along 30 deg curve. --> |
94 |
<!-- ROUTE information for PIVOTPATH1 node:
[from CLOCK.fraction_changed to set_fraction
]
[from value_changed to Pivot1.set_rotation
]
[from value_changed to Pivot1High.set_rotation
]
-->
<OrientationInterpolator DEF='PIVOTPATH1' key='0.0 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 0.99' keyValue='1 0 0 0.000 1 0 0 0.052 1 0 0 0.104 1 0 0 0.156 1 0 0 0.208 1 0 0 0.260 1 0 0 0.312 1 0 0 0.364 1 0 0 0.416 1 0 0 0.468 1 0 0 0.520'/> |
95 | </Transform> |
96 |
<!-- ROUTE information for Pivot2 node:
[from PIVOTPATH2.value_changed to set_rotation
]
-->
<Transform DEF='Pivot2' center='0 1 0'> |
97 | <Group USE='SingleTrack'/> |
98 | <!-- PIVOTPATH2 nodes moves SingleTrack along -30 deg curve. --> |
99 |
<!-- ROUTE information for PIVOTPATH2 node:
[from CLOCK.fraction_changed to set_fraction
]
[from value_changed to Pivot2.set_rotation
]
[from value_changed to Pivot2High.set_rotation
]
-->
<OrientationInterpolator DEF='PIVOTPATH2' key='0.0 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 0.99' keyValue='1 0 0 -0.520 1 0 0 -0.468 1 0 0 -0.416 1 0 0 -0.364 1 0 0 -0.312 1 0 0 -0.260 1 0 0 -0.208 1 0 0 -0.156 1 0 0 -0.104 1 0 0 -0.052 1 0 0 0.0'/> |
100 | </Transform> |
101 | <Transform DEF='Front' rotation='1 0 0 -0.524' translation='0 1.3 2.5'> |
102 | <Transform USE='Horizontal'/> |
103 | </Transform> |
104 | <Transform DEF='Rear' rotation='1 0 0 0.524' translation='0 .08 -9.9'> |
105 | <Transform USE='Horizontal'/> |
106 | </Transform> |
107 |
<!-- ROUTE information for Pivot2High node:
[from PIVOTPATH2.value_changed to set_rotation
]
-->
<Transform DEF='Pivot2High' center='0 1 0' translation='0 1 2.1'> |
108 |
<!-- Group
CircleTrack is a DEF node that has 1 USE node: USE_1 -->
<Group DEF='CircleTrack'> |
109 | <Transform rotation='1 0 0 -0.524' translation='0.0 0.307 0.4'> |
110 | <Group USE='SingleTrack'/> |
111 | </Transform> |
112 | <Transform rotation='1 0 0 -1.05' translation='0.0 0.6 0.69'> |
113 | <Group USE='SingleTrack'/> |
114 | </Transform> |
115 | <Transform rotation='1 0 0 -1.57' translation='0.0 1.0 0.8'> |
116 | <Group USE='SingleTrack'/> |
117 | </Transform> |
118 | <Transform rotation='1 0 0 -2.09' translation='0.0 1.4 0.69'> |
119 | <Group USE='SingleTrack'/> |
120 | </Transform> |
121 | <Transform rotation='1 0 0 -2.62' translation='0.0 1.69 0.4'> |
122 | <Group USE='SingleTrack'/> |
123 | </Transform> |
124 | <Transform rotation='1 0 0 -3.14' translation='0.0 1.8 0.0'> |
125 | <Group USE='SingleTrack'/> |
126 | </Transform> |
127 | </Group> |
128 | </Transform> |
129 |
<!-- ROUTE information for Pivot1High node:
[from PIVOTPATH1.value_changed to set_rotation
]
-->
<Transform DEF='Pivot1High' center='0 1 0' translation='0 1 -11.6'> |
130 | <Transform rotation='0 1 0 3.14'> |
131 | <Group USE='CircleTrack'/> |
132 | </Transform> |
133 | </Transform> |
134 | <Transform rotation='0 0 1 -1.57' scale='0.7 0.7 0.7' translation='0 0.7 0'> |
135 | |
136 | <Group> |
137 | <Shape DEF='Hub'> |
138 | <Cylinder height='0.4' radius='.15'/> |
139 | <Appearance> |
140 | <Material diffuseColor='0.2 0.2 0'/> |
141 | </Appearance> |
142 | </Shape> |
143 | <Shape DEF='Wheel'> |
144 | <Cylinder height='.1' radius='0.9' side='false'/> |
145 | <Appearance> |
146 | <Material diffuseColor='0.4 0.4 0'/> |
147 | </Appearance> |
148 | </Shape> |
149 | <Shape DEF='Rim'> |
150 | <Appearance> |
151 | <Material diffuseColor='0.2 0.2 0'/> |
152 | </Appearance> |
153 | <Extrusion ccw='false' creaseAngle='0.785' crossSection='1.00 0.00 0.92 0.38 0.71 0.71 0.38 0.92 0.00 1.00 -0.38 0.92 -0.71 0.71 -0.92 0.38 -1.00 0.00 -0.92 -0.38 -0.71 -0.71 -0.38 -0.92 0.00 -1.00 0.38 -0.92 0.71 -0.71 0.92 -0.38 1.00 0.00 0.80 0.00 0.74 -0.31 0.57 -0.57 0.31 -0.74 0.00 -0.80 -0.31 -0.74 -0.57 -0.57 -0.74 -0.31 -0.80 0.00 -0.74 0.31 -0.57 0.57 -0.31 0.74 0.00 0.80 0.31 0.74 0.57 0.57 0.74 0.31 0.80 0.00' spine='0.0 -0.2 0.0 0.0 0.2 0.0'/> |
154 | </Shape> |
155 | </Group> |
156 | <!-- WHEELPATH node rotates RoadWheel 30 deg. --> |
157 |
<!-- ROUTE information for WHEELPATH node:
[from CLOCK.fraction_changed to set_fraction
]
[from value_changed to RoadWheel.set_rotation
]
-->
<OrientationInterpolator DEF='WHEELPATH' key='0.0 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 0.99' keyValue='0 1 0 0.000 0 1 0 0.052 0 1 0 0.104 0 1 0 0.156 0 1 0 0.208 0 1 0 0.260 0 1 0 0.312 0 1 0 0.364 0 1 0 0.416 0 1 0 0.468 0 1 0 0.520'/> |
158 | </Transform> |
159 | </Transform> |
160 | <Transform DEF='RoadWheels'> |
161 | <Group> |
162 | <Transform rotation='0 0 1 -1.57' scale='0.7 0.7 0.7' translation='0 0.7 -1.6'> |
163 | <Transform USE='RoadWheel'/> |
164 | </Transform> |
165 | <Transform rotation='0 0 1 -1.57' scale='0.7 0.7 0.7' translation='0 0.7 -3.2'> |
166 | <Transform USE='RoadWheel'/> |
167 | </Transform> |
168 | <Transform rotation='0 0 1 -1.57' scale='0.7 0.7 0.7' translation='0 0.7 -4.8'> |
169 | <Transform USE='RoadWheel'/> |
170 | </Transform> |
171 | <Transform rotation='0 0 1 -1.57' scale='0.7 0.7 0.7' translation='0 0.7 -6.4'> |
172 | <Transform USE='RoadWheel'/> |
173 | </Transform> |
174 | <Transform rotation='0 0 1 -1.57' scale='0.7 0.7 0.7' translation='0 0.7 -8.0'> |
175 | <Transform USE='RoadWheel'/> |
176 | </Transform> |
177 | <Transform rotation='0 0 1 -1.57' scale='0.7 0.7 0.7' translation='0 0.7 -9.6'> |
178 | <Transform USE='RoadWheel'/> |
179 | </Transform> |
180 | <Transform rotation='0 0 1 -1.57' scale='0.7 0.7 0.7' translation='0 2.0 2.1'> |
181 | <Transform USE='RoadWheel'/> |
182 | </Transform> |
183 | <Transform rotation='0 0 1 -1.57' scale='0.7 0.7 0.7' translation='0 2.0 -11.7'> |
184 | <Transform USE='RoadWheel'/> |
185 | </Transform> |
186 | </Group> |
187 | </Transform> |
188 | <!-- TrackSensor node moves Track node if cursor over shapes. --> |
189 |
<!-- ROUTE information for TrackSensor node:
[from isOver to CLOCK.set_enabled
]
-->
<TouchSensor DEF='TrackSensor' description='point to move track'/> |
190 | </Group> |
191 | </Transform> |
192 | <Transform translation='-3.5 0 4.8'> |
193 | <Group USE='Track'/> |
194 | </Transform> |
195 | <!-- TrackSensor Route node sets path from TouchSensor to CLOCK. --> |
196 | < ROUTE fromNode='TrackSensor' fromField='isOver' toNode='CLOCK' toField='set_enabled'/> |
197 | <!-- CLOCK Route nodes sets path from TimeSensor to other ROUTES. --> |
198 | < ROUTE fromNode='CLOCK' fromField='fraction_changed' toNode='TRACKPATH' toField='set_fraction'/> |
199 | < ROUTE fromNode='CLOCK' fromField='fraction_changed' toNode='PIVOTPATH1' toField='set_fraction'/> |
200 | < ROUTE fromNode='CLOCK' fromField='fraction_changed' toNode='PIVOTPATH2' toField='set_fraction'/> |
201 | < ROUTE fromNode='CLOCK' fromField='fraction_changed' toNode='WHEELPATH' toField='set_fraction'/> |
202 | <!-- PATH ROUTE nodes finish path from TimeSensor to moving shapes. --> |
203 | < ROUTE fromNode='TRACKPATH' fromField='value_changed' toNode='Horizontal' toField='set_translation'/> |
204 | < ROUTE fromNode='PIVOTPATH1' fromField='value_changed' toNode='Pivot1' toField='set_rotation'/> |
205 | < ROUTE fromNode='PIVOTPATH1' fromField='value_changed' toNode='Pivot1High' toField='set_rotation'/> |
206 | < ROUTE fromNode='PIVOTPATH2' fromField='value_changed' toNode='Pivot2' toField='set_rotation'/> |
207 | < ROUTE fromNode='PIVOTPATH2' fromField='value_changed' toNode='Pivot2High' toField='set_rotation'/> |
208 | < ROUTE fromNode='WHEELPATH' fromField='value_changed' toNode='RoadWheel' toField='set_rotation'/> |
209 | </Scene> |
210 | </X3D> |
Event Graph ROUTE Table entries with 11 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.
<!--
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.
-->