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='Interactive' 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='StripedSurfPerchPlaque.x3d'/> |
6 | <meta name='creator' content='Michael Collins'/> |
7 | <meta name='created' content='18 February 2001'/> |
8 | <meta name='modified' content='20 October 2019'/> |
9 | <meta name=' warning ' content=' under development '/> |
10 | <meta name='description' content='One fish plaque with lithograph on one side and actual picture on the back. Click on plaque to go to picture or click on buttons to change picture.'/> |
11 | <meta name='identifier' content='https://www.web3d.org/x3d/content/examples/X3dForWebAuthors/KelpForestExhibit/StripedSurfPerchPlaque.x3d'/> |
12 | <meta name='generator' content='X3D-Edit 3.3, https://savage.nps.edu/X3D-Edit'/> |
13 | <meta name='Image' content='StripedSurfPerchPatch.jpg'/> |
14 | <meta name='Image' content='RainbowSurfPerch002.jpg'/> |
15 | <meta name='license' content='../license.html'/> |
16 | </head> |
17 | <Scene> |
18 | <WorldInfo title='StripedSurfPerchPlaque.x3d'/> |
19 | <Viewpoint DEF='stripedsurfperch' description='Striped Surf Perch' position='0 0 4'/> |
20 | <!-- Fish Plaques --> |
21 | <Group> |
22 |
<!-- ROUTE information for BlueRockfishTouchSensor node:
[from touchTime to BLUEROCKFISHCLOCK.set_startTime
]
-->
<TouchSensor DEF='BlueRockfishTouchSensor' description='touch to rotate'/> |
23 |
<!-- ROUTE information for BLUEROCKFISHCLOCK node:
[from BlueRockfishTouchSensor.touchTime to set_startTime
]
[from PictureTouchSensor.touchTime to set_startTime
]
[from fraction_changed to BlueRockfishPathInterpolator.set_fraction
]
-->
<TimeSensor DEF='BLUEROCKFISHCLOCK' cycleInterval='2'/> |
24 |
<!-- ROUTE information for BlueRockfishPathInterpolator node:
[from BLUEROCKFISHCLOCK.fraction_changed to set_fraction
]
[from value_changed to BLUEROCKFISH_TRANSFORM.set_rotation
]
-->
<OrientationInterpolator DEF='BlueRockfishPathInterpolator' key='0.0 0.50 1.0' keyValue='0.0 1.0 0.0 0.0 0.0 1.0 0.0 1.57 0.0 1.0 0.0 3.14'/> |
25 |
<!-- ROUTE information for BLUEROCKFISH_TRANSFORM node:
[from BlueRockfishPathInterpolator.value_changed to set_rotation
]
[from PlaqueToPictureInterpolator.value_changed to set_rotation
]
-->
<Transform DEF='BLUEROCKFISH_TRANSFORM'> |
26 | <Shape> |
27 | <Box size='4 2 .1'/> |
28 | <Appearance> |
29 | <ImageTexture url=' "StripedSurfPerchPatch.jpg " "https://www.web3d.org/x3d/content/examples/X3dForWebAuthors/KelpForestExhibit/StripedSurfPerchPatch.jpg " '/> |
30 | </Appearance> |
31 | </Shape> |
32 | <Transform translation='0 0 -.1'> |
33 | <Shape> |
34 | <Box size='4 2 .2'/> |
35 | <Appearance> |
36 | <ImageTexture url=' "RainbowSurfPerch002.jpg " "https://www.web3d.org/x3d/content/examples/X3dForWebAuthors/KelpForestExhibit/RainbowSurfPerch002.jpg " '/> |
37 | </Appearance> |
38 | </Shape> |
39 | </Transform> |
40 | </Transform> |
41 | <Group> |
42 | <Transform DEF='BUTTON_TRANSFORM' translation='1 2 0'> |
43 | <Shape> |
44 | <Sphere radius='.5'/> |
45 | <Appearance> |
46 | <Material diffuseColor='0 1 0'/> |
47 | </Appearance> |
48 | </Shape> |
49 | </Transform> |
50 |
<!-- ROUTE information for FrontTouchSensor node:
[from touchTime to FRONTTOUCHSENSORCLOCK.set_startTime
]
-->
<TouchSensor DEF='FrontTouchSensor' description='front TouchSensor'/> |
51 |
<!-- ROUTE information for FRONTTOUCHSENSORCLOCK node:
[from FrontTouchSensor.touchTime to set_startTime
]
[from fraction_changed to PlaqueToPictureInterpolator.set_fraction
]
-->
<TimeSensor DEF='FRONTTOUCHSENSORCLOCK' cycleInterval='2'/> |
52 |
<!-- ROUTE information for PlaqueToPictureInterpolator node:
[from FRONTTOUCHSENSORCLOCK.fraction_changed to set_fraction
]
[from value_changed to BLUEROCKFISH_TRANSFORM.set_rotation
]
-->
<OrientationInterpolator DEF='PlaqueToPictureInterpolator' key='0.0 0.50 1.0' keyValue='0.0 1.0 0.0 3.14 0.0 1.0 0.0 1.57 0.0 1.0 0.0 0.00'/> |
53 | </Group> |
54 | <Group> |
55 | <Transform DEF='BUTTON_TRANSFORM2' translation='-1 2 0'> |
56 | <Shape> |
57 | <Sphere radius='.5'/> |
58 | <Appearance> |
59 | <Material diffuseColor='1 0 0'/> |
60 | </Appearance> |
61 | </Shape> |
62 | </Transform> |
63 |
<!-- ROUTE information for PictureTouchSensor node:
[from touchTime to BLUEROCKFISHCLOCK.set_startTime
]
-->
<TouchSensor DEF='PictureTouchSensor' description='picture TouchSensor'/> |
64 | </Group> |
65 | <Group> |
66 | <Transform DEF='BASE_TRANSFORM' translation='0 0 -.3'> |
67 | <Shape> |
68 | <Box size='8 6 .3'/> |
69 | <Appearance> |
70 | <Material diffuseColor='.3 .3 .6'/> |
71 | </Appearance> |
72 | </Shape> |
73 | </Transform> |
74 | <TouchSensor DEF='BaseTouchSensor' description='touch to rotate'/> |
75 | <Group> |
76 | <Transform translation='0 -2.6 0'> |
77 | <Shape> |
78 | <Box size='8 1 1'/> |
79 | <Appearance> |
80 | <Material diffuseColor='0.8 0.8 0.2'/> |
81 | </Appearance> |
82 | </Shape> |
83 | </Transform> |
84 | </Group> |
85 | <Group> |
86 | <Transform translation='0 2.6 0'> |
87 | <Shape> |
88 | <Box size='8 1 1'/> |
89 | <Appearance> |
90 | <Material diffuseColor='0.8 0.8 0.2'/> |
91 | </Appearance> |
92 | </Shape> |
93 | </Transform> |
94 | </Group> |
95 | <Group> |
96 | <Transform rotation='0 0 1 1.58' translation='3.6 0 0'> |
97 | <Shape> |
98 | <Box size='6.2 1 1'/> |
99 | <Appearance> |
100 | <Material diffuseColor='0.8 0.8 0.2'/> |
101 | </Appearance> |
102 | </Shape> |
103 | </Transform> |
104 | </Group> |
105 | <Group> |
106 | <Transform rotation='0 0 1 1.58' translation='-3.6 0 0'> |
107 | <Shape> |
108 | <Box size='6.2 1 1'/> |
109 | <Appearance> |
110 | <Material diffuseColor='0.8 0.8 0.2'/> |
111 | </Appearance> |
112 | </Shape> |
113 | </Transform> |
114 | </Group> |
115 | </Group> |
116 | </Group> |
117 | < ROUTE fromNode='BlueRockfishTouchSensor' fromField='touchTime' toNode='BLUEROCKFISHCLOCK' toField='set_startTime'/> |
118 | < ROUTE fromNode='BLUEROCKFISHCLOCK' fromField='fraction_changed' toNode='BlueRockfishPathInterpolator' toField='set_fraction'/> |
119 | < ROUTE fromNode='BlueRockfishPathInterpolator' fromField='value_changed' toNode='BLUEROCKFISH_TRANSFORM' toField='set_rotation'/> |
120 | < ROUTE fromNode='FrontTouchSensor' fromField='touchTime' toNode='FRONTTOUCHSENSORCLOCK' toField='set_startTime'/> |
121 | < ROUTE fromNode='FRONTTOUCHSENSORCLOCK' fromField='fraction_changed' toNode='PlaqueToPictureInterpolator' toField='set_fraction'/> |
122 | < ROUTE fromNode='PlaqueToPictureInterpolator' fromField='value_changed' toNode='BLUEROCKFISH_TRANSFORM' toField='set_rotation'/> |
123 | <!-- Picture touch sensor only has to tie into the BLUEROCKFISHCLOCK so that it will turn picture. --> |
124 | < ROUTE fromNode='PictureTouchSensor' fromField='touchTime' toNode='BLUEROCKFISHCLOCK' toField='set_startTime'/> |
125 | </Scene> |
126 | </X3D> |
Event Graph ROUTE Table entries with 7 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.
BaseTouchSensor
TouchSensor |
description='touch to rotate' User-interaction hint for this node.(TouchSensor description is providing a tooltip) |
BlueRockfishTouchSensor
TouchSensor touchTime SFTime |
BLUEROCKFISHCLOCK
TimeSensor set_startTime SFTime |
then
|
BLUEROCKFISHCLOCK
TimeSensor fraction_changed SFFloat |
BlueRockfishPathInterpolator
OrientationInterpolator set_fraction SFFloat |
then
|
BlueRockfishPathInterpolator
OrientationInterpolator value_changed SFRotation |
BLUEROCKFISH_TRANSFORM
Transform set_rotation SFRotation |
FrontTouchSensor
TouchSensor touchTime SFTime |
FRONTTOUCHSENSORCLOCK
TimeSensor set_startTime SFTime |
then
|
FRONTTOUCHSENSORCLOCK
TimeSensor fraction_changed SFFloat |
PlaqueToPictureInterpolator
OrientationInterpolator set_fraction SFFloat |
then
|
PlaqueToPictureInterpolator
OrientationInterpolator value_changed SFRotation |
BLUEROCKFISH_TRANSFORM
Transform set_rotation SFRotation |
PictureTouchSensor
TouchSensor touchTime SFTime |
BLUEROCKFISHCLOCK
TimeSensor set_startTime SFTime |
then
|
BLUEROCKFISHCLOCK
TimeSensor fraction_changed SFFloat |
BlueRockfishPathInterpolator
OrientationInterpolator set_fraction SFFloat |
then
|
BlueRockfishPathInterpolator
OrientationInterpolator value_changed SFRotation |
BLUEROCKFISH_TRANSFORM
Transform set_rotation SFRotation |
<!--
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. -->