X3D Model Documentation: NanuchkaMissileCorvette.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='NanuchkaMissileCorvette.x3d'/>
  6            <meta name='creatorcontent='Weng Wah LO'/>
  7            <meta name='createdcontent='27 Stember 2000'/>
  8            <meta name='modifiedcontent='20 October 2019'/>
  9            <meta name='descriptioncontent='Using Extrusion to model Nanuchka Missile Corvette'/>
 10            <meta name='identifiercontent='https://savage.nps.edu/Savage/ShipsMilitary/PatrolCraftNanuchkaLighthouseRussia/NanuchkaMissileCorvette.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: Clock, ColumnPath, Gun, Island_Level1, Island_Level2, Island_Level3, Level1, Level2, Level3, Missile_Canister, RotatingAntennaMast, Ship_Camo_Paint, StarboardLaunchers

Index for Viewpoint nodes: Viewpoint_1, Viewpoint_2, Viewpoint_3, Viewpoint_4, Viewpoint_5
-->
 14       <Scene>
 15            <!-- Horizon Background -->
 16            <WorldInfo title='NanuchkaMissileCorvette.x3d'/>
 17            <Background groundAngle='1.309 1.570796groundColor='0.0 0.3 0.7 .0 .1 .8 0.0 0.0 0.0skyAngle='1.309 1.571skyColor='0.0 0.2 0.7 0.0 0.5 1.0 1 1 1'/>
 18            <Group>
 19                 <Viewpoint description='Nanuchka starboard side 50morientation='1 0 0 -0.5position='0 30 50'/>
 20                 <Viewpoint description='Nanuchka bow 120morientation='0 1 0 1.57position='120 20 0'/>
 21                 <Viewpoint description='Nanuchka port side 50morientation='0 1 0 3.14position='0 10 -50'/>
 22                 <Viewpoint description='Nanuchka directly overheadorientation='1 0 0 -1.4position='10 50 10'/>
 23            </Group>
 24            <SpotLight ambientIntensity='0.3beamWidth='1.570796color='0.7 0.6 0.1cutOffAngle='.785398direction='-1 0 -1intensity='0.6location='80 10 50'/>
 25            <!-- Extrusion of Ship Hull -->
 26            <Shape>
 27                 <Extrusion creaseAngle='1.57crossSection='0 0 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 0orientation='0 1 0 0 0 1 0 0 0 1 0 0 0 1 0 0 0 0 1 -0.5scale='.1 4.75 4.75 4.75 5.6 5.6 5.9 5.9 5.9 .1solid='falsespine='-29.65 0.25 0 -29 0 0 0 0 0 10.62 0 0 29.65 0.25 0'/>
 28                 <Appearance>
 29                      <Material/>
 30                 </Appearance>
 31            </Shape>
 32            <!-- Extrusion of Ship Deck -->
 33            <Shape>
 34                 <Extrusion creaseAngle='1.57crossSection='0 -0.9 0 0 0 0.9orientation='0 1 0 0 0 1 0 0 0 1 0 0 0 1 0 0 0 0 1 -0.5scale='.08 4.7 4.7 4.7 5.5 5.5 5.8 5.8 5.8 .08solid='falsespine='-29.5 0.25 0 -29 0.25 0 0 0.25 0 10.62 0.25 0 29.5 0.25 0'/>
 35                 <Appearance>
 36                      <Material diffuseColor='1 1 1emissiveColor='0.2 0 0'/>
 37                 </Appearance>
 38            </Shape>
 39            <!-- Group of 3 Missile Launchers Starboard Side -->
 40 
          <!-- Transform StarboardLaunchers is a DEF node that has 1 USE node: USE_1 -->
          <Transform DEF='StarboardLaunchersrotation='0 0 1 -1.5translation='5 1.6 2.5'>
 41 
               <!-- Shape Missile_Canister is a DEF node that has 2 USE nodes: USE_1, USE_2 -->
               <Shape DEF='Missile_Canister'>
 42                      <!-- Construction of Missiles -->
 43                      <Cylinder height='10radius='0.9'/>
 44                      <Appearance>
 45                           <Material diffuseColor='.2 .5 .3emissiveColor='0.2 0.5 0.3'/>
 46                      </Appearance>
 47                 </Shape>
 48                 <Transform translation='0 0 1.8'>
 49                      <Shape USE='Missile_Canister'/>
 50                 </Transform>
 51                 <Transform translation='-1.7 0 0.9'>
 52                      <Shape USE='Missile_Canister'/>
 53                 </Transform>
 54            </Transform>
 55            <!-- Group of 3 Missile Launchers Port Side -->
 56            <Transform translation='0 0 -6.8'>
 57                 <Transform USE='StarboardLaunchers'/>
 58            </Transform>
 59            <!-- Ship Island Level 1 -->
 60            <Shape DEF='Island_Level1'>
 61                 <Appearance>
 62 
                    <!-- Material Ship_Camo_Paint is a DEF node that has 10 USE nodes: USE_1, USE_2, USE_3, USE_4, USE_5, USE_6, USE_7, USE_8, USE_9, USE_10 -->
                    <Material DEF='Ship_Camo_PaintdiffuseColor='0.62 0.639 0.612'/>
 63                 </Appearance>
 64                 <!-- Top, Bottom, Side -->
 65                 <IndexedFaceSet ccw='falsesolid='falsecoordIndex='0 1 2 3 4 5 6 7 8 9 10 -1 11 12 131415 16 17 18 19 20 21 -1 0 1 2 3 4 5 6 7 8 9 10 0 11 21 20 19 18 17 16 15 14 13 12 11 -1'>
 66                      <!-- Coord on top, Coord on bottom -->
 67                      <Coordinate DEF='Level1point='-21 2.8 0 -21 2.8 -2.5 -16.0 2.8 -2.5 -6.5 2.8 -3.5 0.0 2.8 -1.5 13.0 2.8 -1.5 13.0 2.8 1.5 0.0 2.8 1.5 -6.5 2.8 3.5 -16.0 2.8 2.5 -21 2.8 2.5 -21.8 0.05 0 -21.8 0.05 -2.5 -16.0 0.05 -2.5 -6.5 0.05 -3.5 0.0 0.05 -1.5 14.4 0.05 -1.5 14.4 0.05 1.5 0.0 0.05 1.5 -6.5 0.05 3.5 -16.0 0.05 2.5 -21.8 0.05 2.5'/>
 68                 </IndexedFaceSet>
 69            </Shape>
 70            <!-- Ship Island Level 2 -->
 71            <Shape DEF='Island_Level2'>
 72                 <Appearance>
 73                      <Material USE='Ship_Camo_Paint'/>
 74                 </Appearance>
 75                 <!-- Top, Bottom, Side1, Side2, Side3 -->
 76                 <IndexedFaceSet ccw='falsesolid='falsecoordIndex='0 1 2 3 4 -1 15 16 17 18 19 -1 0 1 2 3 4 0 5 9 8 7 6 5 -1 5 6 7 8 9 5 10 14 13 12 11 10 -1 10 11 12 13 14 10 15 19 18 17 16 15 -1'>
 77                      <!-- Coord on top, Coord at top-middle, Coord at bottom-middle, Coord on bottom -->
 78                      <Coordinate DEF='Level2point='-4.85 5.5 0 -4.85 5.5 -1.4 9.75 5.5 -1.4 9.75 5.5 1.4 -4.85 5.5 1.4 -5.1 4.6 0 -5.1 4.6 -1.4 14.15 4.6 -1.4 14.15 4.6 1.4 -5.1 4.6 1.4 -5.3 3.55 0 -5.3 3.55 -1.4 13.7 3.55 -1.4 13.7 3.55 1.4 -5.3 3.55 1.4 -5.5 2.8 0 -5.5 2.8 -1.4 13 2.8 -1.4 13 2.8 1.4 -5.5 2.8 1.4'/>
 79                 </IndexedFaceSet>
 80            </Shape>
 81            <!-- Ship Island Level 3 -->
 82            <Shape DEF='Island_Level3'>
 83                 <Appearance>
 84                      <Material USE='Ship_Camo_Paint'/>
 85                 </Appearance>
 86                 <!-- Top, Bottom, Side -->
 87                 <IndexedFaceSet ccw='falsesolid='falsecoordIndex='0 1 2 3 4 -1 5 6 7 8 9 -1 0 1 2 3 4 0 5 9 8 7 6 5 -1'>
 88                      <!-- Coord on top, Coord on bottom -->
 89                      <Coordinate DEF='Level3point='-2.2 8.4 0 -2.2 8.4 -1.4 6.6 8.4 -1.4 6.6 8.4 1.4 -2.2 8.4 1.4 -2.85 5.55 0 -2.85 5.55 -1.4 7.5 5.55 -1.4 7.5 5.55 1.4 -2.85 5.55 1.4'/>
 90                 </IndexedFaceSet>
 91            </Shape>
 92            <!-- Construction of Main Radar Dome -->
 93            <Transform translation='4.85 9.725 0'>
 94                 <Shape>
 95                      <Appearance>
 96                           <Material USE='Ship_Camo_Paint'/>
 97                      </Appearance>
 98                      <Cylinder height='2.65radius='1.5'/>
 99                 </Shape>
