<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE X3D PUBLIC "ISO//Web3D//DTD X3D 3.2//EN" "http://www.web3d.org/specifications/x3d-3.2.dtd">
<X3D profile='Immersive' version='3.2 xmlns:xsd='http://www.w3.org/2001/XMLSchema-instance' xsd:noNamespaceSchemaLocation =' http://www.web3d.org/specifications/x3d-3.2.xsd '>
<head>
<meta name='titlecontent='PirateMotherSkiffAnimation.x3d'/>
<meta name='descriptioncontent='Mother Skiff circling the ocean at night'/>
<meta name='creatorcontent='Chad R Hutchins'/>
<meta name='createdcontent='5 May 2011'/>
<meta name='modifiedcontent='18 March 2013'/>
<meta name='referencecontent='PirateMotherSkiffMv3204Project.ppt'/>
<meta name='referencecontent='PirateMotherSkiffMv3204Project.pdf'/>
<meta name='referencecontent=' http://www.3dtexture.net/img-blue-water-ocean-texture-250.htm '/>
<meta name='Imagecontent='Ocean.png'/>
<meta name='subjectcontent='Piracy'/>
<meta name='identifiercontent=' https://savage.nps.edu/Savage/ShipsCivilian/Piracy/PirateMotherSkiffAnimation.x3d '/>
<meta name='generatorcontent='X3D-Edit, https://savage.nps.edu/X3D-Edit'/>
<meta name='licensecontent=' ../../license.html'/>
</head>
<!-- -->
<Scene>
<!-- Viewpoints -->
<Viewpoint description='Starting Pointorientation='1 0 0 -0.1636position='0 10 50'/>
<Viewpoint description='Looking from -80 meters outfieldOfView='1.3963orientation='-0.0017 0.9983 0.0584 3.0829position='0 10 -80'/>
<Viewpoint description='UAV ViewfieldOfView='1.57079orientation='0 0.7415 0.671 -3.1416position='0 75 0'/>
<Group>
<!-- Billboard Pirate Flag and Text -->
<Transform translation='-20 5 -40'>
<Billboard>
<Transform translation='-24 7 -20'>
<Shape>
<Box size='17 5 0.1'/>
<Appearance>
<Material diffuseColor='0 0 0'/>
<ImageTexture
  url=' "JollyRoger.png" "https://savage.nps.edu/Savage/ShipsCivilian/Piracy/JollyRoger.png" '/>
</Appearance>
</Shape>
<!-- ROUTE information for StartPirateMovement node:  [from touchTime to PirateTime.startTime ] -->
<TouchSensor DEF='StartPirateMovementdescription='Touch here to move Pirate Skiff'/>
</Transform>
<Transform translation='-30 3.75 -19'>
<Shape>
<Text string='"Click Here to Begin"'>
<FontStyle justify='"BEGIN" "BEGIN"size='2'/>
</Text>
<Appearance>
<Material diffuseColor='1 1 1'/>
</Appearance>
</Shape>
</Transform>
</Billboard>
</Transform>
<!-- Ocean -->
<!-- ROUTE information for OceanTransform node:  [from OceanMover.value_changed to set_translation ] -->
<Transform DEF='OceanTransform'>
<Shape>
<Box size='600 1 500'/>
<Appearance>
<Material diffuseColor='0.380392 0.607843 1'/>
<ImageTexture
  url=' "Ocean.png" "https://savage.nps.edu/Savage/ShipsCivilian/Piracy/Ocean.png" '/>
</Appearance>
</Shape>
</Transform>
<!-- Ocean interpolator, time sensor, and route -->
<!-- ROUTE information for OceanMover node:  [from OceanTimer.fraction_changed to set_fraction ] [from value_changed to OceanTransform.set_translation ] -->
<PositionInterpolator DEF='OceanMoverkey='0 0.2 0.4 0.6 0.8 0.9 1keyValue='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'/>
<!-- ROUTE information for OceanTimer node:  [from fraction_changed to OceanMover.set_fraction ] -->
<TimeSensor DEF='OceanTimercycleInterval='7loop='true'/>
<ROUTE fromNode='OceanMoverfromField='value_changedtoNode='OceanTransformtoField='set_translation'/>
<ROUTE fromNode='OceanTimerfromField='fraction_changedtoNode='OceanMovertoField='set_fraction'/>
<!-- Mother Ship Inline -->
<!-- ROUTE information for PirateTranslation node:  [from PirateMovement.value_changed to translation ] [from PirateOrientation.value_changed to rotation ] -->
<Transform DEF='PirateTranslationtranslation='-12 1 0'> </Transform>
<!-- Pirate Ship interpolators, time sensor, and routes -->
<!-- ROUTE information for PirateMovement node:  [from PirateTime.fraction_changed to set_fraction ] [from value_changed to PirateTranslation.translation ] -->
<PositionInterpolator DEF='PirateMovementkey='0 0.2 0.25 0.45 0.5 0.7 0.75 0.95 1keyValue='-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'/>
<!-- ROUTE information for PirateOrientation node:  [from PirateTime.fraction_changed to set_fraction ] [from value_changed to PirateTranslation.rotation ] -->
<OrientationInterpolator DEF='PirateOrientationkey='0 0.2 0.25 0.45 0.5 0.7 0.75 0.95 1keyValue='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'/>
<!-- 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='PirateTimecycleInterval='20'/>
<ROUTE fromNode='PirateMovementfromField='value_changedtoNode='PirateTranslationtoField='translation'/>
<ROUTE fromNode='PirateOrientationfromField='value_changedtoNode='PirateTranslationtoField='rotation'/>
<ROUTE fromNode='StartPirateMovementfromField='touchTimetoNode='PirateTimetoField='startTime'/>
<ROUTE fromNode='PirateTimefromField='fraction_changedtoNode='PirateMovementtoField='set_fraction'/>
<ROUTE fromNode='PirateTimefromField='fraction_changedtoNode='PirateOrientationtoField='set_fraction'/>
</Group>
</Scene>
</X3D>
<!--

Index for DEF nodes : OceanMover, OceanTimer, OceanTransform, PirateMovement, PirateOrientation, PirateTime, PirateTranslation, StartPirateMovement

Index for Viewpoint images : Viewpoint_1, Viewpoint_2, Viewpoint_3
-->

<!-- Color key: <X3dNode DEF='idName' field='value'/> matches <XmlElement DEF='idName' attribute='value'/>
(Light blue background: behavior node) (Grey background: inserted documentation) (Magenta background: X3D Extensibility)
-->

<!-- Additional help information about X3D scenes: X3D Resources, X3D Scene Authoring Hints and X3D Tooltips -->