<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE X3D PUBLIC "ISO//Web3D//DTD X3D 3.0//EN" "https://www.web3d.org/specifications/x3d-3.0.dtd">
<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 '>
<head>
<meta name='titlecontent='AllenDuttonVillage.x3d'/>
<meta name='creatorcontent='LT Allen Dutton'/>
<meta name='createdcontent='26 February 2001'/>
<meta name='modifiedcontent='20 October 2019'/>
<meta name='descriptioncontent='Primitive village. Move mouse over the hut roofs to see a demonstration of sensors and interpolators'/>
<meta name='identifiercontent=' https://www.web3d.org/x3d/content/examples/Basic/StudentProjects/AllenDuttonVillage.x3d '/>
<meta name='generatorcontent='X3D-Edit 3.3, https://savage.nps.edu/X3D-Edit'/>
<meta name='licensecontent=' ../license.html'/>
</head>
<!-- -->
<Scene>
<WorldInfo title='AllenDuttonVillage.x3d'/>
<Viewpoint description='View from 80m awayorientation='-1 0 0 0.5position='0 60 100'/>
<Viewpoint description='Default viewpoint at (0 0 10) is way too close!! That is a bad place to be, provide a replacement viewpoint instead.'/>
<Background skyColor='0 0 .7'/>
<DirectionalLight color='1 1 0.8direction='0 -1 0intensity='0.5'/>
<Group>
<Transform translation='0 -3.5 0'>
<Shape>
<Appearance>
<Material diffuseColor='0 .7 0'/>
<ImageTexture DEF='grass'
  url=' "grass.jpg" "https://www.web3d.org/x3d/content/examples/Basic/StudentProjects/grass.jpg" '/>

<TextureTransform scale='20 20'/>
</Appearance>
<Box size='160 1 160'/>
</Shape>
</Transform>
</Group>
<Group>
<Transform rotation='0 1 0 2.7scale='0.01 0.01 0.01translation='5 12.3 30'> </Transform>
<Transform translation='5 0 30'>
<Shape>
<Box size='5 5 5'/>
<Appearance>
<Material diffuseColor='0.5 0.5 0.5'/>
</Appearance>
</Shape>
</Transform>
</Group>
<Group DEF='HUT'>
<Shape>
<Appearance>
<Material DEF='BROWNdiffuseColor='0.5 0.4 0.3'/>
<ImageTexture DEF='wood'
  url=' "wood.gif" "https://www.web3d.org/x3d/content/examples/Basic/StudentProjects/wood.gif" '/>

<TextureTransform rotation='1.57079scale='1.0 4.0'/>
</Appearance>
<Cylinder bottom='falseheight='6radius='4top='false'/>
</Shape>
<!-- ROUTE information for ROOF_TRANSFORM node:  [from RoofRotateInterpolator.value_changed to set_rotation ] [from RoofTranslateInterpolator.value_changed to set_translation ] -->
<Transform DEF='ROOF_TRANSFORMtranslation='0 4 0'>
<Shape>
<Appearance>
<Material DEF='YELLOWdiffuseColor='0.8 0.8 0'/>
<ImageTexture DEF='straw'
  url=' "straw.jpg" "https://www.web3d.org/x3d/content/examples/Basic/StudentProjects/straw.jpg" '/>
</Appearance>
<Cone bottomRadius='6height='4'/>
</Shape>
<!-- ROUTE information for MyTouchSensor node:  [from isOver to CLOCK.set_enabled ] -->
<TouchSensor DEF='MyTouchSensordescription='raise the roof'/>
</Transform>
<!-- ROUTE information for CLOCK node:  [from MyTouchSensor.isOver to set_enabled ] [from fraction_changed to RoofRotateInterpolator.set_fraction ] [from fraction_changed to RoofTranslateInterpolator.set_fraction ] -->
<TimeSensor DEF='CLOCKcycleInterval='4enabled='falseloop='true'/>
<!-- ROUTE information for RoofRotateInterpolator node:  [from CLOCK.fraction_changed to set_fraction ] [from value_changed to ROOF_TRANSFORM.set_rotation ] -->
<OrientationInterpolator DEF='RoofRotateInterpolatorkey='0.0 0.50 1.0keyValue='0.0 1.0 0.0 0.0 0.0 1.0 0.0 3.14 0.0 1.0 0.0 6.28'/>
<!-- ROUTE information for RoofTranslateInterpolator node:  [from CLOCK.fraction_changed to set_fraction ] [from value_changed to ROOF_TRANSFORM.set_translation ] -->
<PositionInterpolator DEF='RoofTranslateInterpolatorkey='0.0 0.5 1.0keyValue='0.0 4.0 0.0 0.0 8.0 0.0 0.0 4.0 0.0'/>
</Group>
<Group DEF='CONE_TREE'>
<Transform translation='10 0 0'>
<Shape>
<Appearance>
<Material USE='BROWN'/>
<ImageTexture USE='wood'/>
</Appearance>
<Cylinder bottom='falseheight='6radius='0.5top='false'/>
</Shape>
</Transform>
<Transform translation='10 3 0'>
<Shape>
<Appearance>
<Material diffuseColor='0 .3 0'/>
<ImageTexture DEF='leaves'
  url=' "leaves.jpg" "https://www.web3d.org/x3d/content/examples/Basic/StudentProjects/leaves.jpg" '/>