100                 <Transform translation='0 1.325 0'>
101                      <Shape>
102                           <Appearance>
103                                <Material USE='Ship_Camo_Paint'/>
104                           </Appearance>
105                           <Sphere radius='1.5'/>
106                      </Shape>
107                 </Transform>
108            </Transform>
109            <!-- Construction of Search Radar -->
110            <Transform translation='-9.3 3.9 0'>
111                 <Shape>
112                      <Appearance>
113                           <Material USE='Ship_Camo_Paint'/>
114                      </Appearance>
115                      <Box size='2 2.2 2'/>
116                 </Shape>
117                 <Transform translation='0 1.1 0'>
118                      <Shape>
119                           <Appearance>
120                                <Material USE='Ship_Camo_Paint'/>
121                           </Appearance>
122                           <Box size='3 0.2 3'/>
123                      </Shape>
124                      <Transform rotation='0 0 1 0.785translation='-0.4 1.2 0'>
125                           <Shape>
126                                <Appearance>
127                                     <Material USE='Ship_Camo_Paint'/>
128                                </Appearance>
129                                <Cylinder height='1.6radius='.65'/>
130                           </Shape>
131                      </Transform>
132                 </Transform>
133            </Transform>
134            <!-- Construction of 76.2mm gun -->
135 
          <!-- Transform Gun is a DEF node that has 1 USE node: USE_1 -->
          <Transform DEF='Gunscale='1 0.82 1.2translation='-24 1.5 0'>
