X3D Example Archives: VRML 2 Sourcebook, Chapter 17 Textures

Textures are 2D images that can be wrapped on top of 3D geometry.

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, greyscale 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 Models       X3D Model Descriptions
   Figure17_04aTextureBoxTest Figure17_04aTextureBoxTest A texture-mapped Box. Compare Figure17_04aTextureBoxTest, Figure17_04bTextureConeTest, Figure17_04cTextureCylinderTest and Figure17_04dTextureSphereTest.
   Figure17_04bTextureConeTest Figure17_04bTextureConeTest A texture-mapped Cone. Compare Figure17_04aTextureBoxTest, Figure17_04bTextureConeTest, Figure17_04cTextureCylinderTest and Figure17_04dTextureSphereTest.
   Figure17_04cTextureCylinderTest Figure17_04cTextureCylinderTest A texture-mapped Cylinder. Compare Figure17_04aTextureBoxTest, Figure17_04bTextureConeTest, Figure17_04cTextureCylinderTest and Figure17_04dTextureSphereTest.
   Figure17_04dTextureSphereTest Figure17_04dTextureSphereTest A texture-mapped Sphere. Compare Figure17_04aTextureBoxTest, Figure17_04bTextureConeTest, Figure17_04cTextureCylinderTest and Figure17_04dTextureSphereTest.
   Figure17_05dTexturedSodaCan Figure17_05dTexturedSodaCan 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.
   Figure17_06bTexturedText Figure17_06bTexturedText A brick texture mapped to a text shape.
   Figure17_07bTexturedLightningBolt Figure17_07bTexturedLightningBolt A flame image textured onto a 3D lightning bolt using concave faces. Compare Figures 13.13 and 17.7b.
   Figure17_08bTexturedElevationGridMountain Figure17_08bTexturedElevationGridMountain A terrain texture image, texture mapped to a mountain-shaped elevation grid. Compare Figure14_2ElevationGridMountain.x3d, Figure16_7VertexColoredElevationGridMountain.x3d and Figure17_08bTexturedElevationGridMountain.x3dn
   Figure17_09bTexturedDonutTorusExtrusion Figure17_09bTexturedDonutTorusExtrusion A donut-icing texture image texture mapped to a chocolate donut
   Figure17_10cTextureTransparencyTree Figure17_10cTextureTransparencyTree A tree image texture mapped, with pixel transparencies, on a rectangular face to create a tree.
   Figure17_11bGreyTextureGreenMaterialStripedCylinder Figure17_11bGreyTextureGreenMaterialStripedCylinder A tree image texture mapped, with pixel transparencies, on a rectangular face to create a tree.
   Figure17_12bWoodTextures Figure17_12bWoodTextures Six different wood types created by coloring a grayscale wood texture.
   Figure17_13SimplePixelTexture Figure17_13SimplePixelTexture A face with color varying from yellow to red, showing PixelTexture use.
   Figure17_14bMovieTextureWhirlpool Figure17_14bMovieTextureWhirlpool A swirling whirlpool created using a movie texture.

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