<?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'); } }
]]>
Event Graph ROUTE Table entries with 7 ROUTE connections total, showing event model relationships for this scene.
TransmitterPdu |
(No ROUTE connection found for this node) |
TransmitterPdu |
(No ROUTE connection found for this node) |
TouchSensor |
within ProtoBody (No ROUTE connection found for this node) |
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 |
SignalPdu |
(No ROUTE connection found for this node) |
SignalPdu |
(No ROUTE connection found for this node) |
Script |
(No ROUTE connection found for this node) |
MaterialModulatorScript Script |
(No ROUTE connection found for this node) |
ReceiverPdu |
(No ROUTE connection found for this node) |
ReceiverPdu |
(No ROUTE connection found for this node) |
ProtoInstance |
(No ROUTE connection found for this node) |
ArtDeco02MaterialDEF ProtoInstance |
(No ROUTE connection found for this node) |
MyMaterialModulator ProtoInstance |
(No ROUTE connection found for this node) |
Proto1 ProtoInstance |
(No ROUTE connection found for this node) |
Proto3 ProtoInstance |
(No ROUTE connection found for this node) |
TestShader3 ProtoInstance |
(No ROUTE connection found for this node) |
LoadSensor |
(No ROUTE connection found for this node) |
EspduTransform |
(No ROUTE connection found for this node) |
EspduTransform |
(No ROUTE connection found for this node) |
AudioClip |
chimes (No ROUTE connection found for this node) |
AudioClip |
(No ROUTE connection found for this node) |
<!--
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. -->