X3D Model Documentation: RunningLightsExample.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=' RunningLightsExample.x3d '/>
  6            <meta name='creatorcontent='Andrew Wiest'/>
  7            <meta name='createdcontent='6 May 2001'/>
  8            <meta name='modifiedcontent='20 October 2019'/>
  9            <meta name='descriptioncontent='Example for using the ship RunningLights prototype.'/>
 10            <meta name='identifiercontent=' https://www.web3d.org/x3d/content/examples/Savage/ShipsMilitary/RunningLights/RunningLightsExample.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: CopyThisNode, GreaterThan6000yds, UpTo1000yds, UpTo2000yds, UpTo3000Yds, UpTo4000Yds, UpTo5000Yds, UpTo6000Yds

Index for Viewpoint nodes: Viewpoint_1, Viewpoint_2, Viewpoint_3, Viewpoint_4, Viewpoint_5, Viewpoint_6, Viewpoint_7

Index for ExternProtoDeclare definition: RunningLights
-->
 14       <Scene>
 15            <!-- This node provides standard running lights for vessels > 50 meters in length -->
 16            <ExternProtoDeclare name='RunningLights'   url=' "../../ShipsMilitary/RunningLights/RunningLightsPrototype.x3d#RunningLights" "https://www.web3d.org/x3d/content/examples/Savage/ShipsMilitary/RunningLights/RunningLightsPrototype.x3d#RunningLights" "../../ShipsMilitary/RunningLights/RunningLightsPrototype.wrl#RunningLights" "https://www.web3d.org/x3d/content/examples/Savage/ShipsMilitary/RunningLights/RunningLightsPrototype.wrl#RunningLights" '>
 17                 <field name='StbdRunningLightPositiontype='SFVec3faccessType='initializeOnly'/>
 18                 <field name='StbdRunningLightScaletype='SFVec3faccessType='initializeOnly'/>
 19                 <field name='StbdRunningLightOnOffSwitchtype='SFColoraccessType='initializeOnly'/>
 20                 <field name='SternLightPositiontype='SFVec3faccessType='initializeOnly'/>
 21                 <field name='SternLightScaletype='SFVec3faccessType='initializeOnly'/>
 22                 <field name='WhiteRunningLightOnOffSwitchtype='SFColoraccessType='initializeOnly'/>
 23                 <field name='PortRunningLightPositiontype='SFVec3faccessType='initializeOnly'/>
 24                 <field name='PortRunningLightScaletype='SFVec3faccessType='initializeOnly'/>
 25                 <field name='PortRunningLightOnOffSwitchtype='SFColoraccessType='initializeOnly'/>
 26                 <field name='LowerMastHeadLightPositiontype='SFVec3faccessType='initializeOnly'/>
 27                 <field name='LowerMastHeadLightScaletype='SFVec3faccessType='initializeOnly'/>
 28                 <field name='UpperMastHeadLightPositiontype='SFVec3faccessType='initializeOnly'/>
 29                 <field name='UpperMastHeadLightScaletype='SFVec3faccessType='initializeOnly'/>
 30                 <field name='FwdAnchorLightPositiontype='SFVec3faccessType='initializeOnly'/>
 31                 <field name='FwdAnchorLightScaletype='SFVec3faccessType='initializeOnly'/>
 32                 <field name='AnchorLightsOnOffSwitchtype='SFColoraccessType='initializeOnly'/>
 33                 <field name='AftAnchorLightPositiontype='SFVec3faccessType='initializeOnly'/>
 34                 <field name='AftAnchorLightScaletype='SFVec3faccessType='initializeOnly'/>
 35            </ExternProtoDeclare>
 36            <!-- Example scene using the ProtoDeclaration follows -->
 37            <Background skyColor='.2 .2 .2'/>
 38            <NavigationInfo headlight='falsespeed='1000type='"WALK" "EXAMINE" "ANY"'/>
 39            <Viewpoint description='100m Running Lightsorientation='0 1 0 1.571position='100 2 0'/>
 40            <LOD range='10000'>
 41                 <Group>
 42                      <Viewpoint description='1000m Running Lightsorientation='0 1 0 1.571position='1000 2 0'/>
 43                      <Viewpoint description='2000m Running Lightsorientation='0 1 0 1.571position='2000 2 0'/>
 44                      <Viewpoint description='3000m Running Lightsorientation='0 1 0 1.571position='3000 2 0'/>
 45                      <Viewpoint description='4000m Running Lightsorientation='0 1 0 1.571position='4000 2 0'/>
 46                      <Viewpoint description='5000m Running Lightsorientation='0 1 0 1.571position='5000 2 0'/>
 47                 </Group>
 48                 <WorldInfo info='"null node - hide all viewpoints outside 10,000m"'/>
 49            </LOD>
 50            <Viewpoint description='6000m Running Lightsorientation='0 1 0 1.571position='6000 2 0'/>
 51            <LOD DEF='CopyThisNoderange='1000 2000 3000 4000 5000 6000'>
 52                 <Transform DEF='UpTo1000yds'>
 53                      <ProtoInstance name='RunningLights'>
 54                           <fieldValue name='StbdRunningLightPositionvalue='0 0 10'/>
 55                           <fieldValue name='StbdRunningLightScalevalue='6 6 6'/>
 56                           <fieldValue name='StbdRunningLightOnOffSwitchvalue='0 1 0'/>
 57                           <fieldValue name='SternLightPositionvalue='-10 0 0'/>
 58                           <fieldValue name='SternLightScalevalue='6 6 6'/>
 59                           <fieldValue name='WhiteRunningLightOnOffSwitchvalue='1 1 1'/>
 60                           <fieldValue name='PortRunningLightPositionvalue='0 0 -10'/>
 61                           <fieldValue name='PortRunningLightScalevalue='6 6 6'/>
 62                           <fieldValue name='PortRunningLightOnOffSwitchvalue='1 0 0'/>
 63                           <fieldValue name='LowerMastHeadLightPositionvalue='10 10 0'/>
 64                           <fieldValue name='LowerMastHeadLightScalevalue='6 6 6'/>
 65                           <fieldValue name='UpperMastHeadLightPositionvalue='0 20 0'/>
 66                           <fieldValue name='UpperMastHeadLightScalevalue='1 1 1'/>
 67                           <fieldValue name='FwdAnchorLightPositionvalue='30 0 0'/>
 68                           <fieldValue name='FwdAnchorLightScalevalue='6 6 6'/>
 69                           <fieldValue name='AnchorLightsOnOffSwitchvalue='0 0 0'/>
 70                           <fieldValue name='AftAnchorLightPositionvalue='-10 10 0'/>
 71                           <fieldValue name='AftAnchorLightScalevalue='1 1 1'/>
 72                      </ProtoInstance>
 73                 </Transform>
 74                 <Transform DEF='UpTo2000yds'>
 75                      <ProtoInstance name='RunningLights'>
 76                           <fieldValue name='StbdRunningLightPositionvalue='0 0 10'/>
 77                           <fieldValue name='StbdRunningLightScalevalue='13 13 13'/>
 78                           <fieldValue name='StbdRunningLightOnOffSwitchvalue='0 1 0'/>
 79                           <fieldValue name='SternLightPositionvalue='-10 0 0'/>
 80                           <fieldValue name='SternLightScalevalue='12 12 12'/>
 81                           <fieldValue name='WhiteRunningLightOnOffSwitchvalue='1 1 1'/>
 82                           <fieldValue name='PortRunningLightPositionvalue='0 0 -10'/>
 83                           <fieldValue name='PortRunningLightScalevalue='13 13 13'/>
 84                           <fieldValue name='PortRunningLightOnOffSwitchvalue='1 0 0'/>
 85                           <fieldValue name='LowerMastHeadLightPositionvalue='10 10 0'/>
 86                           <fieldValue name='LowerMastHeadLightScalevalue='13 13 13'/>
 87                           <fieldValue name='UpperMastHeadLightPositionvalue='0 20 0'/>
 88                           <fieldValue name='UpperMastHeadLightScalevalue='1 1 1'/>
 89                           <fieldValue name='FwdAnchorLightPositionvalue='30 0 0'/>
 90                           <fieldValue name='FwdAnchorLightScalevalue='13 13 13'/>
 91                           <fieldValue name='AnchorLightsOnOffSwitchvalue='0 0 0'/>
 92                           <fieldValue name='AftAnchorLightPositionvalue='-10 10 0'/>
 93                           <fieldValue name='AftAnchorLightScalevalue='1 1 1'/>
 94                      </ProtoInstance>
 95                 </Transform>
 96                 <Transform DEF='UpTo3000Yds'>
 97                      <ProtoInstance name='RunningLights'>
 98                           <fieldValue name='StbdRunningLightPositionvalue='0 0 10'/>
 99                           <fieldValue name='StbdRunningLightScalevalue='20 20 20'/>
