X3D Model Documentation: Lighthouse.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=' Lighthouse.x3d '/>
  6            <meta name='creatorcontent='Lo Weng Wah'/>
  7            <meta name='createdcontent='28 August 2000'/>
  8            <meta name='modifiedcontent='20 October 2019'/>
  9            <meta name='modifiedcontent='20 October 2019'/>
 10            <meta name='descriptioncontent='Model of a Lighthouse with Rotating Light Beam'/>
 11            <meta name='identifiercontent=' https://www.web3d.org/x3d/content/examples/Savage/ShipsMilitary/PatrolCraftNanuchkaLighthouseRussia/Lighthouse.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: Clock, Column, ColumnPath, CoordinateAxes, Full_Cylinder, Mountain_Color, Roof, RotatingLightBeam, Sea

Index for Viewpoint nodes: Viewpoint_1, Viewpoint_2, Viewpoint_3
-->
 15       <Scene>
 16            <WorldInfo title='Lighthouse.x3d'/>
 17            <Viewpoint description='Light_Vieworientation='0.2 0 0 -0.2position='10 10 50'/>
 18            <Viewpoint description='Bird Vieworientation='1 0 0 -1.4position='10 50 10'/>
 19            <Viewpoint description='15m awayposition='0 0 15'/>
 20            <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'/>
 21            <!-- Top of Lighthouse -->
 22            <Group>
 23 
               <!-- ROUTE information for RotatingLightBeam node:  [from ColumnPath.value_changed to set_rotation ] -->
               <Transform DEF='RotatingLightBeamcenter='20 0 0translation='-20 0 0'>
 24                      <Shape>
 25                           <Appearance>
 26                                <Material emissiveColor='.9 .9 .2specularColor='1 1 0transparency='0.3'/>
 27                           </Appearance>
 28                           <Extrusion DEF='Full_CylindercreaseAngle='.785crossSection='1 0 .92 -.38 .71 -.71 .38 -.92 0 -1 -.38 -.92 -.71 -.71 -.92 -.38 -1 -0 -.92 .38 -.71 .71 -.38 .92 0 1 .38 .92 .71 .71 .92 .38 1 0scale='1.6 1.6 0.4 0.4solid='falsespine='-20 0 0 20 0 0'/>
 29                      </Shape>
 30 
                    <!-- ROUTE information for Clock node:  [from fraction_changed to ColumnPath.set_fraction ] -->
                    <TimeSensor DEF='ClockcycleInterval='20loop='true'/>
 31 
                    <!-- ROUTE information for ColumnPath node:  [from Clock.fraction_changed to set_fraction ] [from value_changed to RotatingLightBeam.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'/>
 32                 </Transform>
 33            </Group>
 34            <!-- Design of Lighthouse -->
 35            <Transform DEF='Column'>
 36                 <Shape>
 37                      <Cylinder height='1.6'/>
 38                      <Appearance>
 39                           <Material shininess='.2'/>
 40                      </Appearance>
 41                 </Shape>
 42                 <Transform>
 43                      <Inline DEF='CoordinateAxes'   url=' "../../X3dForWebAuthors/Chapter03Grouping/CoordinateAxes.x3d" "https://www.web3d.org/x3d/content/examples/X3dForWebAuthors/Chapter03Grouping/CoordinateAxes.x3d" "https://www.web3d.org/x3d/content/examples/Savage/Tools/Authoring/CoordinateAxes.x3d" "../../X3dForWebAuthors/Chapter03Grouping/CoordinateAxes.wrl" "https://www.web3d.org/x3d/content/examples/X3dForWebAuthors/Chapter03Grouping/CoordinateAxes.wrl" "https://www.web3d.org/x3d/content/examples/Savage/Tools/Authoring/CoordinateAxes.wrl" '/>
 44                 </Transform>
 45 
               <!-- Transform Roof is a DEF node that has 1 USE node: USE_1 -->
               <Transform DEF='Rooftranslation='0 0.8 0'>
 46                      <Shape>
 47                           <Cylinder height='0.2radius='1.4'/>
 48                           <Appearance>
 49                                <Material diffuseColor='1 0 0shininess='.2'/>
 50                           </Appearance>
 51                      </Shape>
 52                 </Transform>
 53                 <Transform translation='0 -1.6 0'>
 54                      <Transform USE='Roof'/>
 55                 </Transform>
 56                 <Transform translation='0 1.2 0'>
 57                      <Shape>
 58                           <Cone bottomRadius='1.25height='1'/>
 59                           <Appearance>
 60                                <Material diffuseColor='0.5 0.5 0.5shininess='.2'/>
 61                           </Appearance>
 62                      </Shape>
 63                 </Transform>
 64                 <Transform rotation='0 0 1 1.57'>
 65                      <Shape>
 66                           <Extrusion creaseAngle='.785crossSection='1 0 .92 -.38 .71 -.71 .38 -.92 0 -1 -.38 -.92 -.71 -.71 -.92 -.38 -1 -0 -.92 .38 -.71 .71 -.38 .92 0 1 .38 .92 .71 .71 .92 .38 1 0scale='2.3 2.3 0.7 0.7solid='falsespine='-12 0 0 0 0 0'/>
 67                           <Appearance>
 68                                <Material diffuseColor='1 1 1shininess='.2'/>
 69                           </Appearance>
 70                      </Shape>
 71                 </Transform>
 72            </Transform>
 73            <!-- Mountain -->
 74            <Transform scale='4 2 4translation='-18 -21 -18'>
 75                 <Shape>
 76                      <ElevationGrid creaseAngle='2.0xDimension='9zDimension='9height='0.0 0.0 0.5 1.0 0.5 0.5 0.0 0.0 0.0 0.0 0.0 0.0 0.0 2.5 0.5 0.0 0.0 0.0 0.0 0.0 0.5 0.5 3.0 1.0 0.5 0.0 1.0 0.0 0.6 0.5 2.0 4.5 2.5 1.0 1.5 0.5 0.4 2.5 3.0 4.5 4.5 4.5 3.0 1.0 0.0 0.5 2.0 2.0 2.8 4.5 4.0 2.0 0.5 0.0 0.0 0.0 0.5 1.5 1.0 2.0 3.0 1.5 0.0 0.0 0.5 0.5 0.0 0.3 1.0 2.0 1.5 0.5 0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0.3 1.0'/>
 78                      </ElevationGrid>
 79                      <Appearance>
 80                           <Material ambientIntensity='0.4diffuseColor='1 1 1shininess='.2specularColor='0.71 0.70 0.56'/>
 81                      </Appearance>
 82                 </Shape>
 83            </Transform>
 84            <!-- Sea Depiction -->
 85            <Transform DEF='Seascale='100 15 100translation='-100 -22 -100'>
 86                 <Shape>
 87                      <ElevationGrid creaseAngle='1.57xDimension='9zDimension='10height='0.0 0.0 0.1 0.0 0.0 0.1 0.0 0.0 0.1 0.0 0.1 0.0 0.0 0.1 0.0 0.0 0.1 0.0 0.0 0.0 0.1 0.0 0.0 0.1 0.0 0.0 0.1 0.0 0.1 0.0 0.0 0.1 0.0 0.0 0.1 0.0 0.0 0.0 0.1 0.0 0.0 0.1 0.0 0.0 0.1 0.0 0.1 0.0 0.0 0.1 0.0 0.0 0.1 0.0 0.0 0.0 0.1 0.0 0.0 0.1 0.0 0.0 0.1 0.0 0.1 0.0 0.0 0.1 0.0 0.0 0.1 0.0 0.0 0.0 0.1 0.0 0.0 0.1 0.0 0.0 0.1 0.0 0.1 0.0 0.0 0.1 0.0 0.0 0.1 0.0'/>
 88                      <Appearance>
 89                           <Material ambientIntensity='0.4diffuseColor='0 0 1shininess='.2specularColor='0.71 0.70 0.56'/>
 90                      </Appearance>
 91                 </Shape>
 92            </Transform>
 93            < ROUTE  fromNode='Clock' fromField='fraction_changed' toNode='ColumnPath' toField='set_fraction'/>
 94            < ROUTE  fromNode='ColumnPath' fromField='value_changed' toNode='RotatingLightBeam' toField='set_rotation'/>
 95       </Scene>
 96  </X3D>
<!--

<!--
Event Graph ROUTE Table shows event connections.
-->
<!-- to top DEF nodes index: Clock, Column, ColumnPath, CoordinateAxes, Full_Cylinder, Mountain_Color, Roof, RotatingLightBeam, Sea

Index for Viewpoint nodes: Viewpoint_1, Viewpoint_2, Viewpoint_3
-->
X3D Tooltips element index: Appearance, Background, Color, Cone, Cylinder, ElevationGrid, Extrusion, Group, head, Inline, Material, meta, OrientationInterpolator, ROUTE, Scene, Shape, TimeSensor, Transform, Viewpoint, WorldInfo, X3D, plus documentation for accessType definitions, type definitions, XML data types, and 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)
RotatingLightBeam
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/PatrolCraftNanuchkaLighthouseRussia/LighthouseIndex.html -->
<!-- Version control at
https://sourceforge.net/p/x3d/code/HEAD/tree/www.web3d.org/x3d/content/examples/Savage/ShipsMilitary/PatrolCraftNanuchkaLighthouseRussia/Lighthouse.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. -->