Sound
Overview
The Sound node controls the 3D spatialization of sound playback by a child AudioClip or MovieTexture node. Sound intensity includes stereo support, varying according to user location and view direction in the scene.
The Sound node belongs to the Sound component and requires at least level 1, its default container field is children. It is available since VRML 2.0 and from X3D version 3.0 or higher.
Hierarchy
1
2
3
4
+ X3DNode
+ X3DChildNode
+ X3DSoundNode
+ Sound
Fields
SFNode [in, out] metadata NULL [X3DMetadataObject]
Information about this node can be contained in a MetadataBoolean, MetadataDouble, MetadataFloat, MetadataInteger, MetadataString or MetadataSet node.
Hint
SFString [in, out] description “”
Author-provided prose that describes intended purpose of this node.
Hints
- Include space characters since a description is not a DEF identifier. Write short phrases that make descriptions clear and readable.
- Many XML tools substitute XML character references for special characters automatically if needed within an attribute value (such as & for & ampersand character, or " for “ quotation-mark character).
SFBool [in, out] enabled TRUE
Enables/disables node operation.
SFBool [ ] spatialize TRUE
Whether to spatialize sound playback relative to viewer.
Hint
- Only effective within the auralization volume.
SFFloat [in, out] intensity 1 [0,1]
Factor [0,1] adjusting loudness (decibels) of emitted sound.
SFVec3f [in, out] location 0 0 0 (-∞,∞)
Position of sound ellipsoid center, relative to local coordinate system.
Hint
- Improve audibility by setting location=’0 1.6 0’ so that center height of sound ellipsoid matches typical NavigationInfo avatarSize height.
SFVec3f [in, out] direction 0 0 1 (-∞,∞)
direction of sound axis, relative to local coordinate system.
SFFloat [in, out] minBack 1 [0,∞)
Inner (full loudness) ellipsoid distance along back direction.
Warning
- Ensure minBack <= maxBack.
SFFloat [in, out] minFront 1 [0,∞)
Inner (full loudness) ellipsoid distance along front direction.
Warning
- Ensure minFront <= maxFront.
SFFloat [in, out] maxBack 10 [0,∞)
Outer (zero loudness)ellipsoid distance along back direction.
Warning
- Ensure minBack <= maxBack.
SFFloat [in, out] maxFront 10 [0,∞)
Outer (zero loudness)ellipsoid distance along front direction.
Warning
- Ensure minFront <= maxFront.
SFFloat [in, out] priority 0 [0,1]
Player hint [0,1] if needed to choose which sounds to play.
SFNode [in, out] source NULL [X3DSoundSourceNode]
Sound source for the Sound node, either an AudioClip node or a MovieTexture node.
Warning
- If source field is not specified, the Sound node does not emit audio.
MFNode [in, out] children [ ] [X3DSoundChannelNode,X3DSoundProcessingNode,X3DSoundSourceNode]
Input/Output field children.
Advice
Hints
- If the audio source is stereo or multi-channel, channel separation is retained during playback.
- X3D Sound component Figure 16.2 Sound Node Geometry
- X3D Scene Authoring Hints:Audio
- Wikipedia 3D sound localization
Warning
- While providing sounds on the ground plane, ensure that the audible auralization volume is sufficiently elevated to match avatar height.