<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE X3D PUBLIC "ISO//Web3D//DTD X3D 4.0//EN" "https://www.web3d.org/specifications/x3d-4.0.dtd">
<![CDATA[
ecmascript: function colorInput (eventValue) // Example source code { colorsOutput = new MFColor(eventValue); // assigning value sends output event // Browser.print('colorInput=' + eventValue + ', colorsOutput=' + colorsOutput + '\n'); }
]]>
<![CDATA[
ecmascript: function initialize () { newColor = diffuseColor; // start with correct color } function set_enabled (newValue) { enabled = newValue; } function clockTrigger (timeValue) { if (!enabled) return; red = newColor.r; green = newColor.g; blue = newColor.b; // note different modulation rates for each color component, % is modulus operator newColor = new SFColor ((red + 0.02) % 1, (green + 0.03) % 1, (blue + 0.04) % 1); if (enabled) { Browser.print ('diffuseColor=(' + red + ',' + green + ',' + blue + ') newColor=' + newColor.toString() + '\n'); } }
]]>
<![CDATA[
ecmascript: /* dummy test source code */
]]>
Event Graph ROUTE Table entries with 7 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.
ColorClock TimeSensor fraction_changed SFFloat |
ColorAnimator ColorInterpolator set_fraction SFFloat |
then |
ColorAnimator ColorInterpolator value_changed SFColor |
colorTypeConversionScript Script colorInput SFColor |
then |
colorTypeConversionScript Script colorsOutput MFColor |
GradualBackground Background skyColor MFColor |
OrbitClock TimeSensor fraction_changed SFFloat |
BoxPathAnimator PositionInterpolator set_fraction SFFloat |
then |
BoxPathAnimator PositionInterpolator value_changed SFVec3f |
LogoGeometryTransform Transform set_translation SFVec3f |
SpinClock TimeSensor fraction_changed SFFloat |
SpinInterpolator OrientationInterpolator set_fraction SFFloat |
then |
SpinInterpolator OrientationInterpolator value_changed SFRotation |
TextTransform Transform rotation SFRotation |
MaterialModulatorScript Script |
No ROUTE connection found for output from this node. |
ProtoInstance ArtDeco01 |
No ROUTE connection found for output from this node. Contains SFNode/MFNode field with indirect access to other nodes. |
ArtDeco02MaterialDEF ProtoInstance ArtDeco02 |
No ROUTE connection found for output from this node. Contains SFNode/MFNode field with indirect access to other nodes. |
MyMaterialModulator ProtoInstance MaterialModulator |
No ROUTE connection found for output from this node. Contains SFNode/MFNode field with indirect access to other nodes. |
Proto1 ProtoInstance NewWorldInfo |
No ROUTE connection found for output from this node. Contains SFNode/MFNode field with indirect access to other nodes. |
Proto3 ProtoInstance NewWorldInfo |
No ROUTE connection found for output from this node. Contains SFNode/MFNode field with indirect access to other nodes. |
TestShader3 ProtoInstance ShaderProto |
No ROUTE connection found for output from this node. Contains SFNode/MFNode field with indirect access to other nodes. |
<!--
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)
<ProtoInstance name='ProtoName'>
<fieldname='fieldName'/> </ProtoInstance>
-->
<!-- For additional help information about X3D scenes, please see X3D Tooltips, X3D Resources, and X3D Scene Authoring Hints. -->