X3D Example Archives: VRML 2.0 Sourcebook, Chapter 30 - Scripts

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

X3D Scenes Descriptions
Figure 30.1 Script Sliding Ball A sliding red sphere and a custom interpolation script. Three ways to include ECMAScript (JavaScript) programming are compared: external file, url script code, and embedded script code. Recommendation: use embedded script code inside a CDATA block.
Figure 30.2 Script Background Select Click on a geometric Shape to change the scene Background. A Script node controls the state changes.
Figure 30.3 Script Sound Activate A pair of filter scripts used to create a toggle on-off switch.
Figure 30.4 Script Spiraling Ball Trace A spiraling red sphere and a custom interpolation script.
Figure 30.5 Script Torus Builder A torus shape built with a donut-maker program script. Also see Figures 31.6 and 31.7.

http://www.web3d.org/x3d/content/examples/Vrml2.0Sourcebook/Chapter30-Scripts

Current and archived nightly builds and distributions of these examples are also available.

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