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='Immersive' 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='title' content='SeeSaw.x3d'/> |
6 | <meta name='description' content='SeeSaw swings when mouse is over it.'/> |
7 | <meta name='creator' content='Kok Keng Ng'/> |
8 | <meta name='created' content='22 August 2002'/> |
9 | <meta name='modified' content='20 October 2019'/> |
10 | <meta name='identifier' content='https://savage.nps.edu/Savage/Buildings/PlayGround/SeeSaw.x3d'/> |
11 | <meta name='generator' content='X3D-Edit 3.2, https://savage.nps.edu/X3D-Edit'/> |
12 | <meta name='license' content='../../license.html'/> |
13 | </head> |
14 | <Scene> |
15 | <WorldInfo title='SeeSaw.x3d'/> |
16 |
<!-- ROUTE information for SEESAWTx node:
[from SEESAWInt.value_changed to set_rotation
]
-->
<Transform DEF='SEESAWTx' rotation='0 0 1 -0.22'> |
17 | <Group DEF='SEESAW'> |
18 | <Transform> |
19 | <Shape DEF='Plank'> |
20 | <Box size='4 0.05 0.3'/> |
21 | <Appearance> |
22 | <Material diffuseColor='0.9 0.3 0.1'/> |
23 |
<ImageTexture DEF='WOODTexture'
url=' "wood.jpg![]() ![]() |
24 | </Appearance> |
25 | </Shape> |
26 | </Transform> |
27 | <Transform translation='1.6 0.1 -0.1'> |
28 | |
29 | <Cylinder height='0.15' radius='0.03'/> |
30 | <Appearance> |
31 | <Material diffuseColor='0.7 0.7 0.7'/> |
32 | </Appearance> |
33 | </Shape> |
34 | </Transform> |
35 | <Transform translation='-1.6 0.1 0.1'> |
36 | <Shape USE='ROD'/> |
37 | </Transform> |
38 | <Transform translation='-1.6 0.1 -0.1'> |
39 | <Shape USE='ROD'/> |
40 | </Transform> |
41 | <Transform translation='1.6 0.1 0.1'> |
42 | <Shape USE='ROD'/> |
43 | </Transform> |
44 | <Transform rotation='1 0 0 1.575' scale='1.2 2.5 1' translation='1.6 0.18 0'> |
45 | <Shape USE='ROD'/> |
46 | </Transform> |
47 | <Transform rotation='1 0 0 1.575' scale='1.2 2.5 1' translation='-1.6 0.18 0'> |
48 | <Shape USE='ROD'/> |
49 | </Transform> |
50 |
<!-- ROUTE information for SEESAWSensor node:
[from touchTime to SEESAWTimer.set_startTime
]
-->
<TouchSensor DEF='SEESAWSensor'/> |
51 |
<!-- ROUTE information for SEESAWTimer node:
[from SEESAWSensor.touchTime to set_startTime
]
[from fraction_changed to SEESAWInt.set_fraction
]
-->
<TimeSensor DEF='SEESAWTimer' cycleInterval='10'/> |
52 |
<!-- ROUTE information for SEESAWInt node:
[from SEESAWTimer.fraction_changed to set_fraction
]
[from value_changed to SEESAWTx.set_rotation
]
-->
<OrientationInterpolator DEF='SEESAWInt' key='0 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1.0' keyValue='0 0 1 -0.22 0 0 1 0.22 0 0 1 -0.22 0 0 1 0.22 0 0 1 -0.22 0 0 1 0.22 0 0 1 -0.22 0 0 1 0.22 0 0 1 -0.22 0 0 1 0.22 0 0 1 -0.22'/> |
53 | </Group> |
54 | </Transform> |
55 | <Transform> |
56 | <Group DEF='SEESAWBody'> |
57 | <Transform translation='0 0 0.2'> |
58 | |
59 | <Transform rotation='1 0 0 1.575'> |
60 | <Shape> |
61 | <Cylinder height='0.05' radius='0.2'/> |
62 | |
63 | <Material diffuseColor='0.1 0.1 0.9'/> |
64 | </Appearance> |
65 | </Shape> |
66 | </Transform> |
67 | <Transform translation='0 -0.2 0'> |
68 | <Shape> |
69 | <Box size='0.4 0.6 0.05'/> |
70 | <Appearance USE='PANELApp'/> |
71 | </Shape> |
72 | </Transform> |
73 | <Transform translation='1.6 0 0.1'> |
74 | <Shape/> |
75 | </Transform> |
76 | </Group> |
77 | </Transform> |
78 | <Transform translation='0 0 -0.2'> |
79 | <Group USE='SIDEPanel'/> |
80 | </Transform> |
81 | <Transform DEF='PIVOT' rotation='1 0 0 1.575'> |
82 | <Shape> |
83 | <Cylinder height='0.5' radius='0.024'/> |
84 | <Appearance USE='PANELApp'/> |
85 | </Shape> |
86 | </Transform> |
87 | </Group> |
88 | < ROUTE fromNode='SEESAWSensor' fromField='touchTime' toNode='SEESAWTimer' toField='set_startTime'/> |
89 | < ROUTE fromNode='SEESAWTimer' fromField='fraction_changed' toNode='SEESAWInt' toField='set_fraction'/> |
90 | < ROUTE fromNode='SEESAWInt' fromField='value_changed' toNode='SEESAWTx' toField='set_rotation'/> |
91 | </Transform> |
92 | <Viewpoint description='SeeSaw' orientation='1 0 0 -0.87575' position='0 3 3'/> |
93 | </Scene> |
94 | </X3D> |
Event Graph ROUTE Table entries with 3 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.
SEESAWSensor
TouchSensor touchTime SFTime |
SEESAWTimer
TimeSensor set_startTime SFTime |
then
|
SEESAWTimer
TimeSensor fraction_changed SFFloat |
SEESAWInt
OrientationInterpolator set_fraction SFFloat |
then
|
SEESAWInt
OrientationInterpolator value_changed SFRotation |
SEESAWTx
Transform set_rotation SFRotation |
<!--
Color-coding 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.
-->