<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE X3D PUBLIC "ISO//Web3D//DTD X3D 3.3//EN" "https://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
='
https://www.web3d.org/specifications/x3d-3.3.xsd
'>
<head>
</head>
<!--
-->
<Scene>
<WorldInfo title='IntegerSequencerRoadSignSwitcher.x3d'/>
<Background groundColor='0.2 0.2 0.2' skyColor='0.2 0.2 0.2'/>
<Viewpoint description='Road sign switcher, 6m away' position='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='0' diffuseColor='0 0 0' emissiveColor='1 0.442751 0' shininess='0.05102' specularColor='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='Switch' whichChoice='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='SignHolder' size='3.072 2.304 0.1'/>
<Appearance>
</Appearance>
</Shape>
<Shape>
<Box USE='SignHolder'/>
<Appearance>
</Appearance>
</Shape>
<Shape>
<Box USE='SignHolder'/>
<Appearance>
</Appearance>
</Shape>
<Shape>
<Box USE='SignHolder'/>
<Appearance>
</Appearance>
</Shape>
</Switch>
<!-- ROUTE information for Sequencer node:
[from Time.fraction_changed to set_fraction
]
[from value_changed to Switch.whichChoice
]
-->
<IntegerSequencer DEF='Sequencer' key='0 0.25 0.5 0.75 1' keyValue='0 1 2 3 0' containerField='children'/>
<!-- ROUTE information for Time node:
[from fraction_changed to Sequencer.set_fraction
]
-->
<TimeSensor DEF='Time' cycleInterval='8' loop='true'/>
<ROUTE fromNode='Sequencer' fromField='value_changed' toNode='Switch' toField='whichChoice'/>
<ROUTE fromNode='Time' fromField='fraction_changed' toNode='Sequencer' toField='set_fraction'/>
</Scene>
</X3D>
<!--
-->
<!--
Online at https://www.web3d.org/x3d/content/examples/X3dForWebAuthors/Chapter09EventUtilitiesScripting/IntegerSequencerRoadSignSwitcherIndex.html
-->
<!--
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.
-->