Examples from the VRML 2.0 Handbook: chapters 7-8, part 2

This page shows the example 3D models from the second half of chapter 8 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.


Example 8-5: Specifying normals per face

Shows three connected flat pieces, with a sharp dividing line at each edge.

Download

Preview image

Example 8-5.
Example 8-5.

Live demo


Example 8-6: Specifying normals per vertex

Shows three connected flat pieces, with curved/smooth-looking joins between them.

Download

Preview image

Example 8-6.
Example 8-6.

Live demo


Example 8-7: Specifying indexed vertex normals

Shows three connected flat pieces, with one hard edge and one smooth one.

Download

Preview image

Example 8-7.
Example 8-7.

Live demo


Example 8-8: Combining color per vertex with a one-component texture

Shows a knife with a texture image on it.

Download

Preview image

Example 8-8.
Example 8-8.

Live demo


Example 8-9: Using default texture mapping

Shows the temple roof with a texture mapped onto it. The default texture mapping may differ from one VRML viewer to another. For example, one viewer may map to the front face of the object, whereas another may map to the top of the object. The safest way to ensure that mapping works the same across all browsers is to specify texture coordinates explicitly.

Download

Preview image

Example 8-9.
Example 8-9.

Live demo


Example 8-10: Specifying texture coordinates

Shows the temple roof with a texture mapped onto it.

Download

Preview image

Example 8-10.
Example 8-10.

Live demo


Example 8-11: Scaling a texture

Shows the temple roof with a texture mapped onto it.

Download

Preview image

Example 8-11.
Example 8-11.

Live demo


Example 8-12: Repeating and clamping textures

Shows the temple roof with a texture mapped onto it.

Download

Preview image

Example 8-12.
Example 8-12.

Live demo


Example 8-13: Specifying a pixel texture

Shows a sphere with a four-color texture mapped onto it.

Download

Preview image

Example 8-13.
Example 8-13.

Live demo


Example 8-15: Specifying ground colors

Shows a green ground half-sphere

Download

Preview image

Example 8-15.
Example 8-15.

Live demo


Example 8-16: Specifying sky colors

Shows a blue sky.

Download

Preview image

Example 8-16.
Example 8-16.

Live demo