X3D Model Documentation: intensity.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='intensity.x3d'/>
  6            <meta name='MovingImagecontent='intensity-movie.mpg'/>
  7            <meta name='referencecontent='http://www.nist.gov/vrml.html'/>
  8            <meta name='referencecontent='http://www.itl.nist.gov/div897/ctg/vrml/vrml.html'/>
  9            <meta name='creatorcontent='http://www.itl.nist.gov/div897/ctg/vrml/members.html'/>
 10            <meta name='disclaimercontent='This file was provided by the National Institute of Standards and Technology, and is part of the X3D Conformance Test Suite, available at http://www.nist.gov/vrml.html The information contained within this file is provided for use in establishing conformance to the ISO VRML97 Specification. Conformance to this test does not imply recommendation or endorsement by the National Institute of Standards and Technology (NIST). This software can be redistributed and/or modified freely provided that any derivative works bear some notice that they are derived from it, and any modified versions bear some notice that they have been modified. '/>
 11            <meta name='referencecontent='Interactive Conformance Testing for VRML, Mary Brady and Lynn Rosenthal, NIST, created 8 September 2010 and updated 25 August 2016, https://www.nist.gov/itl/ssd/information-systems-group/interactive-conformance-testing-vrml'/>
 12            <meta name='infocontent='Correct definition and compliance of this conformance scene is maintained by the X3D Working Group, https://www.web3d.org/working-groups/x3d'/>
 13            <meta name='translatorcontent='Michael Kass NIST, Don Brutzman NPS'/>
 14            <meta name='translatedcontent='21 January 2001'/>
 15            <meta name='modifiedcontent='28 August 2023'/>
 16            <meta name='descriptioncontent='Test intensity. A default parametered Sound node, with a wav file sound source is located at the origin of the local coordinate system. The initial Viewpoint in this world is 5 meters from the coordinate origin. As a result, a "chime" sound should be audible to the viewer when either the "Intensity 0.25" or "Intensity 1" button is pressed. The volume of the "Intensity 0.25" selection should be one fourth that of the "Intensity 1" selection. There should be no audible sound when the "Intensity 0" button is pushed. However, in all cases, when a button is pushed, the "phonograph" geometry should turn yellow, indicating that the AudioClip node is active.'/>
 17            <meta name='identifiercontent='https://www.web3d.org/x3d/content/examples/ConformanceNist/Sounds/Sound/intensity.x3d'/>
 18            <meta name='generatorcontent='Vrml97ToX3dNist, http://ovrt.nist.gov/v2_x3d.html'/>
 19            <meta name='generatorcontent='X3D-Edit 4.0, https://savage.nps.edu/X3D-Edit'/>
 20            <meta name='licensecontent='../../license.html'/>
 21       </head>
<!--

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

<!-- to top Index for DEF nodes: DEFAULT, DEFAULTFLASH, DEFAULTMATERIAL, DEFAULTTIMER, HORNCOLOR, MYSOUND1, MYSOUND2, MYSOUND3, PHONOCOLOR, PITCH_DEFAULT_TRANS, PITCH_QUARTER_TRANS, PROX_SENSOR, QUARTER, QUARTERFLASH, QUARTERMATERIAL, QUARTERTIMER, SOUND_SCRIPT, TOUCHDEFAULT, TOUCHQUARTER, TOUCHTWO, TWO, TWO_TRANS, TWOFLASH, TWOMATERIAL, TWOTIMER

