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='title' content='TimedTimer.x3d'/> |
6 | <meta name='description' content='Timed-timer demonstrates how to drive one TimeSensor with another one in order periodically trigger another animation.'/> |
7 | <meta name='creator' content='David R. Nadeau'/> |
8 | <meta name='translator' content='Don Brutzman'/> |
9 | <meta name='created' content='1 July 1998'/> |
10 | <meta name='translated' content='2 February 2014'/> |
11 | <meta name='modified' content='20 October 2019'/> |
12 | <meta name='reference' content='originals/timetime.wrl'/> |
13 | <meta name='reference' content='http://www.siggraph.org/s98'/> |
14 | <meta name='reference' content='http://www.siggraph.org/s98/conference/courses/18.html'/> |
15 | <meta name='reference' content='http://www.sdsc.edu/~moreland/courses/Siggraph98/vrml97/slides/mt0257.htm'/> |
16 | <meta name='reference' content='http://www.sdsc.edu/~moreland/courses/Siggraph98/vrml97/vrml97.htm'/> |
17 | <meta name='reference' content='https://www.web3d.org/x3d/content/examples/X3dResources.html'/> |
18 | <meta name='identifier' content='https://www.web3d.org/x3d/content/examples/Vrml2Sourcebook/Siggraph98Course/TimedTimer.x3d'/> |
19 | <meta name='generator' content='Vrml97ToX3dNist, http://ovrt.nist.gov/v2_x3d.html'/> |
20 | <meta name='generator' content='X3D-Edit, https://savage.nps.edu/X3D-Edit'/> |
21 | <meta name='license' content='../license.html'/> |
22 | </head> |
23 | <Scene> |
24 | <WorldInfo info='"Copyright (c) 1997, David R. Nadeau"' title='Timed timer'/> |
25 | <Viewpoint description='Entry view' position='0.0 0.0 12.0'/> |
26 | <NavigationInfo/> |
27 | |
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 | |
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='Clock' cycleInterval='3.0'/> |
119 |
<!-- ROUTE information for Trigger node:
[from cycleTime to Clock.set_startTime
]
-->
<TimeSensor DEF='Trigger' cycleInterval='5.0' loop='true'/> |
120 |
<!-- ROUTE information for RedScale node:
[from Clock.fraction_changed to set_fraction
]
[from value_changed to Red.set_scale
]
-->
<PositionInterpolator DEF='RedScale' key='0.0 0.5 1.0' keyValue='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='BlueScale' key='0.0 0.25 0.5 0.75 1.0' keyValue='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 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 |
Clock
TimeSensor set_startTime SFTime |
then
|
Clock
TimeSensor fraction_changed SFFloat |
RedScale
PositionInterpolator set_fraction SFFloat |
then
|
RedScale
PositionInterpolator value_changed SFVec3f |
Red
Transform set_scale SFVec3f |
|||
then
|
Clock
TimeSensor fraction_changed SFFloat |
BlueScale
PositionInterpolator set_fraction SFFloat |
then
|
BlueScale
PositionInterpolator value_changed SFVec3f |
Blue
Transform set_scale SFVec3f |
<!--
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)
-->
<!-- For additional help information about X3D scenes, please see X3D Tooltips, X3D Resources, and X3D Scene Authoring Hints. -->