X3D Model Documentation: TimedTimer.x3d

  1  <?xml version="1.0" encoding="UTF-8"?>
  2  <!DOCTYPE X3D PUBLIC "ISO//Web3D//DTD X3D 3.3//EN" "https://www.web3d.org/specifications/x3d-3.3.dtd">
  3  <X3D profile='Interchange' version='3.3 xmlns:xsd='http://www.w3.org/2001/XMLSchema-instance' xsd:noNamespaceSchemaLocation='https://www.web3d.org/specifications/x3d-3.3.xsd'>
  4       <head>
  5            <meta name='titlecontent='TimedTimer.x3d'/>
  6            <meta name='descriptioncontent='Timed-timer demonstrates how to drive one TimeSensor with another one in order periodically trigger another animation.'/>
  7            <meta name='creatorcontent='David R. Nadeau'/>
  8            <meta name='translatorcontent='Don Brutzman'/>
  9            <meta name='createdcontent='1 July 1998'/>
 10            <meta name='translatedcontent='2 February 2014'/>
 11            <meta name='modifiedcontent='20 October 2019'/>
 12            <meta name='referencecontent='originals/timetime.wrl'/>
 13            <meta name='referencecontent='http://www.siggraph.org/s98'/>
 14            <meta name='referencecontent='http://www.siggraph.org/s98/conference/courses/18.html'/>
 15            <meta name='referencecontent='http://www.sdsc.edu/~moreland/courses/Siggraph98/vrml97/slides/mt0257.htm'/>
 16            <meta name='referencecontent='http://www.sdsc.edu/~moreland/courses/Siggraph98/vrml97/vrml97.htm'/>
 17            <meta name='referencecontent='https://www.web3d.org/x3d/content/examples/X3dResources.html'/>
 18            <meta name='identifiercontent='https://www.web3d.org/x3d/content/examples/Vrml2Sourcebook/Siggraph98Course/TimedTimer.x3d'/>
 19            <meta name='generatorcontent='Vrml97ToX3dNist, http://ovrt.nist.gov/v2_x3d.html'/>
 20            <meta name='generatorcontent='X3D-Edit, https://savage.nps.edu/X3D-Edit'/>
 21            <meta name='licensecontent='../license.html'/>
 22       </head>
<!--

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

<!-- to top Index for DEF nodes: Blue, BlueScale, Clock, Red, RedScale, Trigger

Index for Viewpoint node: Viewpoint_1
-->
 23       <Scene>
 24            <WorldInfo info='"Copyright (c) 1997, David R. Nadeau"title='Timed timer'/>
 25            <Viewpoint description='Entry viewposition='0.0 0.0 12.0'/>
 26            <NavigationInfo/>
 27 
          <!-- Transform Red is a DEF node that has 12 USE nodes: USE_1, USE_2, USE_3, USE_4, USE_5, USE_6, USE_7, USE_8, USE_9, USE_10, USE_11, USE_12
          <!-- ROUTE information for Red node:  [from RedScale.value_changed to set_scale ] -->
          <Transform DEF='Red'>
 28                 <Shape>
 29                      <Appearance>
 30                           <Material diffuseColor='1.0 0.0 0.0'/>
 31                      </Appearance>
 32                      <Box/>
 33                 </Shape>
 34            </Transform>
 35            <Transform translation='2.0 2.0 0.0'>
 36                 <Transform USE='Red'/>
 37            </Transform>
 38            <Transform translation='-2.0 2.0 0.0'>
 39                 <Transform USE='Red'/>
 40            </Transform>
 41            <Transform translation='2.0 -2.0 0.0'>
 42                 <Transform USE='Red'/>
 43            </Transform>
 44            <Transform translation='-2.0 -2.0 0.0'>
 45                 <Transform USE='Red'/>
 46            </Transform>
 47            <Transform translation='0.0 -2.0 2.0'>
 48                 <Transform USE='Red'/>
 49            </Transform>
 50            <Transform translation='0.0 2.0 2.0'>
 51                 <Transform USE='Red'/>
 52            </Transform>
 53            <Transform translation='2.0 0.0 2.0'>
 54                 <Transform USE='Red'/>
 55            </Transform>
 56            <Transform translation='-2.0 0.0 2.0'>
 57                 <Transform USE='Red'/>
 58            </Transform>
 59            <Transform translation='0.0 -2.0 -2.0'>
 60                 <Transform USE='Red'/>
 61            </Transform>
 62            <Transform translation='0.0 2.0 -2.0'>
 63                 <Transform USE='Red'/>
 64            </Transform>
 65            <Transform translation='2.0 0.0 -2.0'>
 66                 <Transform USE='Red'/>
 67            </Transform>
 68            <Transform translation='-2.0 0.0 -2.0'>
 69                 <Transform USE='Red'/>
 70            </Transform>
 71 
          <!-- Transform Blue is a DEF node that has 13 USE nodes: USE_1, USE_2, USE_3, USE_4, USE_5, USE_6, USE_7, USE_8, USE_9, USE_10, USE_11, USE_12, USE_13
          <!-- ROUTE information for Blue node:  [from BlueScale.value_changed to set_scale ] -->
          <Transform DEF='Bluetranslation='2.0 0.0 0.0'>
 72                 <Shape>
 73                      <Appearance>
 74                           <Material diffuseColor='0.0 0.0 1.0'/>
 75                      </Appearance>
 76                      <Box/>
 77                 </Shape>
 78            </Transform>
 79            <Transform translation='-4.0 0.0 0.0'>
 80                 <Transform USE='Blue'/>
 81            </Transform>
 82            <Transform translation='-2.0 0.0 2.0'>
 83                 <Transform USE='Blue'/>
 84            </Transform>
 85            <Transform translation='-2.0 0.0 -2.0'>
 86                 <Transform USE='Blue'/>
 87            </Transform>
 88            <Transform translation='-2.0 2.0 0.0'>
 89                 <Transform USE='Blue'/>
 90            </Transform>
 91            <Transform translation='-2.0 -2.0 0.0'>
 92                 <Transform USE='Blue'/>
 93            </Transform>
 94            <Transform translation='0.0 2.0 2.0'>
 95                 <Transform USE='Blue'/>
 96            </Transform>
 97            <Transform translation='0.0 2.0 -2.0'>
 98                 <Transform USE='Blue'/>
 99            </Transform>