100                           <fieldValue name='StbdRunningLightOnOffSwitchvalue='0 1 0'/>
101                           <fieldValue name='SternLightPositionvalue='-10 0 0'/>
102                           <fieldValue name='SternLightScalevalue='20 20 20'/>
103                           <fieldValue name='WhiteRunningLightOnOffSwitchvalue='1 1 1'/>
104                           <fieldValue name='PortRunningLightPositionvalue='0 0 -10'/>
105                           <fieldValue name='PortRunningLightScalevalue='20 20 20'/>
106                           <fieldValue name='PortRunningLightOnOffSwitchvalue='1 0 0'/>
107                           <fieldValue name='LowerMastHeadLightPositionvalue='10 10 0'/>
108                           <fieldValue name='LowerMastHeadLightScalevalue='20 20 20'/>
109                           <fieldValue name='UpperMastHeadLightPositionvalue='0 20 0'/>
110                           <fieldValue name='UpperMastHeadLightScalevalue='1 1 1'/>
111                           <fieldValue name='FwdAnchorLightPositionvalue='30 0 0'/>
112                           <fieldValue name='FwdAnchorLightScalevalue='20 20 20'/>
113                           <fieldValue name='AnchorLightsOnOffSwitchvalue='0 0 0'/>
114                           <fieldValue name='AftAnchorLightPositionvalue='-10 10 0'/>
115                           <fieldValue name='AftAnchorLightScalevalue='1 1 1'/>
116                      </ProtoInstance>
117                 </Transform>
118                 <Transform DEF='UpTo4000Yds'>
119                      <ProtoInstance name='RunningLights'>
120                           <fieldValue name='StbdRunningLightPositionvalue='0 0 10'/>
121                           <fieldValue name='StbdRunningLightScalevalue='26 26 26'/>
122                           <fieldValue name='StbdRunningLightOnOffSwitchvalue='0 1 0'/>
123                           <fieldValue name='SternLightPositionvalue='-10 0 0'/>
124                           <fieldValue name='SternLightScalevalue='26 26 26'/>
125                           <fieldValue name='WhiteRunningLightOnOffSwitchvalue='1 1 1'/>
126                           <fieldValue name='PortRunningLightPositionvalue='0 0 -10'/>
127                           <fieldValue name='PortRunningLightScalevalue='26 26 26'/>
128                           <fieldValue name='PortRunningLightOnOffSwitchvalue='1 0 0'/>
129                           <fieldValue name='LowerMastHeadLightPositionvalue='10 10 0'/>
130                           <fieldValue name='LowerMastHeadLightScalevalue='26 26 26'/>
131                           <fieldValue name='UpperMastHeadLightPositionvalue='0 20 0'/>
132                           <fieldValue name='UpperMastHeadLightScalevalue='1 1 1'/>
133                           <fieldValue name='FwdAnchorLightPositionvalue='30 0 0'/>
134                           <fieldValue name='FwdAnchorLightScalevalue='26 26 26'/>
135                           <fieldValue name='AnchorLightsOnOffSwitchvalue='0 0 0'/>
136                           <fieldValue name='AftAnchorLightPositionvalue='-10 10 0'/>
137                           <fieldValue name='AftAnchorLightScalevalue='1 1 1'/>
138                      </ProtoInstance>
139                 </Transform>
140                 <Transform DEF='UpTo5000Yds'>
141                      <ProtoInstance name='RunningLights'>
142                           <fieldValue name='StbdRunningLightPositionvalue='0 0 10'/>
143                           <fieldValue name='StbdRunningLightScalevalue='34 34 34'/>
144                           <fieldValue name='StbdRunningLightOnOffSwitchvalue='0 1 0'/>
145                           <fieldValue name='SternLightPositionvalue='-10 0 0'/>
146                           <fieldValue name='SternLightScalevalue='34 34 34'/>
147                           <fieldValue name='WhiteRunningLightOnOffSwitchvalue='1 1 1'/>
148                           <fieldValue name='PortRunningLightPositionvalue='0 0 -10'/>
149                           <fieldValue name='PortRunningLightScalevalue='34 34 34'/>
150                           <fieldValue name='PortRunningLightOnOffSwitchvalue='1 0 0'/>
151                           <fieldValue name='LowerMastHeadLightPositionvalue='10 10 0'/>
152                           <fieldValue name='LowerMastHeadLightScalevalue='34 34 34'/>
153                           <fieldValue name='UpperMastHeadLightPositionvalue='0 20 0'/>
154                           <fieldValue name='UpperMastHeadLightScalevalue='1 1 1'/>
155                           <fieldValue name='FwdAnchorLightPositionvalue='30 0 0'/>
156                           <fieldValue name='FwdAnchorLightScalevalue='34 34 34'/>
157                           <fieldValue name='AnchorLightsOnOffSwitchvalue='0 0 0'/>
158                           <fieldValue name='AftAnchorLightPositionvalue='-10 10 0'/>
159                           <fieldValue name='AftAnchorLightScalevalue='1 1 1'/>
160                      </ProtoInstance>
161                 </Transform>
162                 <Transform DEF='UpTo6000Yds'>
163                      <ProtoInstance name='RunningLights'>
164                           <fieldValue name='StbdRunningLightPositionvalue='0 0 10'/>
165                           <fieldValue name='StbdRunningLightScalevalue='40 40 40'/>
166                           <fieldValue name='StbdRunningLightOnOffSwitchvalue='0 1 0'/>
167                           <fieldValue name='SternLightPositionvalue='-10 0 0'/>
168                           <fieldValue name='SternLightScalevalue='40 40 40'/>
169                           <fieldValue name='WhiteRunningLightOnOffSwitchvalue='1 1 1'/>
170                           <fieldValue name='PortRunningLightPositionvalue='0 0 -10'/>
171                           <fieldValue name='PortRunningLightScalevalue='40 40 40'/>
172                           <fieldValue name='PortRunningLightOnOffSwitchvalue='1 0 0'/>
173                           <fieldValue name='LowerMastHeadLightPositionvalue='10 10 0'/>
174                           <fieldValue name='LowerMastHeadLightScalevalue='40 40 40'/>
175                           <fieldValue name='UpperMastHeadLightPositionvalue='0 20 0'/>
176                           <fieldValue name='UpperMastHeadLightScalevalue='1 1 1'/>
177                           <fieldValue name='FwdAnchorLightPositionvalue='30 0 0'/>
178                           <fieldValue name='FwdAnchorLightScalevalue='40 40 40'/>
179                           <fieldValue name='AnchorLightsOnOffSwitchvalue='0 0 0'/>
180                           <fieldValue name='AftAnchorLightPositionvalue='-10 10 0'/>
181                           <fieldValue name='AftAnchorLightScalevalue='1 1 1'/>
182                      </ProtoInstance>
183                 </Transform>
184                 <Transform DEF='GreaterThan6000yds'>
185                      <ProtoInstance name='RunningLights'>
186                           <fieldValue name='StbdRunningLightPositionvalue='0 0 10'/>
187                           <fieldValue name='StbdRunningLightScalevalue='42 42 42'/>
188                           <fieldValue name='StbdRunningLightOnOffSwitchvalue='0 1 0'/>
189                           <fieldValue name='SternLightPositionvalue='-10 0 0'/>
190                           <fieldValue name='SternLightScalevalue='42 42 42'/>
191                           <fieldValue name='WhiteRunningLightOnOffSwitchvalue='1 1 1'/>
192                           <fieldValue name='PortRunningLightPositionvalue='0 0 -10'/>
193                           <fieldValue name='PortRunningLightScalevalue='42 42 42'/>
194                           <fieldValue name='PortRunningLightOnOffSwitchvalue='1 0 0'/>
195                           <fieldValue name='LowerMastHeadLightPositionvalue='10 10 0'/>
196                           <fieldValue name='LowerMastHeadLightScalevalue='42 42 42'/>
197                           <fieldValue name='UpperMastHeadLightPositionvalue='0 20 0'/>
198                           <fieldValue name='UpperMastHeadLightScalevalue='1 1 1'/>
199                           <fieldValue name='FwdAnchorLightPositionvalue='30 0 0'/>
200                           <fieldValue name='FwdAnchorLightScalevalue='42 42 42'/>
201                           <fieldValue name='AnchorLightsOnOffSwitchvalue='0 0 0'/>
202                           <fieldValue name='AftAnchorLightPositionvalue='-10 10 0'/>
203                           <fieldValue name='AftAnchorLightScalevalue='1 1 1'/>
204                      </ProtoInstance>
205                 </Transform>
206            </LOD>
207       </Scene>
208  </X3D>
<!--

