<?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='Interchange'  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=' Figure10_09ThreeBlinkingShapes.x3d '/>
<meta name='creatorcontent='Figure 10.9, The VRML 2.0 Sourcebook, Copyright [1997] By Andrea L. Ames, David R. Nadeau, and John L. Moreland'/>
<meta name='referencecontent=' http://www.wiley.com/legacy/compbooks/vrml2sbk/ch10/10fig09.htm '/>
<meta name='transcribercontent='Don Brutzman'/>
<meta name='createdcontent='15 August 2000'/>
<meta name='modifiedcontent='20 October 2019'/>
<meta name='descriptioncontent='Three blinking shapes, each controlled using independent ColorInterpolator nodes.'/>
<meta name='identifiercontent=' https://www.web3d.org/x3d/content/examples/Vrml2Sourcebook/Chapter10Materials/Figure10_09ThreeBlinkingShapes.x3d '/>
<meta name='generatorcontent='X3D-Edit 3.3, https://savage.nps.edu/X3D-Edit'/>
<meta name='licensecontent=' ../../license.html'/>
</head>
<!--

to top <!-- Event Graph ROUTE Table shows event connections -->
 
<!-- Index for DEF nodes: BALL_COLOR_1, BALL_COLOR_2, BALL_COLOR_3, CLOCK_1, CLOCK_2, CLOCK_3, COLOR_PATH_1, COLOR_PATH_2, COLOR_PATH_3

Index for Viewpoint node: Viewpoint_1
-->
<Scene>
<WorldInfo title='Figure10_09ThreeBlinkingShapes.x3d'/>
<Viewpoint description='Blinking shapesposition='0 0 8'/>
<Group>
<Transform translation='-2 0 0'>
<Shape>
<Appearance>
<!-- ROUTE information for BALL_COLOR_1 node:  [from COLOR_PATH_1.value_changed to set_emissiveColor ] -->
<Material DEF='BALL_COLOR_1diffuseColor='0.4 0.4 0.4'/>
</Appearance>
<Box size='1.5 1.5 1.5'/>
</Shape>
</Transform>
<Shape>
<Appearance>
<!-- ROUTE information for BALL_COLOR_2 node:  [from COLOR_PATH_2.value_changed to set_emissiveColor ] -->
<Material DEF='BALL_COLOR_2diffuseColor='0.4 0.4 0.4'/>
</Appearance>
<Sphere/>
</Shape>
<Transform translation='2 0 0'>
<Shape>
<Appearance>
<!-- ROUTE information for BALL_COLOR_3 node:  [from COLOR_PATH_3.value_changed to set_emissiveColor ] -->
<Material DEF='BALL_COLOR_3diffuseColor='0.4 0.4 0.4'/>
</Appearance>
<Cone/>
</Shape>
</Transform>
<!-- ROUTE information for CLOCK_1 node:  [from fraction_changed to COLOR_PATH_1.set_fraction ] -->
<TimeSensor DEF='CLOCK_1cycleInterval='2loop='true'/>

<!-- ROUTE information for CLOCK_2 node:  [from fraction_changed to COLOR_PATH_2.set_fraction ] -->
<TimeSensor DEF='CLOCK_2cycleInterval='3.6loop='true'/>

<!-- ROUTE information for CLOCK_3 node:  [from fraction_changed to COLOR_PATH_3.set_fraction ] -->
<TimeSensor DEF='CLOCK_3cycleInterval='5loop='true'/>

<!-- ROUTE information for COLOR_PATH_1 node:  [from CLOCK_1.fraction_changed to set_fraction ] [from value_changed to BALL_COLOR_1.set_emissiveColor ] -->
<ColorInterpolator DEF='COLOR_PATH_1key='0.0 0.5 0.5 1.0keyValue='1 1 0 1 1 0 0 0 1 0 0 1'/>

<!-- ROUTE information for COLOR_PATH_2 node:  [from CLOCK_2.fraction_changed to set_fraction ] [from value_changed to BALL_COLOR_2.set_emissiveColor ] -->
<ColorInterpolator DEF='COLOR_PATH_2key='0.0 0.5 0.5 1.0keyValue='0.5 0.5 0.5 0.5 0.5 0.5 1 1 1 1 1 1'/>