</Appearance>
<Cone bottomRadius='2height='6'/>
</Shape>
</Transform>
</Group>
<Group DEF='SPHERE_TREE'>
<Transform translation='-30 0 -3'>
<Shape>
<Appearance>
<Material USE='BROWN'/>
<ImageTexture USE='wood'/>
</Appearance>
<Cylinder bottom='falseheight='6radius='0.5top='false'/>
</Shape>
</Transform>
<Transform translation='-30 6 -3'>
<Shape>
<Appearance>
<Material diffuseColor='0 .3 0'/>
<ImageTexture USE='leaves'/>
</Appearance>
<Sphere radius='3.5'/>
</Shape>
</Transform>
</Group>
<Group>
<Transform scale='.8 1 .8translation='-45 0 10'>
<Group USE='HUT'/>
<Transform translation='0 11 0'>
<Shape>
<Text string='"Visitor's" "Center"'>
<FontStyle justify='"MIDDLE" "MIDDLE"size='5.0style='BOLDITALIC'/>
</Text>
<Appearance>
<Material diffuseColor='0.8 0.1 0.4'/>
</Appearance>
</Shape>
</Transform>
</Transform>
</Group>
<Group>
<Transform scale='1.5 1 1.5translation='30 0 20'>
<Group USE='HUT'/>
<Transform translation='1 8 0'>
<Shape>
<Text string='"Chief's Hut"'>
<FontStyle justify='"MIDDLE" "MIDDLE"size='4.0style='BOLD'/>
</Text>
<Appearance>
<Material diffuseColor='0.8 0.1 0.4'/>
</Appearance>
</Shape>
</Transform>
</Transform>
</Group>
<Group>
<Transform scale='.5 1 .5translation='-10 0 20'>
<Group USE='HUT'/>
<Transform translation='0 24 0'>
<Shape>
<Text string='"Outhouse"'>
<FontStyle family='"SANS"horizontal='falsejustify='"MIDDLE" "MIDDLE"size='5.0style='BOLD'/>
</Text>
<Appearance>
<Material diffuseColor='0.8 0.1 0.4'/>
</Appearance>
</Shape>
</Transform>
</Transform>
</Group>
<Group>
<Transform scale='0.5 1.0 0.5translation='30 0 30'>
<Group USE='SPHERE_TREE'/>
</Transform>
</Group>
<Group>
<Transform scale='2 1.0 2translation='-45 0 30'>
<Group USE='CONE_TREE'/>
</Transform>
</Group>
<ROUTE fromNode='MyTouchSensorfromField='isOvertoNode='CLOCKtoField='set_enabled'/>
<ROUTE fromNode='CLOCKfromField='fraction_changedtoNode='RoofRotateInterpolatortoField='set_fraction'/>
<ROUTE fromNode='RoofRotateInterpolatorfromField='value_changedtoNode='ROOF_TRANSFORMtoField='set_rotation'/>
<ROUTE fromNode='CLOCKfromField='fraction_changedtoNode='RoofTranslateInterpolatortoField='set_fraction'/>
<ROUTE fromNode='RoofTranslateInterpolatorfromField='value_changedtoNode='ROOF_TRANSFORMtoField='set_translation'/>
</Scene>
</X3D>
<!--

Index for DEF nodes : BROWN, CLOCK, CONE_TREE, grass, HUT, leaves, MyTouchSensor, ROOF_TRANSFORM, RoofRotateInterpolator, RoofTranslateInterpolator, SPHERE_TREE, straw, wood, YELLOW

Index for Viewpoint images : Viewpoint_1, Viewpoint_2
-->

<!-- 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)
-->

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