<!--
Event Graph ROUTE Table shows event connections.
-->
<!-- to top DEF nodes index: CopyThisNode, GreaterThan6000yds, UpTo1000yds, UpTo2000yds, UpTo3000Yds, UpTo4000Yds, UpTo5000Yds, UpTo6000Yds

Index for Viewpoint nodes: Viewpoint_1, Viewpoint_2, Viewpoint_3, Viewpoint_4, Viewpoint_5, Viewpoint_6, Viewpoint_7

Index for ExternProtoDeclare definition: RunningLights
-->
X3D Tooltips element index: Background, ExternProtoDeclare, field, fieldValue, Group, head, LOD, meta, NavigationInfo, ProtoInstance, Scene, Transform, Viewpoint, WorldInfo, X3D, plus documentation for accessType definitions, type definitions, XML data types, and field types

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

line 53
ProtoInstance
RunningLights
No direct ROUTE connection found for events to/from this node.
This ProtoInstance contains SFNode/MFNode fieldValue declarations with
direct access to other nodes, and thus has potential to produce run-time animation. 

line 75
ProtoInstance
RunningLights
No direct ROUTE connection found for events to/from this node.
This ProtoInstance contains SFNode/MFNode fieldValue declarations with
direct access to other nodes, and thus has potential to produce run-time animation. 

