X3D Model Documentation: DDG51gun.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=' DDG51gun.x3d '/>
  6            <meta name='descriptioncontent='5-inch 54 gun from Cruiser model on SAVAGE'/>
  7            <meta name='creatorcontent='James Harney'/>
  8            <meta name='createdcontent='1 August 2001'/>
  9            <meta name='modifiedcontent='7 April 2024'/>
 10            <meta name='contributorcontent='LT Josh Hansen'/>
 11            <meta name='modifiedcontent='7 April 2024'/>
 12            <meta name='referencecontent=' http://www.usni.org/Proceedings/Articles01/PROphotocontest4.html '/>
 13            <meta name='referencecontent=' https://www.fas.org/man/dod-101/sys/ship/weaps/mk-42.htm '/>
 14            <meta name='identifiercontent=' https://www.web3d.org/x3d/content/examples/Savage/ShipsMilitary/DD963SpruanceUnitedStates/DDG51gun.x3d '/>
 15            <meta name='generatorcontent='X3D-Edit 3.2, https://www.web3d.org/x3d/tools/X3D-Edit'/>
 16            <meta name='licensecontent='../../license.html'/>
 17       </head>
<!--

<!--
Event Graph ROUTE Table shows event connections.
-->
<!-- to top DEF nodes index: BarrelSensor, FIVEINCHGUN, FRONTGUN, FrontGunBottom1, FrontGunBottom2, FrontGunFire, Gun_barrel, GunBody, GunRotation
-->
 18       <Scene>
 19            <WorldInfo title='DDG51gun.x3d'/>
 20            <NavigationInfo/>
 21            <Transform>
 22                 <Transform rotation='0 0 1 -.06'>
 23                      <Group DEF='FIVEINCHGUN'>
 24                           <Transform DEF='FRONTGUNrotation='1 0.05 0 -1.57scale='1.3 1.3 1.3'>
 25                                <Transform DEF='FrontGunBottom1rotation='1 0 0 1.57translation='0 2.2 -2.2'>
 26                                     <Shape>
 27                                          <Appearance>
 28                                               <Material diffuseColor='.7 .7 .7shininess='.3'/>
 29                                          </Appearance>
 30                                          <Cylinder height='0.25radius='4'/>
 31                                     </Shape>
 32                                </Transform>
 33                                <Transform DEF='FrontGunBottom2rotation='1 0 0 1.57translation='0 2.0 -2.0'>
 34                                     <Shape>
 35                                          <Appearance>
 36                                               <Material diffuseColor='.7 .7 .7shininess='.3'/>
 37                                          </Appearance>
 38                                          <Cylinder height='0.5radius='1.25'/>
 39                                     </Shape>
 40                                </Transform>
 41                                <Transform DEF='GunRotation'>
 42                                     <Transform DEF='GunBodyscale='0.5 0.5 0.7'>
 43                                          <Shape>
 44                                               <Appearance>
 45                                                    <Material diffuseColor='.7 .7 .7shininess='.3'/>
 46                                               </Appearance>
 47                                               <Extrusion creaseAngle='1.5crossSection='-6.0 0.0 -5.9 0.7 -5.7 1.2 -5.3 1.7 -5 2.1 -4 2.2 -3 2.3 -2 2.4 0 2.5 1 2.6 2 2.65 3 2.25 4 1.7 5 1 6 0 7 -2.5 -5.5 -2.5 -6 0spine='0 1 0 0 7 0'/>
 48                                          </Shape>
 49                                     </Transform>
 50 
                                   <!-- ROUTE information for Gun_barrel node:  [from BarrelSensor.rotation_changed to set_rotation ] -->
                                   <Transform DEF='Gun_barrel'>
 51                                          <Transform DEF='FrontGunFirerotation='-0.3 0 1 1.57translation='4 2.1 1'>
 52                                               <Shape>
 53                                                    <Appearance>
 54                                                         <Material diffuseColor='.7 .7 .7shininess='.3'/>
 55                                                    </Appearance>
 56                                                    <Cylinder bottom='falseheight='10radius='0.2top='false'/>
 57                                               </Shape>
 58                                          </Transform>
 59 
                                        <!-- ROUTE information for BarrelSensor node:  [from rotation_changed to Gun_barrel.set_rotation ] -->
                                        <CylinderSensor DEF='BarrelSensormaxAngle='.4minAngle='-.3'/>
 60                                     </Transform>
 61                                </Transform>
 62                           </Transform>
 63                      </Group>
 64                 </Transform>
 65            </Transform>
 66            < ROUTE  fromNode='BarrelSensor' fromField='rotation_changed' toNode='Gun_barrel' toField='set_rotation'/>
 67       </Scene>
 68  </X3D>
<!--

<!--
Event Graph ROUTE Table shows event connections.
-->
<!-- to top DEF nodes index: BarrelSensor, FIVEINCHGUN, FRONTGUN, FrontGunBottom1, FrontGunBottom2, FrontGunFire, Gun_barrel, GunBody, GunRotation
-->
X3D Tooltips element index: Appearance, Cylinder, CylinderSensor, Extrusion, Group, head, Material, meta, NavigationInfo, ROUTE, Scene, Shape, Transform, WorldInfo, X3D, plus documentation for accessType definitions, type definitions, XML data types, and field types

Event Graph ROUTE Table with 1 ROUTE connection 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.

BarrelSensor
CylinderSensor
rotation_changed
SFRotation

ROUTE
event to
(1)
Gun_barrel
Transform
set_rotation
SFRotation

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/ShipsMilitary/DD963SpruanceUnitedStates/DDG51gunIndex.html -->
<!-- Version control at
https://sourceforge.net/p/x3d/code/HEAD/tree/www.web3d.org/x3d/content/examples/Savage/ShipsMilitary/DD963SpruanceUnitedStates/DDG51gun.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. -->