X3D Model Documentation: TestCycleTimeStart.x3d

  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='Interactive' 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='titlecontent='TestCycleTimeStart.x3d'/>
  6            <meta name='creatorcontent='Andreas'/>
  7            <meta name='creatorcontent='Joe D. Williams'/>
  8            <meta name='descriptioncontent='Test design patterns for animation control.'/>
  9            <meta name='createdcontent='10 September 2023'/>
 10            <meta name='modifiedcontent='19 September 2023'/>
 11            <meta name='referencecontent='https://www.web3d.org/x3d/content/examples/ConformanceNist/Sensors/TimeSensor/cycletimeIndex.html'/>
 12            <meta name='referencecontent='https://sourceforge.net/p/x3d/code/HEAD/tree/www.web3d.org/x3d/content/examples/HumanoidAnimation/WinterAndSpring/originals/cycleTimeStart.x3d'/>
 13            <meta name='identifiercontent='https://www.web3d.org/x3d/content/examples/HumanoidAnimation/WinterAndSpring/TestCycleTimeStart.x3d'/>
 14            <meta name='generatorcontent='X3D-Edit 4.0, https://savage.nps.edu/X3D-Edit'/>
 15            <meta name='licensecontent='../license.html'/>
 16       </head>
<!--

<!--
Event Graph ROUTE Table shows event connections.
-->

<!-- to top Index for DEF nodes: BLUEBALL, BLUEINTERP3, BLUETIME3, BLUETRIGGER, GREENBALL, GREENFILTER, GREENINTERP2, GREENTIME2, REDBALL, REDINTERP1, REDTIME1

Index for Viewpoint node: Viewpoint_1
-->
 17       <Scene>
 18            <WorldInfo title='TestCycleTimeStart.x3d'/>
 19            <Viewpoint description='hello in there'/>
 20 
          <!-- ROUTE information for REDTIME1 node:  [from stopTime to GREENTIME2.set_startTime ] [from fraction_changed to REDINTERP1.set_fraction ] [self-route from cycleTime to set_stopTime ] -->
          <TimeSensor DEF='REDTIME1loop='true'/>
 21 
          <!-- ROUTE information for GREENTIME2 node:  [from REDTIME1.stopTime to set_startTime ] [from isActive to GREENFILTER.set_boolean ] [from fraction_changed to GREENINTERP2.set_fraction ] -->
          <TimeSensor DEF='GREENTIME2cycleInterval='5'/>
 22 
          <!-- ROUTE information for BLUETIME3 node:  [from BLUETRIGGER.triggerTime to set_startTime ] [from fraction_changed to BLUEINTERP3.set_fraction ] -->
          <TimeSensor DEF='BLUETIME3cycleInterval='10'/>
 23 
          <!-- ROUTE information for GREENFILTER node:  [from GREENTIME2.isActive to set_boolean ] [from inputFalse to BLUETRIGGER.set_boolean ] -->
          <BooleanFilter DEF='GREENFILTER'/>
 24 
          <!-- ROUTE information for BLUETRIGGER node:  [from GREENFILTER.inputFalse to set_boolean ] [from triggerTime to BLUETIME3.set_startTime ] -->
          <TimeTrigger DEF='BLUETRIGGER'/>
 25            < ROUTE  fromNode='REDTIME1' fromField='cycleTime' toNode='REDTIME1' toField='set_stopTime'/>
 26            < ROUTE  fromNode='REDTIME1' fromField='stopTime' toNode='GREENTIME2' toField='set_startTime'/>
 27            < ROUTE  fromNode='GREENTIME2' fromField='isActive' toNode='GREENFILTER' toField='set_boolean'/>
 28            < ROUTE  fromNode='GREENFILTER' fromField='inputFalse' toNode='BLUETRIGGER' toField='set_boolean'/>
 29            < ROUTE  fromNode='BLUETRIGGER' fromField='triggerTime' toNode='BLUETIME3' toField='set_startTime'/>
 30 
          <!-- ROUTE information for REDBALL node:  [from REDINTERP1.value_changed to set_translation ] -->
          <Transform DEF='REDBALL'>
 31                 <Shape>
 32                      <Appearance>
 33                           <Material diffuseColor='1 0 0'/>
 34                      </Appearance>
 35                      <Sphere/>
 36                 </Shape>
 37            </Transform>
 38 
          <!-- ROUTE information for GREENBALL node:  [from GREENINTERP2.value_changed to set_translation ] -->
          <Transform DEF='GREENBALL'>
 39                 <Shape>
 40                      <Appearance>
 41                           <Material diffuseColor='0 1 0'/>
 42                      </Appearance>
 43                      <Sphere/>
 44                 </Shape>
 45            </Transform>
 46 
          <!-- ROUTE information for BLUEBALL node:  [from BLUEINTERP3.value_changed to set_translation ] -->
          <Transform DEF='BLUEBALL'>
 47                 <Shape>
 48                      <Appearance>
 49                           <Material diffuseColor='0 0 1'/>
 50                      </Appearance>
 51                      <Sphere/>
 52                 </Shape>
 53            </Transform>
 54 
          <!-- ROUTE information for REDINTERP1 node:  [from REDTIME1.fraction_changed to set_fraction ] [from value_changed to REDBALL.set_translation ] -->
          <PositionInterpolator DEF='REDINTERP1key='0 0.25 0.5 0.75 1keyValue='0 0 0 2 0 0 0 0 0 -2 0 0 0 0 0'/>
 55 
          <!-- ROUTE information for GREENINTERP2 node:  [from GREENTIME2.fraction_changed to set_fraction ] [from value_changed to GREENBALL.set_translation ] -->
          <PositionInterpolator DEF='GREENINTERP2key='0 0.25 0.5 0.75 1keyValue='0 0 0 0 2 0 0 0 0 0 -2 0 0 0 0'/>
 56 
          <!-- ROUTE information for BLUEINTERP3 node:  [from BLUETIME3.fraction_changed to set_fraction ] [from value_changed to BLUEBALL.set_translation ] -->
          <PositionInterpolator DEF='BLUEINTERP3key='0 0.25 0.5 0.75 1keyValue='0 0 0 0 -2 0 0 0 0 0 2 0 0 0 0'/>
 57            < ROUTE  fromNode='REDTIME1' fromField='fraction_changed' toNode='REDINTERP1' toField='set_fraction'/>
 58            < ROUTE  fromNode='REDINTERP1' fromField='value_changed' toNode='REDBALL' toField='set_translation'/>
 59            < ROUTE  fromNode='GREENTIME2' fromField='fraction_changed' toNode='GREENINTERP2' toField='set_fraction'/>
 60            < ROUTE  fromNode='GREENINTERP2' fromField='value_changed' toNode='GREENBALL' toField='set_translation'/>
 61            < ROUTE  fromNode='BLUETIME3' fromField='fraction_changed' toNode='BLUEINTERP3' toField='set_fraction'/>
 62            < ROUTE  fromNode='BLUEINTERP3' fromField='value_changed' toNode='BLUEBALL' toField='set_translation'/>
 63       </Scene>
 64  </X3D>