Index for Viewpoint node: Viewpoint_1
-->
 22       <Scene>
 23            <WorldInfo title='intensity.x3d'/>
 24            <Viewpoint description='entry viewposition='0 0 5'/>
 25 
 26            <Sound intensity='0'>
 27 
               <!-- AudioClip MYSOUND1 is a DEF node that has 1 USE node: USE_1
               <!-- ROUTE information for MYSOUND1 node:  [from TOUCHQUARTER.touchTime to set_startTime ] [from isActive to SOUND_SCRIPT.colorPhonograph1 ] -->
               <AudioClip DEF='MYSOUND1description='chimes intensity 0'   url=' "chimes.wav" "https://www.web3d.org/x3d/content/examples/ConformanceNist/Sounds/AudioClip/chimes.wav" '/>
 28            </Sound>
 29            <Sound intensity='0.25'>
 30 
               <!-- AudioClip MYSOUND2 is a DEF node that has 1 USE node: USE_1
               <!-- ROUTE information for MYSOUND2 node:  [from TOUCHDEFAULT.touchTime to set_startTime ] [from isActive to SOUND_SCRIPT.colorPhonograph2 ] -->
               <AudioClip DEF='MYSOUND2description='chimes intensity 0.25'   url=' "chimes.wav" "https://www.web3d.org/x3d/content/examples/ConformanceNist/Sounds/AudioClip/chimes.wav" '/>
 31            </Sound>
 32            <Sound>
 33 
               <!-- AudioClip MYSOUND3 is a DEF node that has 1 USE node: USE_1
               <!-- ROUTE information for MYSOUND3 node:  [from TOUCHTWO.touchTime to set_startTime ] [from isActive to SOUND_SCRIPT.colorPhonograph3 ] -->
               <AudioClip DEF='MYSOUND3description='chimes intensity 1'   url=' "chimes.wav" "https://www.web3d.org/x3d/content/examples/ConformanceNist/Sounds/AudioClip/chimes.wav" '/>
 34            </Sound>
 35            <Transform scale='0.5 0.5 0.5'>
 36                 <Transform translation='0 -2 0'>
 37                      <Shape>
 38                           <Appearance>
 39 
                              <!-- Material PHONOCOLOR is a DEF node that has 1 USE node: USE_1 -->
                              <Material DEF='PHONOCOLOR'/>
 40                           </Appearance>
 41                           <Box size='3 1.5 3'/>
 42                      </Shape>
 43                 </Transform>
 44                 <Transform rotation='1 0 0 -2.5'>
 45                      <Shape>
 46                           <Appearance>
 47 
                              <!-- Material HORNCOLOR is a DEF node that has 1 USE node: USE_1 -->
                              <Material DEF='HORNCOLOR'/>
 48                           </Appearance>
 49                           <Extrusion beginCap='falsecreaseAngle='1.57crossSection='1 0 0.92388 0.382683 0.707107 0.707106 0.382684 0.923879 1.26759e-006 1 -0.382682 0.92388 -0.707105 0.707108 -0.923879 0.382685 -1 2.53518e-006 -0.923881 -0.382681 -0.707109 -0.707105 -0.382687 -0.923878 -3.80277e-006 -1 0.38268 -0.923881 0.707104 -0.70711 0.923878 -0.382688 1 0endCap='falseorientation='0 0 1 0 0 0 1 0 0 0 1 0 0 0 1 0 0 0 1 0 0 0 1 0 0 0 1 0 0 0 1 0 0 0 1 0 0 0 1 0 0 0 1 0 0 0 1 0 0 0 1 0 0 0 1 0 0 0 1 0scale='2.2 2.2 1.8 1.8 1.4 1.4 1.2 1.2 1 1 0.8 0.8 0.6 0.6 0.4 0.4 0.4 0.4 0.4 0.4 0.4 0.4 0.4 0.4 0.4 0.4 0.2 0.2 0.0001 0.0001solid='falsespine='0 -1.4 0 0 -1.22137 0 0 -1.01245 0 0 -0.819601 0 0 -0.626754 0 0 -0.401765 0 0 -0.204459 0 0 -0.0164327 0 0 0.176777 0 0 0.380511 0 0 0.578542 0 0 0.819601 0 0 0.996378 0 0 1.8 0 0 1.2 0'/>
 50                      </Shape>
 51                 </Transform>
 52            </Transform>
 53 
          <!-- ROUTE information for PITCH_QUARTER_TRANS node:  [from PROX_SENSOR.position_changed to set_translation ] [from PROX_SENSOR.orientation_changed to set_rotation ] -->
          <Transform DEF='PITCH_QUARTER_TRANS'>
 54                 <Transform translation='-3 1.5 -5'>
 55                      <Shape>
 56                           <Appearance>
 57 
                              <!-- ROUTE information for QUARTERMATERIAL node:  [from QUARTERFLASH.value_changed to set_diffuseColor ] -->
                              <Material DEF='QUARTERMATERIALambientIntensity='1diffuseColor='0 1 0'/>
 58                           </Appearance>
 59                           <Box DEF='QUARTERsize='1.5 1 0.1'/>
 60                      </Shape>
 61                      <Transform translation='-0.55 0 0.2'>
 62                           <Shape>
 63                                <Appearance>
 64                                     <Material ambientIntensity='1diffuseColor='0 0 0'/>
 65                                </Appearance>
 66                                <Text string='"Intensity" "0"'>
 67                                     <FontStyle size='0.35'/>
 68                                </Text>
 69                           </Shape>
 70                      </Transform>
 71                 </Transform>
 72 
               <!-- ROUTE information for TOUCHQUARTER node:  [from touchTime to MYSOUND1.set_startTime ] [from touchTime to QUARTERTIMER.set_startTime ] -->
               <TouchSensor DEF='TOUCHQUARTERdescription='touch to activate 1/4 time'/>
 73 
               <!-- ROUTE information for QUARTERTIMER node:  [from TOUCHQUARTER.touchTime to set_startTime ] [from fraction_changed to QUARTERFLASH.set_fraction ] -->
               <TimeSensor DEF='QUARTERTIMER'/>
 74 
               <!-- ROUTE information for QUARTERFLASH node:  [from QUARTERTIMER.fraction_changed to set_fraction ] [from value_changed to QUARTERMATERIAL.set_diffuseColor ] -->
               <ColorInterpolator DEF='QUARTERFLASHkey='0 0.5 1keyValue='0 1 0 1 1 1 0 1 0'/>
 75            </Transform>
 76 
          <!-- ROUTE information for PITCH_DEFAULT_TRANS node:  [from PROX_SENSOR.position_changed to set_translation ] [from PROX_SENSOR.orientation_changed to set_rotation ] -->
          <Transform DEF='PITCH_DEFAULT_TRANS'>
 77                 <Transform translation='-3 0 -5'>
 78                      <Shape>
 79                           <Appearance>
 80 
                              <!-- ROUTE information for DEFAULTMATERIAL node:  [from DEFAULTFLASH.value_changed to set_diffuseColor ] -->
                              <Material DEF='DEFAULTMATERIALambientIntensity='1diffuseColor='1 1 0'/>
 81                           </Appearance>
 82                           <Box DEF='DEFAULTsize='1.5 1 0.1'/>
 83                      </Shape>
 84                      <Transform translation='-0.55 0 0.2'>
 85                           <Shape>
 86                                <Appearance>
 87                                     <Material ambientIntensity='1diffuseColor='0 0 0'/>
 88                                </Appearance>
 89                                <Text string='"Intensity" "0.25"'>
 90                                     <FontStyle size='0.35'/>
 91                                </Text>
 92                           </Shape>
 93                      </Transform>
 94                 </Transform>
 95 
               <!-- ROUTE information for TOUCHDEFAULT node:  [from touchTime to MYSOUND2.set_startTime ] [from touchTime to DEFAULTTIMER.set_startTime ] -->
               <TouchSensor DEF='TOUCHDEFAULTdescription='touch to activate default time'/>
 96 
               <!-- ROUTE information for DEFAULTTIMER node:  [from TOUCHDEFAULT.touchTime to set_startTime ] [from fraction_changed to DEFAULTFLASH.set_fraction ] -->
               <TimeSensor DEF='DEFAULTTIMER'/>
 97 
               <!-- ROUTE information for DEFAULTFLASH node:  [from DEFAULTTIMER.fraction_changed to set_fraction ] [from value_changed to DEFAULTMATERIAL.set_diffuseColor ] -->
               <ColorInterpolator DEF='DEFAULTFLASHkey='0 0.5 1keyValue='1 1 0 1 1 1 1 1 0'/>
 98            </Transform>
 99 
          <!-- ROUTE information for TWO_TRANS node:  [from PROX_SENSOR.position_changed to set_translation ] [from PROX_SENSOR.orientation_changed to set_rotation ] -->
          <Transform DEF='TWO_TRANS'>
