X3D Model Documentation: RHIBPrototype.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=' RHIBPrototype.x3d '/>
  6            <meta name='creatorcontent='James Harney'/>
  7            <meta name='createdcontent='12 November 2001'/>
  8            <meta name='modifiedcontent='20 October 2019'/>
  9            <meta name='descriptioncontent='Simple model of US Navy non-Spec War RHIB boat. Aligned down positive x axis as required for Savage vehicle models.'/>
 10            <meta name='referencecontent='RHIBBoatControlPanel.bat'/>
 11            <meta name='referencecontent=' http://www.foia.navy.mil/usscole/index.html '/>
 12            <meta name='referencecontent=' https://www.fas.org/man/dod-101/navy/docs/swos/eng/62b-416/sld005.htm '/>
 13            <meta name='referencecontent=' https://www.fas.org/man/dod-101/navy/docs/swos/eng/62b-416/sld006.htm '/>
 14            <meta name='referencecontent=' https://www.web3d.org/x3d/content/examples/Savage/ShipsMilitary/FrigateYavuzTurkey/TurkishFlag.x3d '/>
 15            <meta name='identifiercontent=' https://www.web3d.org/x3d/content/examples/Savage/Scenarios/UssColeTerroristAttack/RHIBPrototype.x3d '/>
 16            <meta name='generatorcontent='X3D-Edit 3.2, https://www.web3d.org/x3d/tools/X3D-Edit'/>
 17            <meta name='licensecontent='../../license.html'/>
 18       </head>
<!--

<!--
Event Graph ROUTE Table shows event connections.
-->
<!-- to top DEF nodes index: Boat, BoatPosit, BoatPositClock, BoatTransform, Flag, FlagCoor, FRONT, MoveFlag, PORT, REAR, STBD, timer, Touch

Index for Viewpoint nodes: Viewpoint_1, FRONT, PORT, REAR, STBD

