X3D Model Documentation: Body.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=' Body.x3d '/>
  6            <meta name='descriptioncontent='MEFFV Body'/>
  7            <meta name='creatorcontent='Sean Hynes'/>
  8            <meta name='contributorcontent="This body is modified from William Geissler's AAAV Body"/>
  9            <meta name='createdcontent='9 September 2002'/>
 10            <meta name='modifiedcontent='7 April 2024'/>
 11            <meta name='identifiercontent=' https://www.web3d.org/x3d/content/examples/Savage/GroundVehicles/MEFFV/Body.x3d '/>
 12            <meta name='generatorcontent='X3D-Edit 3.2, https://www.web3d.org/x3d/tools/X3D-Edit'/>
 13            <meta name='licensecontent='../../license.html'/>
 14       </head>
<!--

<!--
Event Graph ROUTE Table shows event connections.
-->
<!-- to top DEF nodes index: Antenna, BACKDOOR, Body, BODYSET, CAMMIE, CAMMIE1, CrewHatch, ENGINE, HATCH, LTANT, RTANT, TRANSOMCYLINDERSENSOR, TransomFlap
-->
 15       <Scene>
 16            <WorldInfo info='"MEFFV Vehicle Body"title='MEFFV Body'/>
 17            <NavigationInfo speed='10'/>
 18            <Transform DEF='Bodyrotation='0 1 0 1.57translation='2.5 1.1 -5.2'>
 19                 <Shape DEF='BODYSET'>
 20                      <!-- This indexedFaceSet is the whole body. -->
 21                      <Appearance>
 22                           <ImageTexture DEF='CAMMIE1'   url=' "../AAAV/cammie1.jpg " "https://www.web3d.org/x3d/content/examples/Savage/AmphibiousVehicles/AAAV/cammie1.jpg " '/>
 23                      </Appearance>
 24                      <IndexedFaceSet convex='falsecreaseAngle='0.05coordIndex='0 1 2 3 4 5 6 7 8 0 -1 9 10 8 7 -1 11 12 10 9 -1 3 14 4 3 -1 3 2 13 14 3 -1 2 1 13 2 -1 15 16 17 18 19 20 21 22 23 15 -1 24 25 17 16 -1 26 27 25 24 -1 21 20 28 21 -1 22 21 28 29 22 -1 23 22 29 23 -1 6 5 19 18 -1 5 4 20 19 -1 4 14 13 1 0 15 23 29 28 20 -1 0 8 10 12 26 24 16 15 0 -1 11 9 7 6 18 17 25 27 11 -1 12 11 27 26 12 -1texCoordIndex='0 1 2 3 4 5 6 7 8 0 -1 9 10 8 7 -1 11 12 10 9 -1 3 14 4 3 -1 3 2 13 14 3 -1 2 1 13 2 -1 15 16 17 18 19 20 21 22 23 15 -1 24 25 17 16 -1 26 27 25 24 -1 21 20 28 21 -1 22 21 28 29 22 -1 23 22 29 23 -1 6 5 19 18 -1 5 4 20 19 -1 4 14 13 1 0 15 23 29 28 20 -1 0 8 10 12 26 24 16 15 0 -1 11 9 7 6 18 17 25 27 11 -1 12 11 27 26 12 -1'>
 25                           <Coordinate point='0.0 0.4 0.0 -1.6 0.4 0.0 -2.4 0.4 0.0 -3.8 0.4 0.0 -5.6 0.4 0.0 -8.0 -0.6 0.0 -10.4 -1.6 0.0 -9.4 -1.6 0.0 -0.4 -1.6 0.0 -9.4 -1.6 -0.2 -0.4 -1.6 -0.2 -8.4 -2.5 -0.8 -0.8 -2.5 -0.8 -1.6 0.4 -1.0 -5.6 0.4 -1.0 0.0 0.4 -5.0 -0.4 -1.6 -5.0 -9.4 -1.6 -5.0 -10.4 -1.6 -5.0 -8.0 -0.6 -5.0 -5.6 0.4 -5.0 -3.8 0.4 -5.0 -2.4 0.4 -5.0 -1.6 0.4 -5.0 -0.4 -1.6 -4.8 -9.4 -1.6 -5.0 -0.8 -2.5 -4.2 -8.4 -2.5 -4.2 -5.6 0.4 -4.0 -1.6 0.4 -4.0'/>
 26                           <TextureCoordinate point='1.00 0.32 0.76 0.32 0.68 0.24 0.40 0.24 0.32 0.32 0.08 0.28 0.00 0.20 0.12 0.00 0.92 0.00 0.12 0.08 0.92 0.08 0.12 0.16 0.92 0.16 0.68 0.32 0.40 0.32 1.00 0.68 0.92 1.00 0.12 1.00 0.00 0.80 0.08 0.72 0.32 0.68 0.40 0.76 0.68 0.76 0.76 0.68 0.92 0.92 0.12 0.92 0.92 0.84 0.12 0.84 0.40 0.68 0.68 0.68'/>
 27                      </IndexedFaceSet>
 28                 </Shape>
 29                 <Transform DEF='HATCHscale='1.5 1.5 1.5translation='-6.2 0.2 -1.5'>
 30                      <Group DEF='CrewHatch'>
 31                           <Shape>
 32                                <Extrusion ccw='falsecrossSection='0.30 0.35 0.20 0.45 -0.20 0.45 -0.45 0.20 -0.45 -0.20 -0.20 -0.45 0.20 -0.45 0.30 -0.35 0.30 0.35spine='0 -0.2 0 0 0.08 0'/>
 33                                <Appearance>
 34 
                                   <!-- ImageTexture CAMMIE is a DEF node that has 2 USE nodes: USE_1, USE_2 -->
                                   <ImageTexture DEF='CAMMIE'   url=' "../AAAV/cammie2.jpg " "https://www.web3d.org/x3d/content/examples/Savage/AmphibiousVehicles/AAAV/cammie2.jpg " '/>
 35                                </Appearance>
 36                           </Shape>
 37                           <Transform translation='0.40 0.05 0.00'>
 38                                <Shape>
 39                                     <Box size='0.2 0.1 0.7'/>
 40                                     <Appearance>
 41                                          <ImageTexture USE='CAMMIE'/>
 42                                     </Appearance>
 43                                </Shape>
 44                           </Transform>
 45                           <Transform rotation='0 1 0 0.785translation='-0.325 0 -0.325'>
 46                                <Shape>
 47                                     <Box size='0.3 0.06 0.05'/>
 48                                     <Appearance>
 49                                          <Material ambientIntensity='0.26diffuseColor='0.20 0.08 0.00shininess='0.08specularColor='0.75 0.33 0.00'/>
 50                                     </Appearance>
 51                                </Shape>
 52                           </Transform>
 53                           <Transform rotation='0 1 0 -0.785translation='-0.325 0 0.325'>
 54                                <Shape>
 55                                     <Box size='0.3 0.06 0.05'/>
 56                                     <Appearance>
 57                                          <Material ambientIntensity='0.26diffuseColor='0.20 0.08 0.00shininess='0.08specularColor='0.75 0.33 0.00'/>
 58                                     </Appearance>
 59                                </Shape>
 60                           </Transform>
 61                           <Transform rotation='0 1 0 1.57translation='-0.45 0 0'>
 62                                <Shape>
 63                                     <Box size='0.3 0.06 0.05'/>
 64                                     <Appearance>
 65                                          <Material ambientIntensity='0.26diffuseColor='0.20 0.08 0.00shininess='0.08specularColor='0.75 0.33 0.00'/>
 66                                     </Appearance>
 67                                </Shape>
 68                           </Transform>
 69                      </Group>
 70                 </Transform>
 71                 <Transform DEF='LTANTtranslation='-2.4 0 -0.5'>
 72 
                    <!-- Group Antenna is a DEF node that has 1 USE node: USE_1 -->
                    <Group DEF='Antenna'>
 73                           <Shape>
 74                                <Cone bottom='falsebottomRadius='0.2height='0.5'/>
 75                                <Appearance>
 76                                     <Material diffuseColor='0.1 0.1 0.1'/>
 77                                </Appearance>
 78                           </Shape>
 79                           <Transform translation='0 1.4 0'>
 80                                <Shape>
 81                                     <Cylinder bottom='falseheight='3radius='0.01'/>
 82                                     <Appearance>
 83                                          <Material diffuseColor='0.1 0.1 0.1'/>
 84                                     </Appearance>
 85                                </Shape>
 86                           </Transform>
 87                      </Group>
 88                 </Transform>
 89                 <Transform DEF='RTANTtranslation='-2.4 0 -4.5'>
 90                      <Group USE='Antenna'/>
 91                 </Transform>
 92                 <Transform DEF='ENGINErotation='0 0 1 .40translation='-6.8 -0.05 -3.5'>
 93                      <!-- Engine jpg -->
 94                      <Shape>
 95                           <Box size='2 0.1 1.5'/>
 96                           <Appearance>
 97                                <ImageTexture   url=' "../AAAV/engine.jpg " "https://www.web3d.org/x3d/content/examples/Savage/AmphibiousVehicles/AAAV/engine.jpg " '/>
 98                           </Appearance>
 99                      </Shape>