100                 <Transform translation='-3 -1.5 -5'>
101                      <Shape>
102                           <Appearance>
103 
                              <!-- ROUTE information for TWOMATERIAL node:  [from TWOFLASH.value_changed to set_diffuseColor ] -->
                              <Material DEF='TWOMATERIALambientIntensity='1diffuseColor='1 0 0'/>
104                           </Appearance>
105                           <Box DEF='TWOsize='1.5 1 0.1'/>
106                      </Shape>
107                      <Transform translation='-0.55 0 0.2'>
108                           <Shape>
109                                <Appearance>
110                                     <Material ambientIntensity='1diffuseColor='0 0 0'/>
111                                </Appearance>
112                                <Text string='"Intensity" "1"'>
113                                     <FontStyle size='0.35'/>
114                                </Text>
115                           </Shape>
116                      </Transform>
117                 </Transform>
118 
               <!-- ROUTE information for TOUCHTWO node:  [from touchTime to MYSOUND3.set_startTime ] [from touchTime to TWOTIMER.set_startTime ] -->
               <TouchSensor DEF='TOUCHTWOdescription='touch to activate double-time'/>
119 
               <!-- ROUTE information for TWOTIMER node:  [from TOUCHTWO.touchTime to set_startTime ] [from fraction_changed to TWOFLASH.set_fraction ] -->
               <TimeSensor DEF='TWOTIMER'/>