Index for ProtoDeclare definition: RHIB
-->
 19       <Scene>
 20            <WorldInfo title='RHIBPrototype.x3d'/>
 21            <ProtoDeclare name='RHIBappinfo='Rigid Hull Inflatable Boat'>
 22                 <ProtoInterface>
 23                      <field name='startExplosiontype='SFTimeaccessType='inputOnly'/>
 24                 </ProtoInterface>
 25                 <ProtoBody>
 26                      <Group>
 27                           <Transform>
 28                                <Viewpoint DEF='STBDdescription='RHIB Boat stbd Viewjump='falseorientation='1 0 0 -0.2position='0 10 25'/>
 29                                <Viewpoint DEF='FRONTcenterOfRotation='0 8 0description='RHIB Boat Front Viewjump='falseorientation='0 1 0 1.57position='27 8 0'/>
 30                                <Viewpoint DEF='PORTcenterOfRotation='0 8 0description='RHIB Boat Port Viewjump='falseorientation='0 1 0 3.14position='0 8 -25'/>
 31                                <Viewpoint DEF='REARcenterOfRotation='0 8 0description='RHIB Boat Rear Viewjump='falseorientation='0 1 0 -1.57position='-25 8 0'/>
 32                           </Transform>
 33 
                         <!-- ROUTE information for BoatPositClock node:  [from fraction_changed to BoatPosit.set_fraction ] -->
                         <TimeSensor DEF='BoatPositClockcycleInterval='1.8'>
 34                                <IS>
 35                                     <connect nodeField='startTimeprotoField='startExplosion'/>
 36                                </IS>
 37                           </TimeSensor>
 38 
                         <!-- ROUTE information for BoatPosit node:  [from BoatPositClock.fraction_changed to set_fraction ] [from value_changed to BoatTransform.set_translation ] -->
                         <PositionInterpolator DEF='BoatPositkey='.9 1keyValue='0 0 0 0 -15 0'/>
 39 
                         <!-- ROUTE information for BoatTransform node:  [from BoatPosit.value_changed to set_translation ] -->
                         <Transform DEF='BoatTransform'>
 40                                <Transform>
 41                                     <!-- Hull -->
 42                                     <Shape>
 43                                          <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.00orientation='0 1 0 0 0 1 0 0 0 0 1 -0.5scale='1.25 2 1.25 2 1.25 .1solid='falsespine='0 0 0 5.775 0 0 7.9 0.25 0'/>
 44                                          <Appearance>
 45                                               <Material diffuseColor='.9 .9 .9shininess='1'/>
 46                                          </Appearance>
 47                                     </Shape>
 48                                     <!-- Deck -->
 49                                     <Shape>
 50                                          <Extrusion creaseAngle='1.57crossSection='0.10 0.96 0.10 -0.96scale='1 1.75 1 1.75 1 .1solid='falsespine='.1 -.5 0 5.6 -.5 0 7.8 0.25 0'/>
 51                                          <Appearance>
 52                                               <Material diffuseColor='.05 .05 .05emissiveColor='.05 .05 .05'/>
 53                                          </Appearance>
 54                                     </Shape>
 55                                     <!-- Air cushion -->
 56                                     <Shape>
 57                                          <Appearance>
 58                                               <Material diffuseColor='.7 .7 .7shininess='.3'/>
 59                                          </Appearance>
 60                                          <Extrusion creaseAngle='.785crossSection='1.00 0 .92 -.38 .71 -.71 .38 -.92 .00 -1.00 -.38 -.92 -.71 -.71 -.92 -.38 -1.00 -0.00 -.92 .38 -.71 .71 -.38 .92 0.00 1.00 .38 .92 .71 .71 .92 .38 1.00 0.00scale='.1 .1 .4 .4 .4 .4 .4 .4 .4 .4 .4 .4 .4 .4 .1 .1solid='falsespine='-.66 0 -1.75 0 0 -1.75 5.775 0 -1.75 7.62 .25 -.25 7.62 .25 .25 5.775 0 1.75 0 0 1.75 -.66 0 1.75'/>
 61                                     </Shape>
 62                                </Transform>
 63                                <!-- Driving console -->
 64                                <Transform translation='0 -.2 0'>
 65                                     <Shape>
 66                                          <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'>
 67                                               <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'/>
 68                                          </IndexedFaceSet>
 69                                          <Appearance>
 70                                               <Material diffuseColor='.8 .8 .8'/>
 71                                          </Appearance>
 72                                     </Shape>
 73                                </Transform>
 74                                <!-- Flag code, based off Turkish Frigate in meta ref. -->
 75                                <Transform rotation='0 0 1 .2'>
 76                                     <Group>
 77                                          <Transform rotation='0 1 0 3.14scale='.2 .2 .2translation='0 1.0 0.0'>
 78                                               <Shape>
 79                                                    <IndexedFaceSet DEF='Flagconvex='falsesolid='falsecoordIndex='0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 0'>
 80 
                                                       <!-- ROUTE information for FlagCoor node:  [from MoveFlag.value_changed to set_point ] -->
                                                       <Coordinate DEF='FlagCoorpoint='0.0 0.0 0.0 0.5 0.0 0.0 1.0 0.0 0.0 1.5 0.0 0.0 2.0 0.0 0.0 2.5 0.0 0.0 3.0 0.0 0.0 3.5 0.0 0.0 4.0 0.0 0.0 4.5 0.0 0.0 5.0 0.0 0.0 5.5 0.0 0.0 6.0 0.0 0.0 6.5 0.0 0.0 7.0 0.0 0.0 7.5 0.0 0.0 7.5 0.5 0.0 7.5 1.0 0.0 7.5 1.5 0.0 7.5 2.0 0.0 7.5 2.5 0.0 7.5 3.0 0.0 7.5 3.5 0.0 7.5 4.0 0.0 7.5 4.5 0.0 7.5 5.0 0.0 7.0 5.0 0.0 6.5 5.0 0.0 6.0 5.0 0.0 5.5 5.0 0.0 5.0 5.0 0.0 4.5 5.0 0.0 4.0 5.0 0.0 3.5 5.0 0.0 3.0 5.0 0.0 2.5 5.0 0.0 2.0 5.0 0.0 1.5 5.0 0.0 1.0 5.0 0.0 0.5 5.0 0.0 0.0 5.0 0.0 0.0 4.5 0.0 0.0 4.0 0.0 0.0 3.5 0.0 0.0 3.0 0.0 0.0 2.5 0.0 0.0 2.0 0.0 0.0 1.5 0.0 0.0 1.0 0.0 0.0 0.5 0.0'/>
 81                                                    </IndexedFaceSet>
 82                                                    <Appearance>
 83                                                         <Material shininess='0.8'/>
 84                                                         <ImageTexture repeatS='falserepeatT='false'   url=' "UsaFlag.png " "UsaFlag.gif " "https://www.web3d.org/x3d/content/examples/Savage/Scenarios/UssColeTerroristAttack/UsaFlag.png " "https://www.web3d.org/x3d/content/examples/Savage/Scenarios/UssColeTerroristAttack/UsaFlag.gif " '/>
 85                                                         <TextureTransform scale='1.0 1.3translation='0.0 0.05'/>
 86                                                    </Appearance>
 87                                               </Shape>
 88                                               <Shape>
 89                                                    <IndexedFaceSet solid='falsecoordIndex='0 1 2 3 0'>
 90                                                         <Coordinate point='-0.3 -5.0 0.0 0.0 -5.0 0.0 0.0 5.0 0.0 -0.3 5.0 0.0'/>
 91                                                    </IndexedFaceSet>
 92                                                    <Appearance>
 93                                                         <Material diffuseColor='.7 .7 .7'/>
 94                                                    </Appearance>
 95                                               </Shape>
 96 
                                             <!-- ROUTE information for timer node:  [from fraction_changed to MoveFlag.set_fraction ] -->
                                             <TimeSensor DEF='timercycleInterval='4.0loop='true'/>
 97 
                                             <!-- ROUTE information for MoveFlag node:  [from timer.fraction_changed to set_fraction ] [from value_changed to FlagCoor.set_point ] -->
                                             <CoordinateInterpolator DEF='MoveFlagkey='0.0 0.25 0.5 0.75 1.0keyValue='0.0 0.0 0.0 0.5 0.0 0.87 1.0 0.0 1.0 1.5 0.0 0.87 2.0 0.0 0.0 2.5 0.0 -0.87 3.0 0.0 -1.0 3.5 0.0 -0.87 4.0 0.0 0.0 4.5 0.0 0.87 5.0 0.0 1.0 5.5 0.0 0.87 6.0 0.0 0.0 6.5 0.0 -0.87 7.0 0.0 -1.0 7.5 0.0 -0.87 7.5 0.5 -0.87 7.5 1.0 -0.87 7.5 1.5 -0.87 7.5 2.0 -0.87 7.5 2.5 -0.87 7.5 3.0 -0.87 7.5 3.5 -0.87 7.5 4.0 -0.87 7.5 4.5 -0.87 7.5 5.0 -0.87 7.0 5.0 -1.0 6.5 5.0 -0.87 6.0 5.0 0.0 5.5 5.0 0.87 5.0 5.0 1.0 4.5 5.0 0.87 4.0 5.0 0.0 3.5 5.0 -0.87 3.0 5.0 -1.0 2.5 5.0 -0.87 2.0 5.0 0.0 1.5 5.0 0.87 1.0 5.0 1.0 0.5 5.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.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.5 0.0 0.87 1.0 0.0 1.0 1.5 0.0 0.87 2.0 0.0 0.0 2.5 0.0 -0.87 3.0 0.0 -1.0 3.5 0.0 -0.87 4.0 0.0 0.0 4.5 0.0 0.87 5.0 0.0 1.0 5.5 0.0 0.87 6.0 0.0 0.0 6.5 0.0 -0.87 7.0 0.0 -1.0 7.5 0.0 -0.87 7.5 0.5 -0.87 7.5 1.0 -0.87 7.5 1.5 -0.87 7.5 2.0 -0.87 7.5 2.5 -0.87 7.5 3.0 -0.87 7.5 3.5 -0.87 7.5 4.0 -0.87 7.5 4.5 -0.87 7.5 5.0 -0.87 7.0 5.0 -1.0 6.5 5.0 -0.87 6.0 5.0 0.0 5.5 5.0 0.87 5.0 5.0 1.0 4.5 5.0 0.87 4.0 5.0 0.0 3.5 5.0 -0.87 3.0 5.0 -1.0 2.5 5.0 -0.87 2.0 5.0 0.0 1.5 5.0 0.87 1.0 5.0 1.0 0.5 5.0 0.87 0.0 5.0 0.0 0.0 4.5 0.0 0.0 4.0 0.0 0.0 3.5 0.0 0.0 3.0 0.0 0.0 2.5 0.0 0.0 2.0 0.0 0.0 1.5 0.0 0.0 1.0 0.0 0.0 0.5 0.0 0.0 0.0 0.0 0.0 0.0 0.0'/>
 98                                          </Transform>
 99                                     </Group>