<!--

<!--
Event Graph ROUTE Table shows event connections.
-->

<!-- to top Index for DEF nodes: BLUEBALL, BLUEINTERP3, BLUETIME3, BLUETRIGGER, GREENBALL, GREENFILTER, GREENINTERP2, GREENTIME2, REDBALL, REDINTERP1, REDTIME1

Index for Viewpoint node: Viewpoint_1
-->
X3D Tooltips element index: Appearance, BooleanFilter, head, Material, meta, PositionInterpolator, ROUTE, Scene, Shape, Sphere, TimeSensor, TimeTrigger, Transform, Viewpoint, WorldInfo, X3D, accessType and type, XML data types, field types

Event Graph ROUTE Table entries with 11 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.

REDTIME1
TimeSensor
stopTime
SFTime

ROUTE
event to
(1)
GREENTIME2
TimeSensor
set_startTime
SFTime
then
 
 
 
GREENTIME2
TimeSensor
fraction_changed
SFFloat

ROUTE
event to
(2)
GREENINTERP2
PositionInterpolator
set_fraction
SFFloat
then
 
 
 
GREENINTERP2
PositionInterpolator
value_changed
SFVec3f

ROUTE
event to
(3)
GREENBALL
Transform
set_translation
SFVec3f
  then
 
 
 
GREENTIME2
TimeSensor
isActive
SFBool

ROUTE
event to
(2)
GREENFILTER
BooleanFilter
set_boolean
SFBool
then
 
 
 
GREENFILTER
BooleanFilter
inputFalse
SFBool

ROUTE
event to
(3)
BLUETRIGGER
TimeTrigger
set_boolean
SFBool
then
 
 
 
BLUETRIGGER
TimeTrigger
triggerTime
SFTime

ROUTE
event to
(4)
BLUETIME3
TimeSensor
set_startTime
SFTime
then
 
 
 
BLUETIME3
TimeSensor
fraction_changed
SFFloat

ROUTE
event to
(5)
BLUEINTERP3
PositionInterpolator
set_fraction
SFFloat
then
 
 
 
BLUEINTERP3
PositionInterpolator
value_changed
SFVec3f

ROUTE
event to
(6)
BLUEBALL
Transform
set_translation
SFVec3f
REDTIME1
TimeSensor
fraction_changed
SFFloat

ROUTE
event to
(1)
REDINTERP1
PositionInterpolator
set_fraction
SFFloat
then
 
 
 
REDINTERP1
PositionInterpolator
value_changed
SFVec3f

ROUTE
event to
(2)
REDBALL
Transform
set_translation
SFVec3f
Additional guidance on X3D animation can be found in the 10-Step Animation Design Process and Event Tracing hint sheets. Have fun with X3D! 😀

-->
<!-- Online at
https://www.web3d.org/x3d/content/examples/HumanoidAnimation/WinterAndSpring/TestCycleTimeStartIndex.html -->
<!-- Version control at
https://sourceforge.net/p/x3d/code/HEAD/tree/www.web3d.org/x3d/content/examples/HumanoidAnimation/WinterAndSpring/TestCycleTimeStart.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. -->