| 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='title' content=' Lighthouse.x3d '/> |
| 6 | <meta name='creator' content='Lo Weng Wah'/> |
| 7 | <meta name='created' content='28 August 2000'/> |
| 8 | <meta name='modified' content='20 October 2019'/> |
| 9 | <meta name='modified' content='20 October 2019'/> |
| 10 | <meta name='description' content='Model of a Lighthouse with Rotating Light Beam'/> |
| 11 | <meta name='identifier' content=' https://www.web3d.org/x3d/content/examples/Savage/ShipsMilitary/PatrolCraftNanuchkaLighthouseRussia/Lighthouse.x3d '/> |
| 12 | <meta name='generator' content='X3D-Edit 3.2, https://www.web3d.org/x3d/tools/X3D-Edit'/> |
| 13 | <meta name='license' content='../../license.html'/> |
| 14 | </head> |
| 15 | <Scene> |
| 16 | <WorldInfo title='Lighthouse.x3d'/> |
| 17 | <Viewpoint description='Light_View' orientation='0.2 0 0 -0.2' position='10 10 50'/> |
| 18 | <Viewpoint description='Bird View' orientation='1 0 0 -1.4' position='10 50 10'/> |
| 19 | <Viewpoint description='15m away' position='0 0 15'/> |
| 20 | <Background groundAngle='1.309 1.570796' groundColor='0.0 0.3 0.7 .0 .1 .8 0.0 0.0 0.0' skyAngle='1.309 1.571' skyColor='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='RotatingLightBeam' center='20 0 0' translation='-20 0 0'> |
| 24 | <Shape> |
| 25 | <Appearance> |
| 26 | <Material emissiveColor='.9 .9 .2' specularColor='1 1 0' transparency='0.3'/> |
| 27 | </Appearance> |
| 28 | <Extrusion DEF='Full_Cylinder' creaseAngle='.785' crossSection='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 0' scale='1.6 1.6 0.4 0.4' solid='false' spine='-20 0 0 20 0 0'/> |
| 29 | </Shape> |
| 30 |
<!-- ROUTE information for Clock node:
[from fraction_changed to ColumnPath.set_fraction
]
-->
<TimeSensor DEF='Clock' cycleInterval='20' loop='true'/> |
| 31 |
<!-- ROUTE information for ColumnPath node:
[from Clock.fraction_changed to set_fraction
]
[from value_changed to RotatingLightBeam.set_rotation
]
-->
<OrientationInterpolator DEF='ColumnPath' key='0 0.5 1' keyValue='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 | |
| 46 | <Shape> |
| 47 | <Cylinder height='0.2' radius='1.4'/> |
| 48 | <Appearance> |
| 49 | <Material diffuseColor='1 0 0' shininess='.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.25' height='1'/> |
| 59 | <Appearance> |
| 60 | <Material diffuseColor='0.5 0.5 0.5' shininess='.2'/> |
| 61 | </Appearance> |
| 62 | </Shape> |
| 63 | </Transform> |
| 64 | <Transform rotation='0 0 1 1.57'> |
| 65 | <Shape> |
| 66 | <Extrusion creaseAngle='.785' crossSection='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 0' scale='2.3 2.3 0.7 0.7' solid='false' spine='-12 0 0 0 0 0'/> |
| 67 | <Appearance> |
| 68 | <Material diffuseColor='1 1 1' shininess='.2'/> |
| 69 | </Appearance> |
| 70 | </Shape> |
| 71 | </Transform> |
| 72 | </Transform> |
| 73 | <!-- Mountain --> |
| 74 | <Transform scale='4 2 4' translation='-18 -21 -18'> |
| 75 | <Shape> |
| 76 | <ElevationGrid creaseAngle='2.0' xDimension='9' zDimension='9' height='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.0 0.3 0.4 0.0 0.0 0.4 0.5 0.0 0.0'> |
| 77 | <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| <Material ambientIntensity='0.4' diffuseColor='1 1 1' shininess='.2' specularColor='0.71 0.70 0.56'/> |
| 81 | </Appearance> |
| 82 | </Shape> |
| 83 | </Transform> |
| 84 | <!-- Sea Depiction --> |
| 85 | <Transform DEF='Sea' scale='100 15 100' translation='-100 -22 -100'> |
| 86 | <Shape> |
| 87 | <ElevationGrid creaseAngle='1.57' xDimension='9' zDimension='10' height='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.4' diffuseColor='0 0 1' shininess='.2' specularColor='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 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 |
ColumnPath
OrientationInterpolator set_fraction SFFloat |
then
|
ColumnPath
OrientationInterpolator value_changed SFRotation |
RotatingLightBeam
Transform set_rotation SFRotation |
<!--
Color-coding legend: X3D terminology
<X3dNode
DEF='idName' field='value'/>
matches XML terminology
<XmlElement
DEF='idName' attribute='value'/>
(Light-blue background: event-based behavior node or statement)
(Grey background inside box: inserted documentation)
(Magenta background: X3D Extensibility)
-->
<!--
For additional help information about X3D scenes, please see X3D Tooltips, X3D Resources, and X3D Scene Authoring Hints.
-->