<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE X3D PUBLIC "ISO//Web3D//DTD X3D 3.3//EN" "http://www.web3d.org/specifications/x3d-3.3.dtd">
<X3D profile='Immersive' version='3.3 xmlns:xsd='http://www.w3.org/2001/XMLSchema-instance' xsd:noNamespaceSchemaLocation =' http://www.web3d.org/specifications/x3d-3.3.xsd '>
<head>
<meta name='titlecontent='SoundAudioClip.x3d'/>
<meta name='descriptioncontent='An example of the Sound and AudioClip node showing the effect of the various volume regions'/>
<meta name='createdcontent='1 May 2006'/>
<meta name='modifiedcontent='7 November 2013'/>
<meta name='referencecontent=' http://X3dGraphics.com '/>
<meta name='referencecontent=' http://www.web3d.org/x3d/content/examples/X3dResources.html '/>
<meta name='creatorcontent='Don Brutzman'/>
<meta name='rightscontent='Copyright 2006, Daly Realism and Don Brutzman'/>
<meta name='subjectcontent=' X3D book, X3D graphics, X3D-Edit, http://www.x3dGraphics.com '/>
<meta name='identifiercontent=' http://X3dGraphics.com/examples/X3dForWebAuthors/Chapter12EnvironmentSensorSound/SoundAudioClip.x3d '/>
<meta name='generatorcontent='X3D-Edit 3.3, https://savage.nps.edu/X3D-Edit'/>
<meta name='licensecontent=' ../license.html'/>
</head>
<!-- -->
<Scene>
<Viewpoint description='Sound spheroid approximating ellipsoid volumeorientation='1 0 0 -0.2position='0 40 200'/>
<Viewpoint description='100m distantorientation='1 0 0 -0.2position='0 20 100'/>
<Viewpoint description='50m distantorientation='1 0 0 -0.2position='0 10 50'/>
<Viewpoint description='25m distantorientation='1 0 0 -0.2position='0 5 25'/>
<Viewpoint description='10m distantorientation='1 0 0 -0.2position='0 2 10'/>
<Viewpoint description='centerorientation='0 1 0 -1.57position='0 2 0'/>
<NavigationInfo speed='10type='"WALK" "ANY"'/>
<!-- Sound location y-value is 1.6 in order to match typical avatar height (in meters) -->
<Sound DEF='Audiblelocation='0 1.6 0maxBack='20maxFront='100minBack='10minFront='10priority='1'>
<AudioClip DEF='WaterSoundsdescription='Running Waterloop='true'
  url=' "aqua.wav" "http://X3dGraphics.com/examples/X3dForWebAuthors/Chapter12EnvironmentSensorSound/aqua.wav" '/>
</Sound>
<!-- minWidth = sqrt (minBack * minFront) = 10 -->
<!-- maxWidth = sqrt (maxBack * maxFront) = 45 -->
<!-- Approximate ellipsoidal footprints and envelope using Cylinders and Spheres, respectively -->
<!-- Minimum attenuation parameters 10, 10, 10 produce a Cylinder and Sphere with uniform scale -->
<Transform DEF='minShapesscale='10 10 10'>
<Shape>
<Cylinder height='0.05'/>
<Appearance>
<Material DEF='MinFootprintMaterialdiffuseColor='0.8 0 0'/>
</Appearance>
</Shape>
<Collision enabled='false'>
<Shape>
<Sphere/>
<Appearance>
<Material DEF='MinSpheroidMaterialdiffuseColor='0.8 0 0transparency='0.5'/>
</Appearance>
</Shape>
</Collision>
</Transform>
<!-- Maximum attenuation parameters 20, 100, 45 produce a Cylinder and Sphere with non-uniform scale -->
<!-- Sound direction is x axis, so maximum-attenuation length = (100 + 20) = 120 and radius = 120 / 2 = 60 along x axis -->
<!-- and so width, height dimensions ~= maximum-attenuation halfwidth = maxWidth ~= 45 along y, z axes -->
<!-- Ellipsoid focus is (0 0 0) but geometric center of spheroidal approximation is (-maxBack + x radius) = (-20 + 60) = 40 along x axis -->
<Transform DEF='maxShapesscale='60 45 45translation='40 0 0'>
<Shape>
<Cylinder height='0.002'/>
<Appearance>
<Material DEF='MaxFootprintMaterialdiffuseColor='1 0.894118 0.341176'/>
</Appearance>
</Shape>
<Collision enabled='false'>
<Shape>
<Sphere/>
<Appearance>
<Material DEF='MaxSpheroidMaterialdiffuseColor='1 0.5 0transparency='0.75'/>
</Appearance>
</Shape>
</Collision>
</Transform>
<!-- Author-assist prototype from Savage X3D model archive -->
<ExternProtoDeclare name='GridXZ'
  url=' "../../Savage/Tools/Authoring/GridXZPrototype.x3d#GridXZ" "https://savage.nps.edu/Savage/Tools/Authoring/GridXZPrototype.x3d#GridXZ" "../../Savage/Tools/Authoring/GridXZPrototype.wrl#GridXZ" "https://savage.nps.edu/Savage/Tools/Authoring/GridXZPrototype.wrl#GridXZ" '>
