<?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='Interactiveversion='3.2xmlns:xsd='http://www.w3.org/2001/XMLSchema-instance' xsd:noNamespaceSchemaLocation=' http://www.web3d.org/specifications/x3d-3.2.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='20 November 2011'/>
<meta name='identifiercontent=' http://X3dGraphics.com/examples/X3dForWebAuthors/Chapter09-EventUtilitiesScripting/IntegerSequencerRoadSignSwitcher.x3d '/>
<meta name='generatorcontent='X3D-Edit, 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.2transparency='0'/>
<Viewpoint description='Road sign switcher, 6m awayposition='0 0 6retainUserOffsets='false'/>
<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. -->
<!-- Switch ROUTE:  [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/Chapter07-EventAnimationInterpolation/RoadSignRoadWorkAhead.jpg" '/>
</Appearance>
</Shape>
<Shape> </Shape>
<Shape> </Shape>
<Shape> </Shape>
</Switch>
<!-- Sequencer ROUTEs:  [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'/>
<!-- Time ROUTE:  [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'/> -->