X3D Model Documentation: Bushmaster.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='Bushmaster.x3d'/>
  6            <meta name='descriptioncontent='Boeing Bushmaster II 30mm AAAV gun'/>
  7            <meta name='creatorcontent='William Geissler'/>
  8            <meta name='createdcontent='21 January 2001'/>
  9            <meta name='modifiedcontent='20 October 2019'/>
 10            <meta name='identifiercontent='https://savage.nps.edu/Savage/GroundVehicles/MEFFV/Bushmaster.x3d'/>
 11            <meta name='generatorcontent='X3D-Edit 3.2, https://savage.nps.edu/X3D-Edit'/>
 12            <meta name='licensecontent='../../license.html'/>
 13       </head>
<!--

<!--
Event Graph ROUTE Table shows event connections.
-->
<!-- to top Index for DEF nodes: Bushmaster, CLOCK, Coax-Barrel, Coax-Flash-Suppressor, Coaxial-Gun, FireSensor, FlashSuppressor, GunBarrel, Gun-System, Mount, PROJECTILE, PROJECTILEPATH, Source
-->
 14       <Scene>
 15            <WorldInfo info='"AAAV 30mm cannon"title='Bushmaster II'/>
 16            <Transform DEF='Bushmasterrotation='1 0 0 1.57'>
 17                 <Transform DEF='Coaxial-Guntranslation='0.5 0.5 0.5'>
 18                      <Transform translation='0.25 2 -1'>
 19                           <Shape DEF='Coax-Barrel'>
 20                                <Cylinder radius='0.1'/>
 21                                <Appearance>
 22                                     <Material diffuseColor='0.15 0.25 0.05'/>
 23                                </Appearance>
 24                           </Shape>
 25                      </Transform>
 26                      <Transform scale='0.9 0.9 0.9translation='0.25 3.18 -1'>
 27                           <Group DEF='Coax-Flash-Suppressor'>
 28                                <Shape>
 29                                     <Appearance>
 30                                          <Material diffuseColor='0.2 0.2 0.2'/>
 31                                     </Appearance>
 32                                     <Extrusion ccw='falsecreaseAngle='0.785crossSection='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.00scale='.125 .125 .125 .125spine='0.0 -0.2 0.0 0.0 0.2 0.0'/>
 33                                </Shape>
 34                                <Transform translation='0 -0.24 0'>
 35                                     <Shape>
 36                                          <Cylinder bottom='falseheight='0.1radius='0.07side='false'/>
 37                                          <Appearance>
 38                                               <Material diffuseColor='0 0 0'/>
 39                                          </Appearance>
 40                                     </Shape>
 41                                </Transform>
 42                           </Group>
 43                      </Transform>
 44                 </Transform>
 45                 <Group DEF='Gun-System'>
 46                      <Shape>
 47                           <Box/>
 48                           <Appearance>
 49                                <ImageTexture   url=' "green1.jpg " "https://savage.nps.edu/Savage/GroundVehicles/MEFFV/green1.jpg " '/>
 50                           </Appearance>
 51                      </Shape>
 52                      <Transform translation='0 2 0'>
 53                           <Shape DEF='Mount'>
 54                                <Cone bottom='falsebottomRadius='0.5height='4'/>
 55                                <Appearance>
 56                                     <Material diffuseColor='0.15 0.25 0.05'/>
 57                                </Appearance>
 58                           </Shape>
 59                      </Transform>
 60                      <Transform scale='1 6 1translation='0 5.3 0'>
 61                           <Shape DEF='GunBarrel'>
 62                                <Cylinder bottom='falseheight='1radius='.1'/>
 63                                <Appearance>
 64                                     <Material diffuseColor='0.15 0.25 0.05'/>
 65                                </Appearance>
 66                           </Shape>
 67                      </Transform>
 68                      <Transform translation='0 8.5 0'>
 69                           <Group DEF='FlashSuppressor'>
 70                                <Shape>
 71                                     <Appearance>
 72                                          <Material diffuseColor='0.2 0.2 0.2'/>
 73                                     </Appearance>
 74                                     <Extrusion ccw='falsecreaseAngle='0.785crossSection='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.00scale='.125 .125 .125 .125spine='0.0 -0.2 0.0 0.0 0.2 0.0'/>
 75                                </Shape>
 76                                <Transform translation='0 -0.24 0'>
 77                                     <Shape>
 78                                          <Cylinder bottom='falseheight='0.1radius='0.07side='false'/>
 79                                          <Appearance>
 80                                               <Material diffuseColor='0 0 0'/>
 81                                          </Appearance>
 82                                     </Shape>
 83                                </Transform>
 84                           </Group>
 85                      </Transform>
 86                 </Group>
 87                 <Sound location='0 0 8.5maxBack='100maxFront='100minBack='0minFront='0'>
 88 
                    <!-- ROUTE information for Source node:  [from FireSensor.touchTime to set_startTime ] -->
                    <AudioClip DEF='Source'   url=' "tone1.wav" "https://savage.nps.edu/Savage/AmphibiousVehicles/AAAV/tone1.wav" '/>
 89                 </Sound>
 90 
               <!-- ROUTE information for FireSensor node:  [from touchTime to CLOCK.set_startTime ] [from touchTime to Source.set_startTime ] -->
               <TouchSensor DEF='FireSensordescription='click to fire'/>
 91 
               <!-- ROUTE information for CLOCK node:  [from FireSensor.touchTime to set_startTime ] [from fraction_changed to PROJECTILEPATH.set_fraction ] -->
               <TimeSensor DEF='CLOCK'/>
 92            </Transform>
 93 
          <!-- ROUTE information for PROJECTILE node:  [from PROJECTILEPATH.value_changed to set_translation ] -->
          <Transform DEF='PROJECTILErotation='1 0 0 1.57scale='.1 .1 .1'>
 94                 <Inline   url=' "HotLead.x3d" "https://savage.nps.edu/Savage/AmphibiousVehicles/AAAV/HotLead.x3d" "HotLead.wrl" "https://savage.nps.edu/Savage/AmphibiousVehicles/AAAV/HotLead.wrl" '/>
 95 
               <!-- ROUTE information for PROJECTILEPATH node:  [from CLOCK.fraction_changed to set_fraction ] [from value_changed to PROJECTILE.set_translation ] -->
               <PositionInterpolator DEF='PROJECTILEPATHkey='0.00 0.00 0.02 0.04 0.06 0.08 0.10 0.12 0.14 0.16 0.18 0.18 0.20 0.20 0.22 0.24 0.26 0.28 0.30 0.32 0.34 0.36 0.38 0.38 0.40 0.40 0.42 0.44 0.46 0.48 0.50 0.52 0.54 0.56 0.58 0.58 0.60 0.60 0.62 0.64 0.66 0.68 0.70 0.72 0.74 0.76 0.78 0.78 0.80 0.80 0.82 0.84 0.86 0.88 0.90 0.92 0.94 0.96 0.98 0.98keyValue='0.0 0.0 0.0 0.0 0.0 9.0 0.0 0.0 24.0 0.0 0.0 36.0 0.0 0.0 48.0 0.0 0.0 60.0 0.0 0.0 72.0 0.0 0.0 84.0 0.0 0.0 96.0 0.0 0.0 108.0 0.0 0.0 120.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 9.0 0.0 0.0 24.0 0.0 0.0 36.0 0.0 0.0 48.0 0.0 0.0 60.0 0.0 0.0 72.0 0.0 0.0 84.0 0.0 0.0 96.0 0.0 0.0 108.0 0.0 0.0 120.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 9.0 0.0 0.0 24.0 0.0 0.0 36.0 0.0 0.0 48.0 0.0 0.0 60.0 0.0 0.0 72.0 0.0 0.0 84.0 0.0 0.0 96.0 0.0 0.0 108.0 0.0 0.0 120.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 9.0 0.0 0.0 24.0 0.0 0.0 36.0 0.0 0.0 48.0 0.0 0.0 60.0 0.0 0.0 72.0 0.0 0.0 84.0 0.0 0.0 96.0 0.0 0.0 108.0 0.0 0.0 120.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 9.0 0.0 0.0 24.0 0.0 0.0 36.0 0.0 0.0 48.0 0.0 0.0 60.0 0.0 0.0 72.0 0.0 0.0 84.0 0.0 0.0 96.0 0.0 0.0 108.0 0.0 0.0 120.0 0.0 0.0 0.0'/>
 96            </Transform>
 97            < ROUTE  fromNode='FireSensor' fromField='touchTime' toNode='CLOCK' toField='set_startTime'/>
 98            < ROUTE  fromNode='CLOCK' fromField='fraction_changed' toNode='PROJECTILEPATH' toField='set_fraction'/>
 99            < ROUTE  fromNode='PROJECTILEPATH' fromField='value_changed' toNode='PROJECTILE' toField='set_translation'/>