<field name='descriptiontype='SFStringaccessType='initializeOnly'/>
<field name='labelColortype='SFColoraccessType='inputOutput'/>
<field name='scaletype='SFVec3faccessType='inputOutput'
 appinfo='default unscaled size: 10m by 10m'/>

<field name='labelsOffsettype='SFVec3faccessType='inputOutput'
 appinfo='label location offset (in meters) to improve readability'/>

<field name='originLabeltype='MFStringaccessType='inputOutput'/>
<field name='WestLabeltype='MFStringaccessType='inputOutput'
 appinfo='-Z axis'/>

<field name='NorthWestLabeltype='MFStringaccessType='inputOutput'/>
<field name='NorthLabeltype='MFStringaccessType='inputOutput'
 appinfo='+X axis'/>

<field name='NorthEastLabeltype='MFStringaccessType='inputOutput'/>
<field name='EastLabeltype='MFStringaccessType='inputOutput'
 appinfo='+Z axis'/>

<field name='SouthEastLabeltype='MFStringaccessType='inputOutput'/>
<field name='SouthLabeltype='MFStringaccessType='inputOutput'
 appinfo='-X axis'/>

<field name='SouthWestLabeltype='MFStringaccessType='inputOutput'/>
</ExternProtoDeclare>
<!-- default values scaled up by factor of 10 in this instance -->
<ProtoInstance name='GridXZ'>
<fieldValue name='descriptionvalue='GridXZ'/>
<fieldValue name='labelColorvalue='1 1 1'/>
<fieldValue name='scalevalue='10 10 10'/>
<fieldValue name='labelsOffsetvalue='0 -0.5 0'/>
<fieldValue name='originLabelvalue='"origin" "0 0 0"'/>
<fieldValue name='NorthLabelvalue='"North" "-Z"'/>
<fieldValue name='NorthEastLabelvalue='"100 0 -100"'/>
<fieldValue name='EastLabelvalue='"East" "+X"'/>
<fieldValue name='SouthEastLabelvalue='"100 0 100"'/>
<fieldValue name='SouthLabelvalue='"South" "+Z"'/>
<fieldValue name='SouthWestLabelvalue='"-100 0 100"'/>
<fieldValue name='WestLabelvalue='"West" "-X"'/>
<fieldValue name='NorthWestLabelvalue='"-100 0 -100"'/>
</ProtoInstance>
</Scene>
</X3D>
<!--

Index for ExternProtoDeclare definition : GridXZ

Index for DEF nodes : Audible, MaxFootprintMaterial, maxShapes, MaxSpheroidMaterial, MinFootprintMaterial, minShapes, MinSpheroidMaterial, WaterSounds

Index for Viewpoint images : Viewpoint_1, Viewpoint_2, Viewpoint_3, Viewpoint_4, Viewpoint_5, Viewpoint_6
-->

<!-- Color key: <X3dNode DEF='idName' field='value'/> matches <XmlElement DEF='idName' attribute='value'/>
(Light blue background: behavior node) (Grey background: inserted documentation) (Magenta background: X3D Extensibility)
    <Prototype name='ProtoName'> <field name='fieldName'/> </Prototype> -->

<!-- Additional help information about X3D scenes: X3D Resources, X3D Scene Authoring Hints and X3D Tooltips -->