X3D Model Documentation: Figure24_5TwoAmbientCirclingSounds.x3d

  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='titlecontent=' Figure24_5TwoAmbientCirclingSounds.x3d '/>
  6            <meta name='descriptioncontent='Two ambient sounds circling the origin.'/>
  7            <meta name='creatorcontent='Figure 24.5, The VRML 2.0 Sourcebook, Copyright [1997] By Andrea L. Ames, David R. Nadeau, and John L. Moreland'/>
  8            <meta name='referencecontent=' http://www.wiley.com/legacy/compbooks/vrml2sbk/ch24/24fig05.htm '/>
  9            <meta name='translatorcontent='Don Brutzman'/>
 10            <meta name='createdcontent='3 October 2000'/>
 11            <meta name='modifiedcontent='20 March 2026'/>
 12            <meta name='Soundcontent=' tone1.wav ' />
 13            <meta name='identifiercontent=' https://www.web3d.org/x3d/content/examples/Vrml2Sourcebook/Chapter24Sound/Figure24_5TwoAmbientCirclingSounds.x3d '/>
 14            <meta name='generatorcontent='X3D-Edit 4.0, https://www.web3d.org/x3d/tools/X3D-Edit'/>
 15            <meta name='licensecontent='../../license.html'/>
 16       </head>
<!--

<!--
Event Graph ROUTE Table shows event connections.
-->
<!-- to top DEF nodes index: Emitter1, Emitter1Clock, Emitter1Path, Emitter2, Emitter2Clock, Emitter2Path, SoundMarker

Index for Viewpoint nodes: Viewpoint_1, Viewpoint_2
-->
 17       <Scene>
 18            <WorldInfo title='Figure24_5TwoAmbientCirclingSounds.x3d'/>
 19            <Viewpoint description='5m from center: two circling ambient soundsposition='0 1 5'/>
 20            <Viewpoint description='8m from center: two circling ambient soundsposition='0 1 8'/>
 21            <NavigationInfo type='"WALK" "EXAMINE" "ANY"'/>
 22            <Group>
 23                 <Shape>
 24                      <Sphere radius='0.5'/>
 25                      <Appearance>
 26                           <Material diffuseColor='0 0 0emissiveColor='0 1 1'/>
 27                      </Appearance>
 28                 </Shape>
 29 
               <!-- ROUTE information for Emitter1 node:  [from Emitter1Path.value_changed to set_rotation ] -->
               <Transform DEF='Emitter1center='-5 0 0translation='5 0 0'>
 30                      <Sound intensity='0.5minBack='5minFront='5'>
 31                           <AudioClip description='emitter1loop='truepitch='1.189'   url=' "tone1.wav" "https://www.web3d.org/x3d/content/examples/Vrml2Sourcebook/Chapter24Sound/tone1.wav" '/>
 32                      </Sound>
 33 
 34                 </Transform>
 35 
               <!-- ROUTE information for Emitter1Clock node:  [from fraction_changed to Emitter1Path.set_fraction ] -->
               <TimeSensor DEF='Emitter1ClockcycleInterval='15loop='true'/>
 36 
               <!-- ROUTE information for Emitter1Path node:  [from Emitter1Clock.fraction_changed to set_fraction ] [from value_changed to Emitter1.set_rotation ] -->
               <OrientationInterpolator DEF='Emitter1Pathkey='0 0.5 1keyValue='0 1 0 0 0 1 0 -3.14 0 1 0 -6.28'/>
 37 
               <!-- ROUTE information for Emitter2 node:  [from Emitter2Path.value_changed to set_rotation ] -->
               <Transform DEF='Emitter2center='6 0 0translation='-6 0 0'>
 38                      <Sound intensity='0.5minBack='5minFront='5'>
 39                           <AudioClip description='emitter2loop='true'   url=' "tone1.wav" "https://www.web3d.org/x3d/content/examples/Vrml2Sourcebook/Chapter24Sound/tone1.wav" '/>
 40                      </Sound>
 41                      <Inline USE='SoundMarker'/>
 42                 </Transform>
 43 
               <!-- ROUTE information for Emitter2Clock node:  [from fraction_changed to Emitter2Path.set_fraction ] -->
               <TimeSensor DEF='Emitter2ClockcycleInterval='7loop='true'/>
 44 
               <!-- ROUTE information for Emitter2Path node:  [from Emitter2Clock.fraction_changed to set_fraction ] [from value_changed to Emitter2.set_rotation ] -->
               <OrientationInterpolator DEF='Emitter2Pathkey='0 0.5 1keyValue='0 1 0 0 0 1 0 3.14 0 1 0 6.28'/>
 45            </Group>
 46            < ROUTE  fromNode='Emitter1Clock' fromField='fraction_changed' toNode='Emitter1Path' toField='set_fraction'/>
 47            < ROUTE  fromNode='Emitter2Clock' fromField='fraction_changed' toNode='Emitter2Path' toField='set_fraction'/>
 48            < ROUTE  fromNode='Emitter1Path' fromField='value_changed' toNode='Emitter1' toField='set_rotation'/>
 49            < ROUTE  fromNode='Emitter2Path' fromField='value_changed' toNode='Emitter2' toField='set_rotation'/>
 50       </Scene>
 51  </X3D>
<!--

<!--
Event Graph ROUTE Table shows event connections.
-->
<!-- to top DEF nodes index: Emitter1, Emitter1Clock, Emitter1Path, Emitter2, Emitter2Clock, Emitter2Path, SoundMarker

Index for Viewpoint nodes: Viewpoint_1, Viewpoint_2
-->
X3D Tooltips element index: Appearance, AudioClip, Group, head, Inline, Material, meta, NavigationInfo, OrientationInterpolator, ROUTE, Scene, Shape, Sound, Sphere, TimeSensor, Transform, Viewpoint, WorldInfo, X3D,
plus documentation for accessType definitions, type definitions, XML data types, and field types

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

ROUTE
event to
(1)
Emitter1Path
OrientationInterpolator
set_fraction
SFFloat
then
 
 
 
Emitter1Path
OrientationInterpolator
value_changed
SFRotation

ROUTE
event to
(2)
Emitter1
Transform
set_rotation
SFRotation

Emitter2Clock
TimeSensor
fraction_changed
SFFloat

ROUTE
event to
(1)
Emitter2Path
OrientationInterpolator
set_fraction
SFFloat
then
 
 
 
Emitter2Path
OrientationInterpolator
value_changed
SFRotation

ROUTE
event to
(2)
Emitter2
Transform
set_rotation
SFRotation


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/Chapter24Sound/Figure24_5TwoAmbientCirclingSoundsIndex.html -->
<!-- SourceForge version control Version control at    
https://sourceforge.net/p/x3d/code/HEAD/tree/www.web3d.org/x3d/content/examples/Vrml2Sourcebook/Chapter24Sound/Figure24_5TwoAmbientCirclingSounds.x3d -->

<!-- Color-coding legend: X3D terminology <X3dNode DEF='idNamefield='value'/> matches XML terminology <XmlElement DEF='idNameattribute='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. -->