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=' UtilityBoatPrototype.x3d '/> |
6 | <meta name='creator' content='James Harney'/> |
7 | <meta name='created' content='13 December 2001'/> |
8 | <meta name='modified' content='20 October 2019'/> |
9 | <meta name='description' content='Simple model of utility boat in vicinity of the USS COLE in Aden Harbor, Yemen in October 2000. Aligned down positive x axis as required for Savage vehicle models.'/> |
10 | <meta name='reference' content=' https://www.web3d.org/x3d/content/examples/Savage/Scenarios/UssColeTerroristAttack/TerroristBoatControlPanel.java '/> |
11 | <meta name='reference' content=' https://www.web3d.org/x3d/content/examples/Savage/Scenarios/UssColeTerroristAttack/TerroristBoatActionInterpreter.java '/> |
12 | <meta name='reference' content=' http://www.foia.navy.mil/usscole/index.html '/> |
13 | <meta name='identifier' content=' https://www.web3d.org/x3d/content/examples/Savage/Scenarios/UssColeTerroristAttack/UtilityBoatPrototype.x3d '/> |
14 | <meta name='license' content='../../license.html'/> |
15 | </head> |
16 | <Scene> |
17 | <WorldInfo title='UtilityBoatPrototype.x3d'/> |
18 | <ProtoDeclare name='UtilityBoat'> |
19 | <ProtoInterface> |
20 | <field name='startExplosion' type='SFTime' accessType='inputOnly'/> |
21 | </ProtoInterface> |
22 | <ProtoBody> |
23 | <Group> |
24 | <Transform> |
25 | <Viewpoint DEF='STBD' description='Utility Boat stbd View' jump='false' orientation='1 0 0 -0.2' position='5 10 35'/> |
26 | <Viewpoint DEF='REAR' description='Utility Boat Rear View' jump='false' orientation='0 1 0 -1.57' position='-30 8 0'/> |
27 | </Transform> |
28 |
<!-- ROUTE information for BoatPosit node:
[from BoatPositClock.fraction_changed to set_fraction
]
[from value_changed to BoatTransform.set_translation
]
-->
<PositionInterpolator DEF='BoatPosit' key='0.325 0.9 1' keyValue='0 0 0 0 -15 0 0 -.5 0'/> |
29 |
<!-- ROUTE information for BoatPositClock node:
[from fraction_changed to BoatPosit.set_fraction
]
[from startTime to DeadBoat.set_startTime
]
-->
<TimeSensor DEF='BoatPositClock' cycleInterval='3.6'> |
30 | <IS> |
31 | <connect nodeField='startTime' protoField='startExplosion'/> |
32 | </IS> |
33 | </TimeSensor> |
34 |
<!-- ROUTE information for DeadBoat node:
[from BoatPositClock.startTime to set_startTime
]
[from fraction_changed to DeadOrient.set_fraction
]
-->
<TimeSensor DEF='DeadBoat' cycleInterval='5'/> |
35 |
<!-- ROUTE information for DeadOrient node:
[from DeadBoat.fraction_changed to set_fraction
]
[from value_changed to BoatTransform.set_rotation
]
-->
<OrientationInterpolator DEF='DeadOrient' key='0.4 0.9 1' keyValue='1 0 0 0.00 1 0 0 3.14 1 0 0 3.14'/> |
36 |
<!-- ROUTE information for BoatTransform node:
[from BoatPosit.value_changed to set_translation
]
[from DeadOrient.value_changed to set_rotation
]
-->
<Transform DEF='BoatTransform'> |
37 | <Transform scale='1.2 1.2 1.2'> |
38 | <Shape> |
39 | <Extrusion beginCap='false' creaseAngle='1.57' crossSection='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' orientation='0 1 0 0 0 1 0 0 0 0 1 -0.5' scale='1 1 1 1 1 .1' solid='false' spine='0 0 0 7.8842 0 0 10.7 0.25 0'/> |
40 | <Appearance> |
41 | <Material diffuseColor='.9 .9 .9' shininess='.1'/> |
42 |
<ImageTexture DEF='TEXTURE'
url=' "../../Scenarios/UssColeTerroristAttack/RedYellowTexture.jpg![]() ![]() ![]() |
43 | </Appearance> |
44 | </Shape> |
45 | <Shape> |
46 | <Extrusion creaseAngle='1.57' crossSection='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' scale='1 1 1 1' solid='false' spine='0 0 0 .1 0 0'/> |
47 | <Appearance> |
48 | <Material diffuseColor='.9 .9 .9' shininess='.1'/> |
49 |
<ImageTexture
url=' "../../Scnarios/UssColeTerroristAttack/RedYellowTextureRotated.gif![]() ![]() ![]() |
50 | </Appearance> |
51 | </Shape> |
52 | <Shape> |
53 | <Extrusion creaseAngle='1.57' crossSection='0.10 0.96 0.10 -0.96' scale='1 1 1 1 1 .1' solid='false' spine='.1 0 0 7.8842 0 0 10.6 0.25 0'/> |
54 | <Appearance> |
55 | <Material diffuseColor='.5 .5 .5'/> |
56 | </Appearance> |
57 | </Shape> |
58 | </Transform> |
59 | <Transform translation='0 -.2 0'> |
60 | <Shape> |
61 | <IndexedFaceSet solid='false' coordIndex='0 2 6 4 0 -1 1 3 7 5 1 -1 0 1 5 4 0 -1 2 3 7 6 2 -1 4 6 7 5 4 -1'> |
62 | <Coordinate point='2 0 .5 3 0 .5 2 0 -.5 3 0 -.5 2 1 .5 3 1.5 .5 2 1 -.5 3 1.5 -.5'/> |
63 | </IndexedFaceSet> |
64 | <Appearance> |
65 | <Material diffuseColor='.5 .5 .5'/> |
66 | </Appearance> |
67 | </Shape> |
68 | </Transform> |
69 | </Transform> |
70 | < ROUTE fromNode='BoatPositClock' fromField='fraction_changed' toNode='BoatPosit' toField='set_fraction'/> |
71 | < ROUTE fromNode='BoatPosit' fromField='value_changed' toNode='BoatTransform' toField='set_translation'/> |
72 | < ROUTE fromNode='BoatPositClock' fromField='startTime' toNode='DeadBoat' toField='set_startTime'/> |
73 | < ROUTE fromNode='DeadBoat' fromField='fraction_changed' toNode='DeadOrient' toField='set_fraction'/> |
74 | < ROUTE fromNode='DeadOrient' fromField='value_changed' toNode='BoatTransform' toField='set_rotation'/> |
75 | </Group> |
76 | </ProtoBody> |
77 | </ProtoDeclare> |
78 | <NavigationInfo speed='10' type='"EXAMINE" "FLY" "ANY"' visibilityLimit='7000'/> |
79 | <Background groundAngle='1.309 1.570796' groundColor='0.1 0.1 0 0.4 0.25 0.2 0.6 0.6 0.6' skyAngle='1.309 1.571' skyColor='0 0.2 0.7 0 0.5 1 1 1 1'/> |
80 |
<!-- ROUTE information for Boat node:
[from Touch.touchTime to startExplosion
]
-->
<ProtoInstance name='UtilityBoat' DEF='Boat'/> |
81 | <Viewpoint description='Utility Boat View' jump='false' orientation='1 0 0 -0.2' position='0 10 35'/> |
82 |
<!-- ROUTE information for Touch node:
[from touchTime to Boat.startExplosion
]
-->
<TouchSensor DEF='Touch'/> |
83 | < ROUTE fromNode='Touch' fromField='touchTime' toNode='Boat' toField='startExplosion'/> |
84 | </Scene> |
85 | </X3D> |
Event Graph ROUTE Table entries with 6 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.
Touch
TouchSensor touchTime SFTime |
Boat
ProtoInstance startExplosion SFTime |
BoatPositClock
TimeSensor fraction_changed SFFloat |
BoatPosit
PositionInterpolator set_fraction SFFloat |
then
|
BoatPosit
PositionInterpolator value_changed SFVec3f |
BoatTransform
Transform set_translation SFVec3f |
||||||
BoatPositClock
TimeSensor startTime SFTime |
DeadBoat
TimeSensor set_startTime SFTime |
then
|
DeadBoat
TimeSensor fraction_changed SFFloat |
DeadOrient
OrientationInterpolator set_fraction SFFloat |
then
|
DeadOrient
OrientationInterpolator value_changed SFRotation |
BoatTransform
Transform set_rotation SFRotation |
Boat
ProtoInstance UtilityBoat |
No direct ROUTE connection found for events to/from this node. This ProtoInstance contains SFNode/MFNode fieldValue declarations with direct access to other nodes, and thus has potential to produce run-time animation. |
<!--
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)
<ProtoInstance name='ProtoName'>
<field
name='fieldName'/> </ProtoInstance>
-->
<!--
For additional help information about X3D scenes, please see X3D Tooltips, X3D Resources, and X3D Scene Authoring Hints.
-->