Examples from the VRML 2.0 Handbook: chapter 4, part 1

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

I’ve left out example 4-1 because it’s a small file that doesn’t include any 3D structures.

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. 4, p. 59): The complete small temple

This example is referred to in the book, and an image of the model is shown in Figure 4-1 of the book.

Download

Preview image

The complete temple.
The complete temple.

Live demo


Example 4-2: Rotating an object

Rotates the chacmool model by 1.57 radians, approximately 90 degrees.

Download

Preview image

Example 4-2.
Example 4-2.

Live demo


Example 4-3: Combining transformations

Shows the chacmool at the origin, and a scaled, rotated, and translated copy at its new location.

Download

Preview image

Example 4-3.
Example 4-3.

Live demo


Example 4-4a: Rotation followed by translation, part 1

Shows the rotation step from example 4-4, without the translation.

Download

Preview image

Example 4-4, part 1.
Example 4-4, part 1.

Live demo


Example 4-4b: Rotation followed by translation, part 2

Shows the translation step from example 4-4, after the rotation.

Download

Preview image

Example 4-4, part 2.
Example 4-4, part 2.

Live demo


Example 4-5a: Translation followed by rotation, part 1

Shows the translation step from example 4-5, without the rotation.

Download

Preview image

Example 4-5, part 1.
Example 4-5, part 1.

Live demo


Example 4-5b: Translation followed by rotation, part 2

Shows the rotation step from example 4-5, after the translation.

Download

Preview image

Example 4-5, part 2.
Example 4-5, part 2.

Live demo


Example 4-6: Using a Box node

Creates the base of a column and moves it to its destination location.

Download

Preview image

Example 4-6.
Example 4-6.

Live demo


Example 4-7: Placing a box in two different places

Creates another instance of the column base in a different location.

Download

Preview image

Example 4-7.
Example 4-7.

Live demo


Unnumbered example (p. 73): Scaling a box

Shows an alternative way to specify a box’s dimensions.

Download

Preview image

Unnumbered example.
Unnumbered example.

Live demo