Applying Textures to Geometries
49
The setTexGen() method specifies
• Whether or not the texture plane is repeated across the geometry.
• Whether the texture plane is stationary or moves in concert with the motion of the
geometry.
The setTexGen() method takes a csTexGen object for an argument. In a csTexGen object,
you set the
• Repetition of the texture image in three dimensions, s, t, and r.
• Mode of the texture in each of the dimensions.
For example, csTexGen::setPlaneS(2.5, 0, 0, 0) repeats the texture two-and-a-half
times in the s dimension.
Figure 3-6 shows how a texture plane is repeated across a geometry.
Figure 3-6 Repeated Texture on a Geometry
The default values of both s plane equations are (1,0,0,0), both t plane equations are
(0,1,0,0), and all r and q plane equations are (0,0,0,0).