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

<!-- Event Graph ROUTE Table shows event connections. -->

<!-- to top Index for DEF nodes: Emitter1, Emitter1Clock, Emitter1Path, Emitter2, Emitter2Clock, Emitter2Path, SoundMarker

Index for Viewpoint nodes: Viewpoint_1, Viewpoint_2
-->
 16       <Scene>
 17            <WorldInfo title='Figure24_5TwoAmbientCirclingSounds.x3d'/>
 18            <Viewpoint description='5m from center: two circling ambient soundsposition='0 1 5'/>
 19            <Viewpoint description='8m from center: two circling ambient soundsposition='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 0emissiveColor='0 1 1'/>
 26                      </Appearance>
 27                 </Shape>
 28 
               <!-- ROUTE information for Emitter1 node:  [from Emitter1Path.value_changed to set_rotation ] -->
               <Transform DEF='Emitter1center='-5 0 0translation='5 0 0'>
 29                      <Sound intensity='0.5minBack='5minFront='5'>
 30                           <AudioClip description='emitter1loop='truepitch='1.189'   url=' "tone1.wav" "https://www.web3d.org/x3d/content/examples/Vrml2Sourcebook/Chapter24Sound/tone1.wav" '/>
 31                      </Sound>
 32 
 33                 </Transform>
 34 
               <!-- ROUTE information for Emitter1Clock node:  [from fraction_changed to Emitter1Path.set_fraction ] -->
               <TimeSensor DEF='Emitter1ClockcycleInterval='15loop='true'/>
 35 
               <!-- 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'/>
 36 
               <!-- ROUTE information for Emitter2 node:  [from Emitter2Path.value_changed to set_rotation ] -->
               <Transform DEF='Emitter2center='6 0 0translation='-6 0 0'>
 37                      <Sound intensity='0.5minBack='5minFront='5'>
 38                           <AudioClip description='emitter2loop='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='Emitter2ClockcycleInterval='7loop='true'/>
 43 
               <!-- 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'/>
 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 shows event connections. -->

<!-- to top Index for DEF nodes: 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, accessType and type, XML data types, 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


-->
<!-- Online at
https://www.web3d.org/x3d/content/examples/Vrml2Sourcebook/Chapter24Sound/Figure24_5TwoAmbientCirclingSoundsIndex.html -->
<!-- Version control at
https://sourceforge.net/p/x3d/code/HEAD/tree/www.web3d.org/x3d/content/examples/Vrml2Sourcebook/Chapter24Sound/Figure24_5TwoAmbientCirclingSounds.x3d -->

<!-- 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)
-->

to top <!-- For additional help information about X3D scenes, please see X3D Tooltips, X3D Resources, and X3D Scene Authoring Hints. -->