| 1 |
<?xml version="1.0" encoding="UTF-8"?>
|
| 2 |
<!DOCTYPE X3D PUBLIC "ISO//Web3D//DTD X3D 3.2//EN" "https://www.web3d.org/specifications/x3d-3.2.dtd">
|
| 3 | <X3D profile='Immersive' version='3.2' xmlns:xsd='http://www.w3.org/2001/XMLSchema-instance' xsd:noNamespaceSchemaLocation='https://www.web3d.org/specifications/x3d-3.2.xsd'> |
| 4 | <head> |
| 5 | <meta name='title' content=' PirateMotherSkiffAnimation.x3d '/> |
| 6 | <meta name='description' content='Mother Skiff circling the ocean at night'/> |
| 7 | <meta name='creator' content='Chad R Hutchins'/> |
| 8 | <meta name='created' content='5 May 2011'/> |
| 9 | <meta name='modified' content='20 October 2019'/> |
| 10 | <meta name='reference' content=' PirateMotherSkiffMv3204Project.ppt '/> |
| 11 | <meta name='reference' content=' PirateMotherSkiffMv3204Project.pdf '/> |
| 12 | <meta name='reference' content=' http://www.3dtexture.net/img-blue-water-ocean-texture-250.htm '/> |
| 13 |
<meta name='Image' content='Ocean.png' />
|
| 14 | <meta name='subject' content='Piracy'/> |
| 15 | <meta name='identifier' content=' https://www.web3d.org/x3d/content/examples/Savage/ShipsCivilian/Piracy/PirateMotherSkiffAnimation.x3d '/> |
| 16 | <meta name='generator' content='X3D-Edit, https://www.web3d.org/x3d/tools/X3D-Edit'/> |
| 17 | <meta name='license' content='../../license.html'/> |
| 18 | </head> |
| 19 | <Scene> |
| 20 | <!-- Viewpoints --> |
| 21 | <WorldInfo title='PirateMotherSkiffAnimation.x3d'/> |
| 22 | <Viewpoint description='Starting Point' orientation='1 0 0 -0.1636' position='0 10 50'/> |
| 23 | <Viewpoint description='Looking from -80 meters out' fieldOfView='1.3963' orientation='-0.0017 0.9983 0.0584 3.0829' position='0 10 -80'/> |
| 24 | <Viewpoint description='UAV View' fieldOfView='1.57079' orientation='0 0.7415 0.671 -3.1416' position='0 75 0'/> |
| 25 | <Group> |
| 26 | <!-- Billboard Pirate Flag and Text --> |
| 27 | <Transform translation='-20 5 -40'> |
| 28 | <Billboard> |
| 29 | <Transform translation='-24 7 -20'> |
| 30 | <Shape> |
| 31 | <Box size='17 5 0.1'/> |
| 32 | <Appearance> |
| 33 | <Material diffuseColor='0 0 0'/> |
| 34 |
<ImageTexture
url=' "JollyRoger.png
" "https://www.web3d.org/x3d/content/examples/Savage/ShipsCivilian/Piracy/JollyRoger.png
" '/>
|
| 35 | </Appearance> |
| 36 | </Shape> |
| 37 |
<!-- ROUTE information for StartPirateMovement node:
[from touchTime to PirateTime.startTime
]
-->
<TouchSensor DEF='StartPirateMovement' description='Touch here to move Pirate Skiff'/> |
| 38 | </Transform> |
| 39 | <Transform translation='-30 3.75 -19'> |
| 40 | <Shape> |
| 41 | <Text string='"Click Here to Begin"'> |
| 42 | <FontStyle justify='"BEGIN" "BEGIN"' size='2'/> |
| 43 | </Text> |
| 44 | <Appearance> |
| 45 | <Material diffuseColor='1 1 1'/> |
| 46 | </Appearance> |
| 47 | </Shape> |
| 48 | </Transform> |
| 49 | </Billboard> |
| 50 | </Transform> |
| 51 | <!-- Ocean --> |
| 52 |
<!-- ROUTE information for OceanTransform node:
[from OceanMover.value_changed to set_translation
]
-->
<Transform DEF='OceanTransform'> |
| 53 | <Shape> |
| 54 | <Box size='600 1 500'/> |
| 55 | <Appearance> |
| 56 | <Material diffuseColor='0.380392 0.607843 1'/> |
| 57 |
<ImageTexture
url=' "Ocean.png
" "https://www.web3d.org/x3d/content/examples/Savage/ShipsCivilian/Piracy/Ocean.png
" '/>
|
| 58 | </Appearance> |
| 59 | </Shape> |
| 60 | </Transform> |
| 61 | <!-- Ocean interpolator, time sensor, and route --> |
| 62 |
<!-- ROUTE information for OceanMover node:
[from OceanTimer.fraction_changed to set_fraction
]
[from value_changed to OceanTransform.set_translation
]
-->
<PositionInterpolator DEF='OceanMover' key='0 0.2 0.4 0.6 0.8 0.9 1' keyValue='0 0.9 0 0 1 0 0 0.8 0 0 0.9 0 0 1 0 0 0.8 0 0 0.9 0'/> |
| 63 |
<!-- ROUTE information for OceanTimer node:
[from fraction_changed to OceanMover.set_fraction
]
-->
<TimeSensor DEF='OceanTimer' cycleInterval='7' loop='true'/> |
| 64 | < ROUTE fromNode='OceanMover' fromField='value_changed' toNode='OceanTransform' toField='set_translation'/> |
| 65 | < ROUTE fromNode='OceanTimer' fromField='fraction_changed' toNode='OceanMover' toField='set_fraction'/> |
| 66 | <!-- Mother Ship Inline --> |
| 67 |
<!-- ROUTE information for PirateTranslation node:
[from PirateMovement.value_changed to translation
]
[from PirateOrientation.value_changed to rotation
]
-->
<Transform DEF='PirateTranslation' translation='-12 1 0'> |
| 68 | <Inline url=' "PirateMotherSkiff.x3d" "https://www.web3d.org/x3d/content/examples/Savage/ShipsCivilian/Piracy/PirateMotherSkiff.x3d" '/> |
| 69 | </Transform> |
| 70 | <!-- Pirate Ship interpolators, time sensor, and routes --> |
| 71 |
<!-- ROUTE information for PirateMovement node:
[from PirateTime.fraction_changed to set_fraction
]
[from value_changed to PirateTranslation.translation
]
-->
<PositionInterpolator DEF='PirateMovement' key='0 0.2 0.25 0.45 0.5 0.7 0.75 0.95 1' keyValue='-12 1 0 15 1 0 15 1 0 20 1 -50 20 1 -50 -50 1 -50 -50 1 -50 -12 1 0 -12 1 0'/> |
| 72 |
<!-- ROUTE information for PirateOrientation node:
[from PirateTime.fraction_changed to set_fraction
]
[from value_changed to PirateTranslation.rotation
]
-->
<OrientationInterpolator DEF='PirateOrientation' key='0 0.2 0.25 0.45 0.5 0.7 0.75 0.95 1' keyValue='0 1 0 0 0 1 0 0 0 1 0 1.57 0 1 0 1.57 0 1 0 3.14 0 1 0 3.14 0 1 0 5.4105 0 1 0 5.4105 0 1 0 6.283'/> |
| 73 |
<!-- ROUTE information for PirateTime node:
[from StartPirateMovement.touchTime to startTime
]
[from fraction_changed to PirateMovement.set_fraction
]
[from fraction_changed to PirateOrientation.set_fraction
]
-->
<TimeSensor DEF='PirateTime' cycleInterval='20'/> |
| 74 | < ROUTE fromNode='PirateMovement' fromField='value_changed' toNode='PirateTranslation' toField='translation'/> |
| 75 | < ROUTE fromNode='PirateOrientation' fromField='value_changed' toNode='PirateTranslation' toField='rotation'/> |
| 76 | < ROUTE fromNode='StartPirateMovement' fromField='touchTime' toNode='PirateTime' toField='startTime'/> |
| 77 | < ROUTE fromNode='PirateTime' fromField='fraction_changed' toNode='PirateMovement' toField='set_fraction'/> |
| 78 | < ROUTE fromNode='PirateTime' fromField='fraction_changed' toNode='PirateOrientation' toField='set_fraction'/> |
| 79 | </Group> |
| 80 | </Scene> |
| 81 | </X3D> |
Event Graph ROUTE Table entries with 7 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.
|
StartPirateMovement
TouchSensor touchTime SFTime |
PirateTime
TimeSensor startTime SFTime |
then
|
PirateTime
TimeSensor fraction_changed SFFloat |
PirateMovement
PositionInterpolator set_fraction SFFloat |
then
|
PirateMovement
PositionInterpolator value_changed SFVec3f |
PirateTranslation
Transform translation SFVec3f |
|||
|
then
|
PirateTime
TimeSensor fraction_changed SFFloat |
PirateOrientation
OrientationInterpolator set_fraction SFFloat |
then
|
PirateOrientation
OrientationInterpolator value_changed SFRotation |
PirateTranslation
Transform rotation SFRotation |
|||||
|
OceanTimer
TimeSensor fraction_changed SFFloat |
OceanMover
PositionInterpolator set_fraction SFFloat |
then
|
OceanMover
PositionInterpolator value_changed SFVec3f |
OceanTransform
Transform set_translation SFVec3f |
<!--
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.
-->