136                 <Shape>
137                      <Appearance>
138                           <Material USE='Ship_Camo_Paint'/>
139                      </Appearance>
140                      <Sphere radius='1.875'/>
141                 </Shape>
142                 <Transform rotation='0 0 1 -1.57translation='-2 0 0'>
143                      <Shape>
144                           <Appearance>
145                                <Material USE='Ship_Camo_Paint'/>
146                           </Appearance>
147                           <Cylinder height='4.5radius='0.1'/>
148                      </Shape>
149                 </Transform>
150            </Transform>
151            <!-- Construction of 57mm gun -->
152            <Transform scale='0.4 0.4 0.4translation='-10.5 2.9 0'>
153                 <Transform USE='Gun'/>
154            </Transform>
155            <!-- Construction of Antenna Mast -->
156            <Shape>
157                 <Appearance>
158                      <Material USE='Ship_Camo_Paint'/>
159                 </Appearance>
160                 <IndexedLineSet coordIndex='0 1 2 3 0 -1 0 4 -1 1 5 -1 2 6 -1 3 7 -1 8 9 10 11 8 -1 12 13 14 15 12 -1 16 17 18 19 16 -1 0 14 -1 3 13 -1 12 18 -1 15 17 -1 16 6 -1 19 5 -1 17 7 -1 18 4 -1 12 6 -1 13 7 -1 14 4 -1 15 5 -1 16 2 -1 17 3 -1 18 0 -1 19 1 -1 8 14 -1 9 15 -1 10 12 -1 11 13 -1'>
161                      <!-- Top, Bottom, Midpoints1, Midpoints2, Midpoints3 -->
162                      <Coordinate point='-3.1 14.8 -1 -0.9 14.8 -1 -0.9 14.8 1 -3.1 14.8 1 -4.81 5.5 -1.35 -0.9 8.41 -1.3 -0.9 8.41 1.3 -4.81 5.5 1.35 -4.295 8.3 -1.25 -2 8.3 -1.27 -2 8.3 1.27 -4.295 8.3 1.25 -3.90 10.5 -1.15 -0.9 10.5 -1.17 -0.9 10.5 1.17 -3.90 10.5 1.15 -3.485 12.7 -1.05 -0.9 12.7 -1.07 -0.9 12.7 1.07 -3.485 12.7 1.05'/>
163                 </IndexedLineSet>
164            </Shape>
165            <Transform translation='-2.9 14.81 0'>
166                 <Shape>
167                      <Appearance>
168                           <Material diffuseColor='0 0 0'/>
169                      </Appearance>
170                      <Box size='3.8 0.2 2'/>
171                 </Shape>
172                 <Transform translation='1 0.5 0'>
173                      <Shape>
174                           <Appearance>
175                                <Material diffuseColor='0 0 0'/>
176                           </Appearance>
177                           <Cone bottomRadius='0.2height='1'/>
178                      </Shape>
179 
                    <!-- ROUTE information for RotatingAntennaMast node:  [from ColumnPath.value_changed to set_rotation ] -->
                    <Transform DEF='RotatingAntennaMasttranslation='0 0.5 0'>