<!-- ROUTE information for COLOR_PATH_3 node:  [from CLOCK_3.fraction_changed to set_fraction ] [from value_changed to BALL_COLOR_3.set_emissiveColor ] -->
<ColorInterpolator DEF='COLOR_PATH_3key='0.0 0.5 0.5 1.0keyValue='0 1 0 0 1 0 1 0 0 1 0 0'/>
</Group>
< ROUTE  fromNode=' CLOCK_1' fromField='fraction_changed' toNode=' COLOR_PATH_1' toField='set_fraction'/>
< ROUTE  fromNode=' CLOCK_2' fromField='fraction_changed' toNode=' COLOR_PATH_2' toField='set_fraction'/>
< ROUTE  fromNode=' CLOCK_3' fromField='fraction_changed' toNode=' COLOR_PATH_3' toField='set_fraction'/>
< ROUTE  fromNode=' COLOR_PATH_1' fromField='value_changed' toNode=' BALL_COLOR_1' toField='set_emissiveColor'/>
< ROUTE  fromNode=' COLOR_PATH_2' fromField='value_changed' toNode=' BALL_COLOR_2' toField='set_emissiveColor'/>
< ROUTE  fromNode=' COLOR_PATH_3' fromField='value_changed' toNode=' BALL_COLOR_3' toField='set_emissiveColor'/>
</Scene>
</X3D>
<!--

to top <!-- Event Graph ROUTE Table shows event connections -->
 
<!-- Index for DEF nodes: BALL_COLOR_1, BALL_COLOR_2, BALL_COLOR_3, CLOCK_1, CLOCK_2, CLOCK_3, COLOR_PATH_1, COLOR_PATH_2, COLOR_PATH_3

Index for Viewpoint node: Viewpoint_1
-->

Event Graph ROUTE Table entries with 6 ROUTE connections total, showing X3D event-model relationships for this scene.

Each row shows an event cascade that may occur during a single timestamp interval between frame renderings, as part of the X3D execution model.

CLOCK_1
TimeSensor
fraction_changed
SFFloat

ROUTE
event to
(1)
COLOR_PATH_1
ColorInterpolator
set_fraction
SFFloat

 
 
then
COLOR_PATH_1
ColorInterpolator
value_changed
SFColor

ROUTE
event to
(2)
BALL_COLOR_1
Material
set_emissiveColor
SFColor


CLOCK_2
TimeSensor
fraction_changed
SFFloat

ROUTE
event to
(1)
COLOR_PATH_2
ColorInterpolator
set_fraction
SFFloat

 
 
then
COLOR_PATH_2
ColorInterpolator
value_changed
SFColor

ROUTE
event to
(2)
BALL_COLOR_2
Material
set_emissiveColor
SFColor


CLOCK_3
TimeSensor
fraction_changed
SFFloat

ROUTE
event to
(1)
COLOR_PATH_3
ColorInterpolator
set_fraction
SFFloat

 
 
then
COLOR_PATH_3
ColorInterpolator
value_changed
SFColor

ROUTE
event to
(2)
BALL_COLOR_3
Material
set_emissiveColor
SFColor


-->

<!-- Online at
https://www.web3d.org/x3d/content/examples/Vrml2Sourcebook/Chapter10Materials/Figure10_09ThreeBlinkingShapesIndex.html -->
<!-- Version control at
https://sourceforge.net/p/x3d/code/HEAD/tree/www.web3d.org/x3d/content/examples/Vrml2Sourcebook/Chapter10Materials/Figure10_09ThreeBlinkingShapes.x3d -->

<!-- Color legend: X3D terminology <X3dNode DEF='idName' field='value'/> matches XML terminology <XmlElement DEF='idName' attribute='value'/>
(Light-blue background: event-based behavior node or statement) (Grey background inside box: inserted documentation) (Magenta background: X3D Extensibility)
-->

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