<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE X3D PUBLIC "ISO//Web3D//DTD X3D 3.3//EN" "http://www.web3d.org/specifications/x3d-3.3.dtd">
<X3D profile='Interactive' version='3.3 xmlns:xsd='http://www.w3.org/2001/XMLSchema-instance' xsd:noNamespaceSchemaLocation =' http://www.web3d.org/specifications/x3d-3.3.xsd '>
<head>
<meta name='titlecontent='IntegerSequencerRoadSignSwitcher.x3d'/>
<meta name='descriptioncontent='Switch among different road signs using IntegerSequencer'/>
<meta name='creatorcontent='Don Brutzman'/>
<meta name='createdcontent='2 January 2009'/>
<meta name='modifiedcontent='10 January 2014'/>
<meta name='identifiercontent=' http://X3dGraphics.com/examples/X3dForWebAuthors/Chapter09EventUtilitiesScripting/IntegerSequencerRoadSignSwitcher.x3d '/>
<meta name='generatorcontent='X3D-Edit 3.3, https://savage.nps.edu/X3D-Edit'/>
<meta name='licensecontent=' ../license.html'/>
</head>
<!--

Index for DEF nodes : Frame, Sequencer, SignHolder, Switch, Time

Index for Viewpoint image : Viewpoint_1
-->
<Scene>
<Background groundColor='0.2 0.2 0.2skyColor='0.2 0.2 0.2'/>
<Viewpoint description='Road sign switcher, 6m awayposition='0 0 6'/>
<Shape DEF='Frame'>
<!-- Box framee scaled to be wider, taller and thinner than Box holding image -->
<Box size='3.5 2.7 0.05'/>
<Appearance>
<Material ambientIntensity='0diffuseColor='0 0 0emissiveColor='1 0.442751 0shininess='0.05102specularColor='0.475676 0.475676 0.475676'>
<!-- Universal Media Library: Neon 13 -->
</Material>
</Appearance>
</Shape>
<!-- Modify the whichChoice value in this Switch to 0, 1, 2 or 3 to see the various versions of the model. Select whichChoice= -1 to show nothing. -->
<!-- ROUTE information for Switch node:  [from Sequencer.value_changed to whichChoice ] -->
<Switch DEF='SwitchwhichChoice='0'>
<!-- whichChoice values are 0, 1, 2, 3 for these four children -->
<Shape>
<!-- Box size scaled to match aspect ratio of original images -->
<Box DEF='SignHoldersize='3.072 2.304 0.1'/>
<Appearance>
<!-- each image size reduced from 1-1.5M down to 150-200KB using GIMP for faster downloading, quality still looks good -->
<ImageTexture
  url=' "RoadSignRoadWorkAhead.jpg" "http://X3dGraphics.com/examples/X3dForWebAuthors/Chapter07EventAnimationInterpolation/RoadSignRoadWorkAhead.jpg" '/>
</Appearance>
</Shape>
<Shape> </Shape>
<Shape> </Shape>
<Shape> </Shape>
</Switch>
<!-- ROUTE information for Sequencer node:  [from Time.fraction_changed to set_fraction ] [from value_changed to Switch.whichChoice ] -->
<IntegerSequencer DEF='Sequencerkey='0 0.25 0.5 0.75 1keyValue='0 1 2 3 0containerField='children'/>
<!-- ROUTE information for Time node:  [from fraction_changed to Sequencer.set_fraction ] -->
<TimeSensor DEF='TimecycleInterval='8loop='true'/>
<ROUTE fromNode='SequencerfromField='value_changedtoNode='SwitchtoField='whichChoice'/>
<ROUTE fromNode='TimefromField='fraction_changedtoNode='SequencertoField='set_fraction'/>
</Scene>
</X3D>
<!--

Index for DEF nodes : Frame, Sequencer, SignHolder, Switch, Time

Index for Viewpoint image : Viewpoint_1
-->

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