100            <Transform translation='-4.0 2.0 2.0'>
101                 <Transform USE='Blue'/>
102            </Transform>
103            <Transform translation='-4.0 2.0 -2.0'>
104                 <Transform USE='Blue'/>
105            </Transform>
106            <Transform translation='0.0 -2.0 2.0'>
107                 <Transform USE='Blue'/>
108            </Transform>
109            <Transform translation='0.0 -2.0 -2.0'>
110                 <Transform USE='Blue'/>
111            </Transform>
112            <Transform translation='-4.0 -2.0 2.0'>
113                 <Transform USE='Blue'/>
114            </Transform>
115            <Transform translation='-4.0 -2.0 -2.0'>
116                 <Transform USE='Blue'/>
117            </Transform>
118 
          <!-- ROUTE information for Clock node:  [from Trigger.cycleTime to set_startTime ] [from fraction_changed to RedScale.set_fraction ] [from fraction_changed to BlueScale.set_fraction ] -->
          <TimeSensor DEF='ClockcycleInterval='3.0'/>
119 
          <!-- ROUTE information for Trigger node:  [from cycleTime to Clock.set_startTime ] -->
          <TimeSensor DEF='TriggercycleInterval='5.0loop='true'/>
120 
          <!-- ROUTE information for RedScale node:  [from Clock.fraction_changed to set_fraction ] [from value_changed to Red.set_scale ] -->
          <PositionInterpolator DEF='RedScalekey='0.0 0.5 1.0keyValue='1.0 1.0 1.0 1.0E-4 1.0E-4 1.0E-4 1.0 1.0 1.0'/>
121 
          <!-- ROUTE information for BlueScale node:  [from Clock.fraction_changed to set_fraction ] [from value_changed to Blue.set_scale ] -->
          <PositionInterpolator DEF='BlueScalekey='0.0 0.25 0.5 0.75 1.0keyValue='1.0 1.0 1.0 1.0E-4 1.0E-4 1.0E-4 1.0 1.0 1.0 1.0E-4 1.0E-4 1.0E-4 1.0 1.0 1.0'/>
122            < ROUTE  fromNode='Trigger' fromField='cycleTime' toNode='Clock' toField='set_startTime'/>
123            < ROUTE  fromNode='Clock' fromField='fraction_changed' toNode='RedScale' toField='set_fraction'/>
124            < ROUTE  fromNode='Clock' fromField='fraction_changed' toNode='BlueScale' toField='set_fraction'/>
125            < ROUTE  fromNode='RedScale' fromField='value_changed' toNode='Red' toField='set_scale'/>
126            < ROUTE  fromNode='BlueScale' fromField='value_changed' toNode='Blue' toField='set_scale'/>
127       </Scene>
128  </X3D>
<!--

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

<!-- to top Index for DEF nodes: Blue, BlueScale, Clock, Red, RedScale, Trigger

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

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

Trigger
TimeSensor
cycleTime
SFTime

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

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

ROUTE
event to
(3)
Red
Transform
set_scale
SFVec3f
  then
 
 
 
Clock
TimeSensor
fraction_changed
SFFloat

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

ROUTE
event to
(3)
Blue
Transform
set_scale
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/Vrml2Sourcebook/Siggraph98Course/TimedTimerIndex.html -->
<!-- Version control at
https://sourceforge.net/p/x3d/code/HEAD/tree/www.web3d.org/x3d/content/examples/Vrml2Sourcebook/Siggraph98Course/TimedTimer.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. -->