Table of Contents Previous Chapter Details Viewpoint Slideshow Next Chapter Details X3D Resources

X3D Example Archives: VRML 2.0 Sourcebook, Chapter 24 - Sound

Figure 24.1 Emitter Markers

Sounds can be triggered by viewer actions: clicks, horn honks, door latch noises, etc. Sounds can also be continuous in the background: wind, crowd noises, elevator music. Sounds emit from a location, in a direction, and within an ellipsoidal volume. A Sound node describes a sound emitter, where a source node provides the sound and range fields describe the sound region. An AudioClip node or a MovieTexture node describe a sound source, where a url points to the sound file. AudioClip also controls playback by start time, stop time, and (optionally) looping.

These X3D scenes are adapted directly from the original VRML 2.0 Sourcebook chapter examples. Also available: Introduction to VRML97 SIGGRAPH98 course notes.

X3D Scenes Descriptions
Figure 24.1 Emitter Markers A silent set of emitter markers indicating emitter location, minimum-range ellipsoid, and maximum-range ellipsoid. Used by other Chapter 24 examples.
Figure 24.2 Ambient Sound Emitter Markers A world with ambient sound and a set of emitter markers.
Figure 24.3 Touch Sensor Triggered Sound A world with sound triggered by touching a white ball, with an emitter marker marking the range of audible sound.
Figure 24.4 Four Key Keyboard Four keys in a keyboard, showing how pitch can vary a single sound source.
Figure 24.5 Two Ambient Circling Sounds Two ambient sounds circling the origin.
Figure 24.6 Directed Ambient Sound A time-varying ambient sound aimed to the right.
Figure 24.7 Virtual TV A virtual television.

Online at http://www.web3d.org/x3d/content/examples/Vrml2.0Sourcebook/Chapter24-Sound

Master source code archive is under subversion control at
http://sourceforge.net/p/x3d/code/HEAD/tree/www.web3d.org/x3d/content/examples/Vrml2.0Sourcebook/Chapter24-Sound

Table of Contents Previous Chapter Details Viewpoint Slideshow Next Chapter Details X3D Resources

Also available: current and archived nightly builds and distributions of these examples, all published under an Open-Source License.

The X3D Resources: Examples page and Savage Developers Guide provide more information about the production of this archive.