Package Vrml2Sourcebook.Chapter18TextureMapping
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.
This X3D VRML2 Sourcebook Chapter 18 Texture Mapping examples archive is online.
The X3D Java Scene Access Interface (x3djsail) package provides concrete classes for each X3D node and statement.
Online: X3D Java Scene Access Interface Library (X3DJSAIL) and X3DJSAIL Javadoc
- See Also:
-
ClassDescriptionA square face texture mapped using texture coordinates to select the texture image.A pizza texture with a slice selected mapped to a triangular face.A pizza and slice.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.A small grillwork texture image repeated across a square face using texture-coordinate scaling.A rotated grillwork texture image mapped to a rectangular face to create a chain-link fence.A scaled-down brick texture repeatedly mapped to shape of a Box node using a TextureTransform node.A texture of San Diego Bay mapped to a flat elevation grid.A flat elevation grid using custom texture coordinates to reverse warping and invert the San Diego Bay image as it is applied.A rotating fan, made realistic by animating a TextureTransform.