Examples from the VRML 2.0 Handbook: chapters 5-6

This page shows the example 3D models from chapters 5 and 6 of the The VRML 2.0 Handbook, by Jed Hartman and Josie Wernecke. For more information, see my main Handbook examples page.

In some cases, the download links download a Zip file containing the main VRML file plus any other associated files that the main file relies on, such as textures.


Unnumbered example (ch. 5, p. 100): Point light

Shows a cube lit by a point light.

Download

Preview image

Unnumbered example.
Unnumbered example.

Live demo


Unnumbered example (ch. 5, p. 108): Elevation grid

Shows an elevation grid.

Download

Preview image

Unnumbered example.
Unnumbered example.

Live demo


Unnumbered example (ch. 6, p. 117): Light switch

Shows a sphere and a box. To turn on the light, click the sphere. The light stays on until you release the mouse button.

Download

Preview image

Unnumbered example.
Unnumbered example.

Live demo


Example 6-1: Using a TouchSensor node

Shows a glowing circular button. To make the doorbell buzz, press the button.

Download

Preview image

Example 6-1.
Example 6-1.

Live demo


Example 6-2: Using a PlaneSensor node

Shows a model of a skull. You can drag the skull left and right.

Download

Preview image

Example 6-2.
Example 6-2.

Live demo


Example 6-3: Using a ProximitySensor node

Shows the chacmool. Move forward a little to start the light brightening. If you don’t see the brightening, then move back until the chacmool is in the middle distance, and move forward again. At a certain point, the light gets dim and then brightens again.

Download

Preview image

Example 6-3.
Example 6-3.

Live demo


Example 6-4: Using an interpolator

Shows a spark coming out of the brazier. This code is slightly different from the example in the book; it uses a small sphere instead of a point set, because the point set doesn’t render.

To start the animation, click the brazier. The spark (a small yellow sphere) flies up from the coals and then stops.

Download

Preview image

Example 6-4.
Example 6-4.

Live demo