100                 </Transform>
101                 <Transform DEF='BACKDOORrotation='1 0 0 -1.57translation='0.03 0 0'>
102                      <!-- Back door (swings open) -->
103 
                    <!-- ROUTE information for TransomFlap node:  [from TRANSOMCYLINDERSENSOR.rotation_changed to set_rotation ] -->
                    <Transform DEF='TransomFlaprotation='0 1 0 0.3scale='0.9 0.9 0.9translation='-0.7 2.5 -2.4'>
104                           <Group>
105                                <Shape>
106                                     <Extrusion convex='falsecrossSection='1.5 2.5 -1.5 2.5 -1.5 0.0 1.5 0.0 1.5 2.5solid='falsespine='0 0 0 0.05 0 0'/>
107                                     <Appearance>
108                                          <ImageTexture USE='CAMMIE'/>
109                                     </Appearance>
110                                </Shape>
111                           </Group>
112 
                         <!-- ROUTE information for TRANSOMCYLINDERSENSOR node:  [from rotation_changed to TransomFlap.set_rotation ] -->
                         <CylinderSensor DEF='TRANSOMCYLINDERSENSORmaxAngle='1.7minAngle='0.3'/>
113                      </Transform>
114                      <Transform scale='0.9 0.9 0.9translation='-0.7 2.5 -2.4'>
115                           <Shape>
116                                <Cylinder height='2.8radius='0.1'/>
117                                <Appearance>
118                                     <ImageTexture   url=' "../AAAV/green1.jpg " "https://www.web3d.org/x3d/content/examples/Savage/AmphibiousVehicles/AAAV/green1.jpg " '/>
119                                </Appearance>
120                           </Shape>
121                           <!-- This is the back door hinge. -->
122                      </Transform>
123                 </Transform>
124            </Transform>
125            < ROUTE  fromNode='TRANSOMCYLINDERSENSOR' fromField='rotation_changed' toNode='TransomFlap' toField='set_rotation'/>
126       </Scene>
127  </X3D>
<!--

<!--
Event Graph ROUTE Table shows event connections.
-->
<!-- to top DEF nodes index: Antenna, BACKDOOR, Body, BODYSET, CAMMIE, CAMMIE1, CrewHatch, ENGINE, HATCH, LTANT, RTANT, TRANSOMCYLINDERSENSOR, TransomFlap
-->
X3D Tooltips element index: Appearance, Box, Cone, Coordinate, Cylinder, CylinderSensor, Extrusion, Group, head, ImageTexture, IndexedFaceSet, Material, meta, NavigationInfo, ROUTE, Scene, Shape, TextureCoordinate, 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.

TRANSOMCYLINDERSENSOR
CylinderSensor
rotation_changed
SFRotation

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