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

X3D Example Archives: VRML 2 Sourcebook, Chapter 17 - Textures

You can model every tiny texture detail of a world using a vast number of colored faces, but this is time consuming and difficult. Use a trick instead: take a picture of the real thing, then paste that picture on the shape, like sticking on a decal image. Specify the texture using an ImageTexture, PixelTexture, or MovieTexture node within an Appearance node. Color textures override material, grayscale textures multiply against the color values. Textures with transparency create holes that can be seen through.

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

Figure 17.08b Textured Elevation Grid Mountain
  14 X3D Scenes       Scene Descriptions
Figure 17.04a Texture Box Test A texture-mapped Box. Compare Figure17.04aTextureBoxTest, Figure17.04bTextureConeTest, Figure17.04cTextureCylinderTest and Figure17.04dTextureSphereTest.
Figure 17.04b Texture Cone Test A texture-mapped Cone. Compare Figure17.04aTextureBoxTest, Figure17.04bTextureConeTest, Figure17.04cTextureCylinderTest and Figure17.04dTextureSphereTest.
Figure 17.04c Texture Cylinder Test A texture-mapped Cylinder. Compare Figure17.04aTextureBoxTest, Figure17.04bTextureConeTest, Figure17.04cTextureCylinderTest and Figure17.04dTextureSphereTest.
Figure 17.04d Texture Sphere Test A texture-mapped Sphere. Compare Figure17.04aTextureBoxTest, Figure17.04bTextureConeTest, Figure17.04cTextureCylinderTest and Figure17.04dTextureSphereTest.
Figure 17.05d Textured Soda Can A soft drink can built by texture mapping soft-drink-can images to parts of a cylinder. Images include the top, the bottom, and the sides.
Figure 17.06b Textured Text A brick texture mapped to a text shape.
Figure 17.07b Textured Lightning Bolt A flame image textured onto a 3D lightning bolt using concave faces. Compare Figures 13.13 and 17.7b.
Figure 17.08b Textured Elevation Grid Mountain A terrain texture image, texture mapped to a mountain-shaped elevation grid. Compare Figure14.2ElevationGridMountain.x3d, Figure16.7VertexColoredElevationGridMountain.x3d and Figure17.08bTexturedElevationGridMountain.x3dn
Figure 17.09b Textured Donut Torus Extrusion A donut-icing texture image texture mapped to a chocolate donut
Figure 17.10c Texture Transparency Tree A tree image texture mapped, with pixel transparencies, on a rectangular face to create a tree.
Figure 17.11b Grey Texture Green Material Striped Cylinder A tree image texture mapped, with pixel transparencies, on a rectangular face to create a tree.
Figure 17.12b Wood Textures Six different wood types created by coloring a grayscale wood texture.
Figure 17.13 Simple Pixel Texture A face with color varying from yellow to red, showing PixelTexture use.
Figure 17.14b Movie Texture Whirlpool A swirling whirlpool created using a movie texture.

Online at http://www.web3d.org/x3d/content/examples/Vrml2Sourcebook/Chapter17-Textures

Validate XHTML 1.1

Master source code archive is under subversion control at
http://sourceforge.net/p/x3d/code/HEAD/tree/www.web3d.org/x3d/content/examples/Vrml2Sourcebook/Chapter17-Textures

Table of Contents Previous Chapter Summary Chapter Viewpoint Slideshow Next Chapter Summary 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.