X3D Model Documentation: UtilityBoatPrototype.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=' UtilityBoatPrototype.x3d '/>
  6            <meta name='creatorcontent='James Harney'/>
  7            <meta name='createdcontent='13 December 2001'/>
  8            <meta name='modifiedcontent='20 October 2019'/>
  9            <meta name='descriptioncontent='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='referencecontent=' https://www.web3d.org/x3d/content/examples/Savage/Scenarios/UssColeTerroristAttack/TerroristBoatControlPanel.java '/>
 11            <meta name='referencecontent=' https://www.web3d.org/x3d/content/examples/Savage/Scenarios/UssColeTerroristAttack/TerroristBoatActionInterpreter.java '/>
 12            <meta name='referencecontent=' http://www.foia.navy.mil/usscole/index.html '/>
 13            <meta name='identifiercontent=' https://www.web3d.org/x3d/content/examples/Savage/Scenarios/UssColeTerroristAttack/UtilityBoatPrototype.x3d '/>
 14            <meta name='licensecontent='../../license.html'/>
 15       </head>
<!--

<!--
Event Graph ROUTE Table shows event connections.
-->
<!-- to top DEF nodes index: Boat, BoatPosit, BoatPositClock, BoatTransform, DeadBoat, DeadOrient, REAR, STBD, TEXTURE, Touch

Index for Viewpoint nodes: Viewpoint_1, REAR, STBD

Index for ProtoDeclare definition: UtilityBoat
-->
 16       <Scene>
 17            <WorldInfo title='UtilityBoatPrototype.x3d'/>
 18            <ProtoDeclare name='UtilityBoat'>
 19                 <ProtoInterface>
 20                      <field name='startExplosiontype='SFTimeaccessType='inputOnly'/>
 21                 </ProtoInterface>
 22                 <ProtoBody>
 23                      <Group>
 24                           <Transform>
 25                                <Viewpoint DEF='STBDdescription='Utility Boat stbd Viewjump='falseorientation='1 0 0 -0.2position='5 10 35'/>
 26                                <Viewpoint DEF='REARdescription='Utility Boat Rear Viewjump='falseorientation='0 1 0 -1.57position='-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='BoatPositkey='0.325 0.9 1keyValue='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='BoatPositClockcycleInterval='3.6'>
 30                                <IS>
 31                                     <connect nodeField='startTimeprotoField='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='DeadBoatcycleInterval='5'/>
 35 
                         <!-- ROUTE information for DeadOrient node:  [from DeadBoat.fraction_changed to set_fraction ] [from value_changed to BoatTransform.set_rotation ] -->
                         <OrientationInterpolator DEF='DeadOrientkey='0.4 0.9 1keyValue='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='falsecreaseAngle='1.57crossSection='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.00orientation='0 1 0 0 0 1 0 0 0 0 1 -0.5scale='1 1 1 1 1 .1solid='falsespine='0 0 0 7.8842 0 0 10.7 0.25 0'/>
 40                                          <Appearance>
 41                                               <Material diffuseColor='.9 .9 .9shininess='.1'/>
 42                                               <ImageTexture DEF='TEXTURE'   url=' "../../Scenarios/UssColeTerroristAttack/RedYellowTexture.jpg " "RedYellowTexture.jpg " "https://www.web3d.org/x3d/content/examples/Savage/Scenarios/UssColeTerroristAttack/RedYellowTexture.jpg " '/>
 43                                          </Appearance>
 44                                     </Shape>
 45                                     <Shape>
 46                                          <Extrusion creaseAngle='1.57crossSection='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.00scale='1 1 1 1solid='falsespine='0 0 0 .1 0 0'/>
 47                                          <Appearance>
 48                                               <Material diffuseColor='.9 .9 .9shininess='.1'/>
 49                                               <ImageTexture   url=' "../../Scnarios/UssColeTerroristAttack/RedYellowTextureRotated.gif " "RedYellowTextureRotated.gif " "https://www.web3d.org/x3d/content/examples/Savage/Scenarios/UssColeTerroristAttack/RedYellowTextureRotated.gif " '/>
 50                                          </Appearance>
 51                                     </Shape>
 52                                     <Shape>
 53                                          <Extrusion creaseAngle='1.57crossSection='0.10 0.96 0.10 -0.96scale='1 1 1 1 1 .1solid='falsespine='.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='falsecoordIndex='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='10type='"EXAMINE" "FLY" "ANY"visibilityLimit='7000'/>
 79            <Background groundAngle='1.309 1.570796groundColor='0.1 0.1 0 0.4 0.25 0.2 0.6 0.6 0.6skyAngle='1.309 1.571skyColor='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='UtilityBoatDEF='Boat'/>
 81            <Viewpoint description='Utility Boat Viewjump='falseorientation='1 0 0 -0.2position='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 shows event connections.
-->
<!-- to top DEF nodes index: Boat, BoatPosit, BoatPositClock, BoatTransform, DeadBoat, DeadOrient, REAR, STBD, TEXTURE, Touch

Index for Viewpoint nodes: Viewpoint_1, REAR, STBD

Index for ProtoDeclare definition: UtilityBoat
-->
X3D Tooltips element index: Appearance, Background, connect, Coordinate, Extrusion, field, Group, head, ImageTexture, IndexedFaceSet, IS, Material, meta, NavigationInfo, OrientationInterpolator, PositionInterpolator, ProtoBody, ProtoDeclare, ProtoInstance, ProtoInterface, ROUTE, Scene, Shape, 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 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

ROUTE
event to
(1)
Boat
ProtoInstance
startExplosion
SFTime

BoatPositClock
TimeSensor
fraction_changed
SFFloat

ROUTE
event to
(1)
BoatPosit
PositionInterpolator
set_fraction
SFFloat
then
 
 
 
BoatPosit
PositionInterpolator
value_changed
SFVec3f

ROUTE
event to
(2)
BoatTransform
Transform
set_translation
SFVec3f
BoatPositClock
TimeSensor
startTime
SFTime

ROUTE
event to
(1)
DeadBoat
TimeSensor
set_startTime
SFTime
then
 
 
 
DeadBoat
TimeSensor
fraction_changed
SFFloat

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

ROUTE
event to
(3)
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. 

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/Savage/Scenarios/UssColeTerroristAttack/UtilityBoatPrototypeIndex.html -->
<!-- Version control at
https://sourceforge.net/p/x3d/code/HEAD/tree/www.web3d.org/x3d/content/examples/Savage/Scenarios/UssColeTerroristAttack/UtilityBoatPrototype.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)
    <ProtoInstance name='ProtoName'> <field name='fieldName'/> </ProtoInstance> -->

to top <!-- For additional help information about X3D scenes, please see X3D Tooltips, X3D Resources, and X3D Scene Authoring Hints. -->