120 
               <!-- ROUTE information for TWOFLASH node:  [from TWOTIMER.fraction_changed to set_fraction ] [from value_changed to TWOMATERIAL.set_diffuseColor ] -->
               <ColorInterpolator DEF='TWOFLASHkey='0 0.5 1keyValue='1 0 0 1 1 1 1 0 0'/>
121            </Transform>
122 
123                 <field name='mySound1type='SFNodeaccessType='initializeOnly'>
124                      <AudioClip USE='MYSOUND1'/>
125                 </field>
126                 <field name='mySound2type='SFNodeaccessType='initializeOnly'>
127                      <AudioClip USE='MYSOUND2'/>
128                 </field>
129                 <field name='mySound3type='SFNodeaccessType='initializeOnly'>
130                      <AudioClip USE='MYSOUND3'/>
131                 </field>
132                 <field name='phonoColortype='SFNodeaccessType='initializeOnly'>
133                      <Material USE='PHONOCOLOR'/>
134                 </field>
135                 <field name='hornColortype='SFNodeaccessType='initializeOnly'>
136                      <Material USE='HORNCOLOR'/>
137                 </field>
138                 <field name='yellowtype='SFColorvalue='0.75 0.75 0.00accessType='initializeOnly'/>
139                 <field name='whitetype='SFColorvalue='0.80 0.80 0.80accessType='initializeOnly'/>
140                 <field name='colorPhonograph1type='SFBoolaccessType='inputOnly'/>
141                 <field name='colorPhonograph2type='SFBoolaccessType='inputOnly'/>
142                 <field name='colorPhonograph3type='SFBoolaccessType='inputOnly'/>
143            </Script>
144            < ROUTE  fromNode='TOUCHQUARTER' fromField='touchTime' toNode='MYSOUND1' toField='set_startTime'/>
145            < ROUTE  fromNode='TOUCHDEFAULT' fromField='touchTime' toNode='MYSOUND2' toField='set_startTime'/>
146            < ROUTE  fromNode='TOUCHTWO' fromField='touchTime' toNode='MYSOUND3' toField='set_startTime'/>
147            < ROUTE  fromNode='PROX_SENSOR' fromField='position_changed' toNode='PITCH_QUARTER_TRANS' toField='set_translation'/>
148            < ROUTE  fromNode='PROX_SENSOR' fromField='orientation_changed' toNode='PITCH_QUARTER_TRANS' toField='set_rotation'/>
149            < ROUTE  fromNode='PROX_SENSOR' fromField='position_changed' toNode='PITCH_DEFAULT_TRANS' toField='set_translation'/>
150            < ROUTE  fromNode='PROX_SENSOR' fromField='orientation_changed' toNode='PITCH_DEFAULT_TRANS' toField='set_rotation'/>
151            < ROUTE  fromNode='PROX_SENSOR' fromField='position_changed' toNode='TWO_TRANS' toField='set_translation'/>
152            < ROUTE  fromNode='PROX_SENSOR' fromField='orientation_changed' toNode='TWO_TRANS' toField='set_rotation'/>
153            < ROUTE  fromNode='TOUCHQUARTER' fromField='touchTime' toNode='QUARTERTIMER' toField='set_startTime'/>
154            < ROUTE  fromNode='QUARTERTIMER' fromField='fraction_changed' toNode='QUARTERFLASH' toField='set_fraction'/>
155            < ROUTE  fromNode='QUARTERFLASH' fromField='value_changed' toNode='QUARTERMATERIAL' toField='set_diffuseColor'/>
156            < ROUTE  fromNode='TOUCHDEFAULT' fromField='touchTime' toNode='DEFAULTTIMER' toField='set_startTime'/>
157            < ROUTE  fromNode='DEFAULTTIMER' fromField='fraction_changed' toNode='DEFAULTFLASH' toField='set_fraction'/>
158            < ROUTE  fromNode='DEFAULTFLASH' fromField='value_changed' toNode='DEFAULTMATERIAL' toField='set_diffuseColor'/>
159            < ROUTE  fromNode='TOUCHTWO' fromField='touchTime' toNode='TWOTIMER' toField='set_startTime'/>
160            < ROUTE  fromNode='TWOTIMER' fromField='fraction_changed' toNode='TWOFLASH' toField='set_fraction'/>
161            < ROUTE  fromNode='TWOFLASH' fromField='value_changed' toNode='TWOMATERIAL' toField='set_diffuseColor'/>
162            < ROUTE  fromNode='MYSOUND1' fromField='isActive' toNode='SOUND_SCRIPT' toField='colorPhonograph1'/>
163            < ROUTE  fromNode='MYSOUND2' fromField='isActive' toNode='SOUND_SCRIPT' toField='colorPhonograph2'/>
164            < ROUTE  fromNode='MYSOUND3' fromField='isActive' toNode='SOUND_SCRIPT' toField='colorPhonograph3'/>
165       </Scene>
166  </X3D>
<!--

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