line 97
ProtoInstance
RunningLights
No direct ROUTE connection found for events to/from this node.
This ProtoInstance contains SFNode/MFNode fieldValue declarations with
direct access to other nodes, and thus has potential to produce run-time animation. 

line 119
ProtoInstance
RunningLights
No direct ROUTE connection found for events to/from this node.
This ProtoInstance contains SFNode/MFNode fieldValue declarations with
direct access to other nodes, and thus has potential to produce run-time animation. 

line 141
ProtoInstance
RunningLights
No direct ROUTE connection found for events to/from this node.
This ProtoInstance contains SFNode/MFNode fieldValue declarations with
direct access to other nodes, and thus has potential to produce run-time animation. 

line 163
ProtoInstance
RunningLights
No direct ROUTE connection found for events to/from this node.
This ProtoInstance contains SFNode/MFNode fieldValue declarations with
direct access to other nodes, and thus has potential to produce run-time animation. 

line 185
ProtoInstance
RunningLights
No direct ROUTE connection found for events to/from this node.
This ProtoInstance contains SFNode/MFNode fieldValue declarations with
direct access to other nodes, and thus has potential to produce run-time animation. 

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/RunningLights/RunningLightsExampleIndex.html -->
<!-- Version control at
https://sourceforge.net/p/x3d/code/HEAD/tree/www.web3d.org/x3d/content/examples/Savage/ShipsMilitary/RunningLights/RunningLightsExample.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)
    <ProtoInstance name='ProtoName'> <field name='fieldName'/> </ProtoInstance> -->

to top <!-- For additional help information about X3D scenes, please see X3D Tooltips, X3D Resources, and X3D Scene Authoring Hints. -->