Figure 14.4 The TextureTest example loads an image
Figure 14.5 The TextureTest example in action. Four texture-mapped TriangleArrays have been created from two sets of texture coordinate data and images. The TriangleArrays are rotated using an Interpolator The texture coordinates are specified in IMPORTANT counterclockwise order. This is a requirement imposed by the com.sun.j3d.utils.geometry.Triangulator utility, which converts the polygon created from the texture coordinates into a TriangleArray. The createTextureGeometrymethod performs most of the work related to assigning texture coordinates to vertices. There are eight basic steps: 1. Read Texture coordinates from file. 2. Generate vertex coordinates based on scaling and translating texture coordinates. 3. Load the texture image using the com.sun.j3d.utils.image.TextureLoaderclass and 233
Note: If you are looking for good and high quality web space to host and run your application check Lunarwebhost Java Web Hosting services