180                           <Shape>
181                                <Appearance>
182                                     <Material diffuseColor='0 0 0'/>
183                                </Appearance>
184                                <Box size='1.3 .3 .2'/>
185                           </Shape>
186                           <Viewpoint description='Nanuchka Rotating Antenna Mastorientation='1 0 0 -0.2position='0 3 20'/>
187 
                         <!-- ROUTE information for Clock node:  [from fraction_changed to ColumnPath.set_fraction ] -->
                         <TimeSensor DEF='ClockcycleInterval='20loop='true'/>
188 
                         <!-- ROUTE information for ColumnPath node:  [from Clock.fraction_changed to set_fraction ] [from value_changed to RotatingAntennaMast.set_rotation ] -->
                         <OrientationInterpolator DEF='ColumnPathkey='0 0.5 1keyValue='0.0 1.0 0.0 0.0 0.0 1.0 0.0 3.14 0.0 1.0 0.0 6.28'/>
189                           < ROUTE  fromNode='Clock' fromField='fraction_changed' toNode='ColumnPath' toField='set_fraction'/>
190                           < ROUTE  fromNode='ColumnPath' fromField='value_changed' toNode='RotatingAntennaMast' toField='set_rotation'/>
191                      </Transform>
192                 </Transform>
193            </Transform>
194            <Shape>
195                 <Appearance>
196                      <Material diffuseColor='0 0 0'/>
197                 </Appearance>
198                 <IndexedLineSet coordIndex='0 4 -1 1 4 -1 2 4 -1 3 4 -1'>
199                      <!-- Base, Top -->
200                      <Coordinate point='-4.4 14.81 -0.5 -3.1 14.81 -0.5 -3.1 14.81 0.5 -4.4 14.81 0.5 -3.3 18.35 0'/>
201                 </IndexedLineSet>
202            </Shape>
203       </Scene>
204  </X3D>
<!--

<!--
Event Graph ROUTE Table shows event connections.
-->

<!-- to top Index for DEF nodes: Clock, ColumnPath, Gun, Island_Level1, Island_Level2, Island_Level3, Level1, Level2, Level3, Missile_Canister, RotatingAntennaMast, Ship_Camo_Paint, StarboardLaunchers

Index for Viewpoint nodes: Viewpoint_1, Viewpoint_2, Viewpoint_3, Viewpoint_4, Viewpoint_5
-->
X3D Tooltips element index: Appearance, Background, Box, Cone, Coordinate, Cylinder, Extrusion, Group, head, IndexedFaceSet, IndexedLineSet, Material, meta, OrientationInterpolator, ROUTE, Scene, Shape, Sphere, SpotLight, TimeSensor, Transform, Viewpoint, WorldInfo, X3D, accessType and type, XML data types, field types

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

Clock
TimeSensor
fraction_changed
SFFloat

ROUTE
event to
(1)
ColumnPath
OrientationInterpolator
set_fraction
SFFloat
then
 
 
 
ColumnPath
OrientationInterpolator
value_changed
SFRotation

ROUTE
event to
(2)
RotatingAntennaMast
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://savage.nps.edu/Savage/ShipsMilitary/PatrolCraftNanuchkaLighthouseRussia/NanuchkaMissileCorvetteIndex.html -->
<!-- Version control at
https://gitlab.nps.edu/Savage/Savage/ShipsMilitary/PatrolCraftNanuchkaLighthouseRussia/NanuchkaMissileCorvette.x3d -->

<!-- Color 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. -->