<!-- to top Index for DEF nodes: DEFAULT, DEFAULTFLASH, DEFAULTMATERIAL, DEFAULTTIMER, HORNCOLOR, MYSOUND1, MYSOUND2, MYSOUND3, PHONOCOLOR, PITCH_DEFAULT_TRANS, PITCH_QUARTER_TRANS, PROX_SENSOR, QUARTER, QUARTERFLASH, QUARTERMATERIAL, QUARTERTIMER, SOUND_SCRIPT, TOUCHDEFAULT, TOUCHQUARTER, TOUCHTWO, TWO, TWO_TRANS, TWOFLASH, TWOMATERIAL, TWOTIMER

Index for Viewpoint node: Viewpoint_1
-->
X3D Tooltips element index: Appearance, AudioClip, Box, ColorInterpolator, Extrusion, field, FontStyle, head, Material, meta, ProximitySensor, ROUTE, Scene, Script, Shape, Sound, Text, TimeSensor, TouchSensor, Transform, Viewpoint, WorldInfo, X3D, accessType and type, XML data types, field types

Event Graph ROUTE Table entries with 21 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.

TOUCHDEFAULT
TouchSensor
touchTime
SFTime

ROUTE
event to
(1)
MYSOUND2
AudioClip
set_startTime
SFTime
then
 
 
 
