| 1 |
<?xml version="1.0" encoding="UTF-8"?>
|
| 2 |
<!DOCTYPE X3D PUBLIC "ISO//Web3D//DTD X3D 3.0//EN" "https://www.web3d.org/specifications/x3d-3.0.dtd">
|
| 3 | <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'> |
| 4 | <head> |
| 5 | <meta name='title' content=' Figure10_09ThreeBlinkingShapes.x3d '/> |
| 6 | <meta name='creator' content='Figure 10.9, The VRML 2.0 Sourcebook, Copyright [1997] By Andrea L. Ames, David R. Nadeau, and John L. Moreland'/> |
| 7 | <meta name='reference' content=' http://www.wiley.com/legacy/compbooks/vrml2sbk/ch10/10fig09.htm '/> |
| 8 | <meta name='translator' content='Don Brutzman'/> |
| 9 | <meta name='created' content='15 August 2000'/> |
| 10 | <meta name='modified' content='20 October 2019'/> |
| 11 | <meta name='description' content='Three blinking shapes, each controlled using independent ColorInterpolator nodes.'/> |
| 12 | <meta name='identifier' content=' https://www.web3d.org/x3d/content/examples/Vrml2Sourcebook/Chapter10Materials/Figure10_09ThreeBlinkingShapes.x3d '/> |
| 13 | <meta name='generator' content='X3D-Edit 3.3, https://www.web3d.org/x3d/tools/X3D-Edit'/> |
| 14 | <meta name='license' content='../../license.html'/> |
| 15 | </head> |
| 16 | <Scene> |
| 17 | <WorldInfo title='Figure10_09ThreeBlinkingShapes.x3d'/> |
| 18 | <Viewpoint description='Blinking shapes' position='0 0 8'/> |
| 19 | <Group> |
| 20 | <Transform translation='-2 0 0'> |
| 21 | <Shape> |
| 22 | <Appearance> |
| 23 |
<!-- ROUTE information for BALL_COLOR_1 node:
[from COLOR_PATH_1.value_changed to set_emissiveColor
]
-->
<Material DEF='BALL_COLOR_1' diffuseColor='0.4 0.4 0.4'/> |
| 24 | </Appearance> |
| 25 | <Box size='1.5 1.5 1.5'/> |
| 26 | </Shape> |
| 27 | </Transform> |
| 28 | <Shape> |
| 29 | <Appearance> |
| 30 |
<!-- ROUTE information for BALL_COLOR_2 node:
[from COLOR_PATH_2.value_changed to set_emissiveColor
]
-->
<Material DEF='BALL_COLOR_2' diffuseColor='0.4 0.4 0.4'/> |
| 31 | </Appearance> |
| 32 | <Sphere/> |
| 33 | </Shape> |
| 34 | <Transform translation='2 0 0'> |
| 35 | <Shape> |
| 36 | <Appearance> |
| 37 |
<!-- ROUTE information for BALL_COLOR_3 node:
[from COLOR_PATH_3.value_changed to set_emissiveColor
]
-->
<Material DEF='BALL_COLOR_3' diffuseColor='0.4 0.4 0.4'/> |
| 38 | </Appearance> |
| 39 | <Cone/> |
| 40 | </Shape> |
| 41 | </Transform> |
| 42 |
<!-- ROUTE information for CLOCK_1 node:
[from fraction_changed to COLOR_PATH_1.set_fraction
]
-->
<TimeSensor DEF='CLOCK_1' cycleInterval='2' loop='true'/> |
| 43 |
<!-- ROUTE information for CLOCK_2 node:
[from fraction_changed to COLOR_PATH_2.set_fraction
]
-->
<TimeSensor DEF='CLOCK_2' cycleInterval='3.6' loop='true'/> |
| 44 |
<!-- ROUTE information for CLOCK_3 node:
[from fraction_changed to COLOR_PATH_3.set_fraction
]
-->
<TimeSensor DEF='CLOCK_3' cycleInterval='5' loop='true'/> |
| 45 |
<!-- 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_1' key='0.0 0.5 0.5 1.0' keyValue='1 1 0 1 1 0 0 0 1 0 0 1'/> |
| 46 |
<!-- 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_2' key='0.0 0.5 0.5 1.0' keyValue='0.5 0.5 0.5 0.5 0.5 0.5 1 1 1 1 1 1'/> |
| 47 |
<!-- 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_3' key='0.0 0.5 0.5 1.0' keyValue='0 1 0 0 1 0 1 0 0 1 0 0'/> |
| 48 | </Group> |
| 49 | < ROUTE fromNode='CLOCK_1' fromField='fraction_changed' toNode='COLOR_PATH_1' toField='set_fraction'/> |
| 50 | < ROUTE fromNode='CLOCK_2' fromField='fraction_changed' toNode='COLOR_PATH_2' toField='set_fraction'/> |
| 51 | < ROUTE fromNode='CLOCK_3' fromField='fraction_changed' toNode='COLOR_PATH_3' toField='set_fraction'/> |
| 52 | < ROUTE fromNode='COLOR_PATH_1' fromField='value_changed' toNode='BALL_COLOR_1' toField='set_emissiveColor'/> |
| 53 | < ROUTE fromNode='COLOR_PATH_2' fromField='value_changed' toNode='BALL_COLOR_2' toField='set_emissiveColor'/> |
| 54 | < ROUTE fromNode='COLOR_PATH_3' fromField='value_changed' toNode='BALL_COLOR_3' toField='set_emissiveColor'/> |
| 55 | </Scene> |
| 56 | </X3D> |
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 |
COLOR_PATH_1
ColorInterpolator set_fraction SFFloat |
then
|
COLOR_PATH_1
ColorInterpolator value_changed SFColor |
BALL_COLOR_1
Material set_emissiveColor SFColor |
|
CLOCK_2
TimeSensor fraction_changed SFFloat |
COLOR_PATH_2
ColorInterpolator set_fraction SFFloat |
then
|
COLOR_PATH_2
ColorInterpolator value_changed SFColor |
BALL_COLOR_2
Material set_emissiveColor SFColor |
|
CLOCK_3
TimeSensor fraction_changed SFFloat |
COLOR_PATH_3
ColorInterpolator set_fraction SFFloat |
then
|
COLOR_PATH_3
ColorInterpolator value_changed SFColor |
BALL_COLOR_3
Material set_emissiveColor SFColor |
<!--
Color-coding 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)
-->
<!--
For additional help information about X3D scenes, please see X3D Tooltips, X3D Resources, and X3D Scene Authoring Hints.
-->