X3D Example Archives: VRML 2 Sourcebook, Chapter 18 Texture Mapping

Figure 18.27 Rotating Fan Animated Texture Transform

Texture coordinates transform and map pixels in a 2D image onto specific 3D points.

Texture images are in a texture coordinate system. By default, an entire texture image is mapped once around the shape. You can also extract only pieces of interest, or create repeating patterns. Texture coordinates and indexes describe a texture cookie cutter. Texture transforms translate, rotate, and scale place the cookie cutter. Texture indexes bind the cut-out cookie texture to a face on a shape.

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

  10 X3D Models       X3D Model Descriptions
   Figure18_19TextureCoordinateTest Figure18_19TextureCoordinateTest A square face texture mapped using texture coordinates to select the texture image.
   Figure18_20bTextureCoordinatePizzaSlice Figure18_20bTextureCoordinatePizzaSlice A pizza texture with a slice selected mapped to a triangular face. Also see Figure 18.20b and Figure 18.21 for comparison.
   Figure18_21TextureCoordinatePizzaSlice Figure18_21TextureCoordinatePizzaSlice A pizza and slice. Also see Figure 18.20b and Figure 18.21 for comparison.
   Figure18_22bTextureCoordinateVideoWall Figure18_22bTextureCoordinateVideoWall A four-screen video wall, each screen created by stamping out one fourth of a mountain texture image and using a TextureTransform node to translate the texture cookie cutter.
   Figure18_23bTextureCoordinateGrillwork Figure18_23bTextureCoordinateGrillwork A small grillwork texture image repeated across a square face using texture-coordinate scaling. Also see Figures 18.23b and 18.24 for comparison.
   Figure18_24TextureCoordinateRotatedGrillworkFence Figure18_24TextureCoordinateRotatedGrillworkFence A rotated grillwork texture image mapped to a rectangular face to create a chain-link fence. Also see Figures 18.23b and 18.24 for comparison.
   Figure18_25bTextureTransformBrickBox Figure18_25bTextureTransformBrickBox A scaled-down brick texture repeatedly mapped to shape of a Box node using a TextureTransform node.
   Figure18_26bUncorrectedTextureSanDiegoBay Figure18_26bUncorrectedTextureSanDiegoBay A texture of San Diego Bay mapped to a flat elevation grid. Compare Figures 18.26b and 18.26c.
   Figure18_26cCorrectedTextureSanDiegoBay Figure18_26cCorrectedTextureSanDiegoBay A flat elevation grid using custom texture coordinates to reverse warping and invert the San Diego Bay image as it is applied. Compare Figures 18.26b and 18.26c.
   Figure18_27RotatingFanAnimatedTextureTransform Figure18_27RotatingFanAnimatedTextureTransform A rotating fan, made realistic by animating a TextureTransform.

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