100            < ROUTE  fromNode='FireSensor' fromField='touchTime' toNode='Source' toField='set_startTime'/>
101       </Scene>
102  </X3D>
<!--

<!--
Event Graph ROUTE Table shows event connections.
-->
<!-- to top Index for DEF nodes: Bushmaster, CLOCK, Coax-Barrel, Coax-Flash-Suppressor, Coaxial-Gun, FireSensor, FlashSuppressor, GunBarrel, Gun-System, Mount, PROJECTILE, PROJECTILEPATH, Source
-->
X3D Tooltips element index: Appearance, AudioClip, Box, Cone, Cylinder, Extrusion, Group, head, ImageTexture, Inline, Material, meta, PositionInterpolator, ROUTE, Scene, Shape, Sound, TimeSensor, TouchSensor, Transform, WorldInfo, X3D, plus documentation for accessType definitions, type definitions, XML data types, and field types

Event Graph ROUTE Table entries with 4 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.

FireSensor
TouchSensor
touchTime
SFTime

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

ROUTE
event to
(2)
PROJECTILEPATH
PositionInterpolator
set_fraction
SFFloat
then
 
 
 
PROJECTILEPATH
PositionInterpolator
value_changed
SFVec3f

ROUTE
event to
(3)
PROJECTILE
Transform
set_translation
SFVec3f
FireSensor
TouchSensor
touchTime
SFTime

ROUTE
event to
(1)
Source
AudioClip
set_startTime
SFTime


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://savage.nps.edu/Savage/GroundVehicles/MEFFV/BushmasterIndex.html -->
<!-- Version control at
https://gitlab.nps.edu/Savage/Savage/GroundVehicles/MEFFV/Bushmaster.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)
-->

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