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='Figure24_5TwoAmbientCirclingSounds.x3d'/> |
6 | <meta name='creator' content='Figure 24.5, The VRML 2.0 Sourcebook, Copyright [1997] By Andrea L. Ames, David R. Nadeau, and John L. Moreland'/> |
7 | <meta name='reference' content='http://www.wiley.com/legacy/compbooks/vrml2sbk/ch24/24fig05.htm'/> |
8 | <meta name='translator' content='Don Brutzman'/> |
9 | <meta name='created' content='3 October 2000'/> |
10 | <meta name='modified' content='20 October 2019'/> |
11 | <meta name='description' content='Two ambient sounds circling the origin.'/> |
12 | <meta name='identifier' content='https://www.web3d.org/x3d/content/examples/Vrml2Sourcebook/Chapter24Sound/Figure24_5TwoAmbientCirclingSounds.x3d'/> |
13 | <meta name='generator' content='X3D-Edit 3.3, https://savage.nps.edu/X3D-Edit'/> |
14 | <meta name='license' content='../../license.html'/> |
15 | </head> |
16 | <Scene> |
17 | <WorldInfo title='Figure24_5TwoAmbientCirclingSounds.x3d'/> |
18 | <Viewpoint description='5m from center: two circling ambient sounds' position='0 1 5'/> |
19 | <Viewpoint description='8m from center: two circling ambient sounds' position='0 1 8'/> |
20 | <NavigationInfo type='"WALK" "EXAMINE" "ANY"'/> |
21 | <Group> |
22 | <Shape> |
23 | <Sphere radius='0.5'/> |
24 | <Appearance> |
25 | <Material diffuseColor='0 0 0' emissiveColor='0 1 1'/> |
26 | </Appearance> |
27 | </Shape> |
28 |
<!-- ROUTE information for Emitter1 node:
[from Emitter1Path.value_changed to set_rotation
]
-->
<Transform DEF='Emitter1' center='-5 0 0' translation='5 0 0'> |
29 | <Sound intensity='0.5' minBack='5' minFront='5'> |
30 | <AudioClip description='emitter1' loop='true' pitch='1.189' url=' "tone1.wav" "https://www.web3d.org/x3d/content/examples/Vrml2Sourcebook/Chapter24Sound/tone1.wav" '/> |
31 | </Sound> |
32 |
<!-- Inline
SoundMarker is a DEF node that has 1 USE node: USE_1 --> <Inline DEF='SoundMarker' url=' "Figure24_1EmitterMarkers.x3d" "https://www.web3d.org/x3d/content/examples/Vrml2Sourcebook/Chapter24Sound/Figure24_1EmitterMarkers.x3d" "Figure24_1EmitterMarkers.wrl" "https://www.web3d.org/x3d/content/examples/Vrml2Sourcebook/Chapter24Sound/Figure24_1EmitterMarkers.wrl" '/> |
33 | </Transform> |
34 |
<!-- ROUTE information for Emitter1Clock node:
[from fraction_changed to Emitter1Path.set_fraction
]
-->
<TimeSensor DEF='Emitter1Clock' cycleInterval='15' loop='true'/> |
35 |
<!-- ROUTE information for Emitter1Path node:
[from Emitter1Clock.fraction_changed to set_fraction
]
[from value_changed to Emitter1.set_rotation
]
-->
<OrientationInterpolator DEF='Emitter1Path' key='0 0.5 1' keyValue='0 1 0 0 0 1 0 -3.14 0 1 0 -6.28'/> |
36 |
<!-- ROUTE information for Emitter2 node:
[from Emitter2Path.value_changed to set_rotation
]
-->
<Transform DEF='Emitter2' center='6 0 0' translation='-6 0 0'> |
37 | <Sound intensity='0.5' minBack='5' minFront='5'> |
38 | <AudioClip description='emitter2' loop='true' url=' "tone1.wav" "https://www.web3d.org/x3d/content/examples/Vrml2Sourcebook/Chapter24Sound/tone1.wav" '/> |
39 | </Sound> |
40 | <Inline USE='SoundMarker'/> |
41 | </Transform> |
42 |
<!-- ROUTE information for Emitter2Clock node:
[from fraction_changed to Emitter2Path.set_fraction
]
-->
<TimeSensor DEF='Emitter2Clock' cycleInterval='7' loop='true'/> |
43 |
<!-- ROUTE information for Emitter2Path node:
[from Emitter2Clock.fraction_changed to set_fraction
]
[from value_changed to Emitter2.set_rotation
]
-->
<OrientationInterpolator DEF='Emitter2Path' key='0 0.5 1' keyValue='0 1 0 0 0 1 0 3.14 0 1 0 6.28'/> |
44 | </Group> |
45 | < ROUTE fromNode='Emitter1Clock' fromField='fraction_changed' toNode='Emitter1Path' toField='set_fraction'/> |
46 | < ROUTE fromNode='Emitter2Clock' fromField='fraction_changed' toNode='Emitter2Path' toField='set_fraction'/> |
47 | < ROUTE fromNode='Emitter1Path' fromField='value_changed' toNode='Emitter1' toField='set_rotation'/> |
48 | < ROUTE fromNode='Emitter2Path' fromField='value_changed' toNode='Emitter2' toField='set_rotation'/> |
49 | </Scene> |
50 | </X3D> |
Event Graph ROUTE Table entries with 4 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.
Emitter1Clock
TimeSensor fraction_changed SFFloat |
Emitter1Path
OrientationInterpolator set_fraction SFFloat |
then
|
Emitter1Path
OrientationInterpolator value_changed SFRotation |
Emitter1
Transform set_rotation SFRotation |
Emitter2Clock
TimeSensor fraction_changed SFFloat |
Emitter2Path
OrientationInterpolator set_fraction SFFloat |
then
|
Emitter2Path
OrientationInterpolator value_changed SFRotation |
Emitter2
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. -->