100                                </Transform>
101                           </Transform>
102                           < ROUTE  fromNode='timer' fromField='fraction_changed' toNode='MoveFlag' toField='set_fraction'/>
103                           < ROUTE  fromNode='MoveFlag' fromField='value_changed' toNode='FlagCoor' toField='set_point'/>
104                           < ROUTE  fromNode='BoatPositClock' fromField='fraction_changed' toNode='BoatPosit' toField='set_fraction'/>
105                           < ROUTE  fromNode='BoatPosit' fromField='value_changed' toNode='BoatTransform' toField='set_translation'/>
106                      </Group>
107                 </ProtoBody>
108            </ProtoDeclare>
109            <NavigationInfo speed='10type='"EXAMINE" "FLY" "ANY"visibilityLimit='7000'/>
110            <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'/>
111 
          <!-- ROUTE information for Boat node:  [from Touch.touchTime to startExplosion ] -->
          <ProtoInstance name='RHIBDEF='Boat'/>
112            <Viewpoint description='RHIB Viewjump='falseorientation='1 0 0 -0.2position='0 10 25'/>
113 
          <!-- ROUTE information for Touch node:  [from touchTime to Boat.startExplosion ] -->
          <TouchSensor DEF='Touchdescription='touch to activate'/>
114            < ROUTE  fromNode='Touch' fromField='touchTime' toNode='Boat' toField='startExplosion'/>
115       </Scene>
116  </X3D>
<!--

<!--
Event Graph ROUTE Table shows event connections.
-->
<!-- to top DEF nodes index: Boat, BoatPosit, BoatPositClock, BoatTransform, Flag, FlagCoor, FRONT, MoveFlag, PORT, REAR, STBD, timer, Touch

Index for Viewpoint nodes: Viewpoint_1, FRONT, PORT, REAR, STBD

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

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

timer
TimeSensor
fraction_changed
SFFloat

ROUTE
event to
(1)
MoveFlag
CoordinateInterpolator
set_fraction
SFFloat
then
 
 
 
MoveFlag
CoordinateInterpolator
value_changed
MFVec3f

ROUTE
event to
(2)
FlagCoor
Coordinate
set_point
MFVec3f

      Boat
ProtoInstance
RHIB
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/RHIBPrototypeIndex.html -->
<!-- Version control at
https://sourceforge.net/p/x3d/code/HEAD/tree/www.web3d.org/x3d/content/examples/Savage/Scenarios/UssColeTerroristAttack/RHIBPrototype.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. -->