MYSOUND2
AudioClip
isActive
SFBool

ROUTE
event to
(2)
SOUND_SCRIPT
Script
colorPhonograph2
SFBool
TOUCHDEFAULT
TouchSensor
touchTime
SFTime

ROUTE
event to
(1)
DEFAULTTIMER
TimeSensor
set_startTime
SFTime
then
 
 
 
DEFAULTTIMER
TimeSensor
fraction_changed
SFFloat

ROUTE
event to
(2)
DEFAULTFLASH
ColorInterpolator
set_fraction
SFFloat
then
 
 
 
DEFAULTFLASH
ColorInterpolator
value_changed
SFColor

ROUTE
event to
(3)
DEFAULTMATERIAL
Material
set_diffuseColor
SFColor

TOUCHQUARTER
TouchSensor
touchTime
SFTime

ROUTE
event to
(1)
MYSOUND1
AudioClip
set_startTime
SFTime
then
 
 
 
MYSOUND1
AudioClip
isActive
SFBool

ROUTE
event to
(2)
SOUND_SCRIPT
Script
colorPhonograph1
SFBool
TOUCHQUARTER
TouchSensor
touchTime
SFTime

ROUTE
event to
(1)
QUARTERTIMER
TimeSensor
set_startTime
SFTime
then
 
 
 
QUARTERTIMER
TimeSensor
fraction_changed
SFFloat

ROUTE
event to
(2)
QUARTERFLASH
ColorInterpolator
set_fraction
SFFloat
then
 
 
 
QUARTERFLASH
ColorInterpolator
value_changed
SFColor

ROUTE
event to
(3)
QUARTERMATERIAL
Material
set_diffuseColor
SFColor

TOUCHTWO
TouchSensor
touchTime
SFTime

ROUTE
event to
(1)
MYSOUND3
AudioClip
set_startTime
SFTime
then
 
 
 
MYSOUND3
AudioClip
isActive
SFBool

ROUTE
event to
(2)
SOUND_SCRIPT
Script
colorPhonograph3
SFBool
TOUCHTWO
TouchSensor
touchTime
SFTime

ROUTE
event to
(1)
TWOTIMER
TimeSensor
set_startTime
SFTime
then
 
 
 
TWOTIMER
TimeSensor
fraction_changed
SFFloat

ROUTE
event to
(2)
TWOFLASH
ColorInterpolator
set_fraction
SFFloat
then
 
 
 
TWOFLASH
ColorInterpolator
value_changed
SFColor

ROUTE
event to
(3)
TWOMATERIAL
Material
set_diffuseColor
SFColor

PROX_SENSOR
ProximitySensor
position_changed
SFVec3f

ROUTE
event to
(1)
PITCH_QUARTER_TRANS
Transform
set_translation
SFVec3f
PROX_SENSOR
ProximitySensor
orientation_changed
SFRotation

ROUTE
event to
(1)
PITCH_QUARTER_TRANS
Transform
set_rotation
SFRotation
PROX_SENSOR
ProximitySensor
position_changed
SFVec3f

ROUTE
event to
(1)
PITCH_DEFAULT_TRANS
Transform
set_translation
SFVec3f
PROX_SENSOR
ProximitySensor
orientation_changed
SFRotation

ROUTE
event to
(1)
PITCH_DEFAULT_TRANS
Transform
set_rotation
SFRotation
PROX_SENSOR
ProximitySensor
position_changed
SFVec3f

ROUTE
event to
(1)
TWO_TRANS
Transform
set_translation
SFVec3f
PROX_SENSOR
ProximitySensor
orientation_changed
SFRotation

ROUTE
event to
(1)
TWO_TRANS
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/ConformanceNist/Sounds/Sound/intensityIndex.html -->
<!-- Version control at
https://sourceforge.net/p/x3d/code/HEAD/tree/www.web3d.org/x3d/content/examples/ConformanceNist/Sounds/Sound/intensity.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. -->