< Zurück | Inhalt | Weiter >

14.4.3 Transform

A rotational transformation can also be applied to the texture image prior to texture mapping. This is a fairly unusual operation but might prove useful for specialized operations or to implement special effects. The TextureTransformTest example creates a texture mapped Box and allows the user to interactively rotate the texture applied to the Box using the mouse (figure 14.24).


Figure 14.24 Applying a Transform to an applied texture image. TextureTransformTest allows a texture image to be interactively rotated using a MouseRotate behavior. The ColorCube at the lower left of the two frames shows the current rotation

Note that only the rotational components of the Transform3D appear to be used.


From TextureTransformTest.java