X3D Model Documentation: Turret.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=' Turret.x3d '/>
  6            <meta name='descriptioncontent='AAAV Gun Turret'/>
  7            <meta name='creatorcontent='William Geissler'/>
  8            <meta name='createdcontent='27 January 2001'/>
  9            <meta name='modifiedcontent='20 October 2019'/>
 10            <meta name='identifiercontent=' https://www.web3d.org/x3d/content/examples/Savage/AmphibiousVehicles/AAAV/Turret.x3d '/>
 11            <meta name='generatorcontent='X3D-Edit 3.2, https://www.web3d.org/x3d/tools/X3D-Edit'/>
 12            <meta name='licensecontent='../../license.html'/>
 13       </head>
<!--

<!--
Event Graph ROUTE Table shows event connections.
-->
<!-- to top DEF nodes index: FIRST_CYLINDERSENSOR, Gun, Turret, TurretBody

Index for Viewpoint nodes: Viewpoint_1, Viewpoint_2
-->
 14       <Scene>
 15            <WorldInfo info='"AAAV 30mm cannon turret"title='AAAV Turret'/>
 16            <Viewpoint description='Entryorientation='0 -1 0 1.57position='-40 0 0'/>
 17            <Transform rotation='0 1 0 1.57translation='14 12 0'>
 18                 <Viewpoint description='Atop Turretorientation='1 0 0 -.5position='0 0 0'/>
 19            </Transform>
 20 
          <!-- ROUTE information for Turret node:  [from FIRST_CYLINDERSENSOR.rotation_changed to set_rotation ] -->
          <Transform DEF='Turret'>
 21                 <Transform DEF='TurretBody'>
 22                      <Shape>
 23                           <Appearance>
 24                                <ImageTexture   url=' "cammie3.jpg " "https://www.web3d.org/x3d/content/examples/Savage/AmphibiousVehicles/AAAV/cammie3.jpg " '/>
 25                           </Appearance>
 26                           <IndexedFaceSet convex='falsecoordIndex='0 9 8 7 6 5 4 3 2 1 0 -1 10 11 12 13 14 15 16 17 18 10 -1 2 3 13 12 2 -1 1 2 12 11 1 -1 0 1 11 10 0 -1 9 0 10 18 9 -1 8 9 18 17 8 -1 7 8 17 16 7 -1 6 7 16 15 6 -1 3 4 5 6 20 19 3 -1 14 13 3 19 14 -1 15 14 19 6 15 -1'>
 27                                <Coordinate point='2.0 0.0 -2.7 -1.4 0.0 -2.7 -3.0 0.0 -1.9 -3.0 0.0 0.7 -3.0 0.0 1.7 -1.4 0.0 2.7 0.0 0.0 2.7 2.0 0.0 2.7 3.0 0.0 1.7 3.0 0.0 -1.7 1.9 1.4 -2.5 -1.2 1.4 -2.5 -2.2 1.4 -2.0 -2.2 1.4 0.7 0.0 1.4 0.7 0.0 1.4 2.5 1.9 1.4 2.5 2.8 1.4 1.5 2.8 1.4 -1.5 0.0 0.5 0.7 0.0 0.5 2.5 -2.2 0.0 0.7'/>
 28                           </IndexedFaceSet>
 29                      </Shape>
 30                      <Shape>
 31                           <Extrusion ccw='falsecrossSection='0.4 1.0 -0.4 1.0 -1.0 0.4 -1.0 -0.4 -0.4 -1.0 0.4 -1.0 1.0 -0.4 1.0 0.4 0.4 1.0spine='0.6 1.4 -0.9 0.6 1.7 -0.9'/>
 32                           <Appearance>
 33                                <Material ambientIntensity='0.26diffuseColor='0.15 0.05 0.0shininess='0.08specularColor='0.75 0.33 0.0'/>
 34                           </Appearance>
 35                      </Shape>
 36                      <Transform translation='0.6 1.75 -0.9'>
 37                           <Shape>
 38                                <Cylinder height='0.1radius='1.1'/>
 39                                <Appearance>
 40                                     <ImageTexture   url=' "cammie2.jpg " "https://www.web3d.org/x3d/content/examples/Savage/AmphibiousVehicles/AAAV/cammie2.jpg " '/>
 41                                </Appearance>
 42                           </Shape>
 43                      </Transform>
 44                      <Transform translation='0.0 1.0 1.6'>
 45                           <Shape>
 46                                <Box size='0.2 0.6 1.4'/>
 47                                <Appearance>
 48                                     <Material ambientIntensity='0.3diffuseColor='0.15 0.15 0.25shininess='0.1specularColor='0.35 0.35 0.4'/>
 49                                </Appearance>
 50                           </Shape>
 51                      </Transform>
 52                 </Transform>
 53                 <Transform DEF='Gunrotation='0 1 0 -1.57scale='0.6 0.6 0.6translation='-2.4 0.7 0'>
 54                      <Inline   url=' "Bushmaster.x3d" "https://www.web3d.org/x3d/content/examples/Savage/AmphibiousVehicles/AAAV/Bushmaster.x3d" "Bushmaster.wrl" "https://www.web3d.org/x3d/content/examples/Savage/AmphibiousVehicles/AAAV/Bushmaster.wrl" '/>
 55                 </Transform>
 56 
               <!-- ROUTE information for FIRST_CYLINDERSENSOR node:  [from rotation_changed to Turret.set_rotation ] -->
               <CylinderSensor DEF='FIRST_CYLINDERSENSORdescription='select to rotatemaxAngle='1.57minAngle='-1.57'/>
 57            </Transform>
 58            < ROUTE  fromNode='FIRST_CYLINDERSENSOR' fromField='rotation_changed' toNode='Turret' toField='set_rotation'/>
 59       </Scene>
 60  </X3D>
<!--

<!--
Event Graph ROUTE Table shows event connections.
-->
<!-- to top DEF nodes index: FIRST_CYLINDERSENSOR, Gun, Turret, TurretBody

Index for Viewpoint nodes: Viewpoint_1, Viewpoint_2
-->
X3D Tooltips element index: Appearance, Box, Coordinate, Cylinder, CylinderSensor, Extrusion, head, ImageTexture, IndexedFaceSet, Inline, Material, meta, ROUTE, Scene, Shape, Transform, Viewpoint, 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.

FIRST_CYLINDERSENSOR
CylinderSensor
rotation_changed
SFRotation

ROUTE
event to
(1)
Turret
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/AmphibiousVehicles/AAAV/TurretIndex.html -->
<!-- Version control at
https://sourceforge.net/p/x3d/code/HEAD/tree/www.web3d.org/x3d/content/examples/Savage/AmphibiousVehicles/AAAV/Turret.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. -->