Brief Index      Full Index      I.M. Reference

Translate_Texture


Functions

void Translate_Texture (double u, double v, double w)
void QTranslate_Texture (const char *segment, double u, double v, double w)

Function Documentation

void Translate_Texture ( double  u,
double  v,
double  w 
)

Moves texture images about on the surface of texture mapped shells and meshes by transforming their (u, v, w) vertex parameters.

Parameters:
u - Distance to move along the U -axis. Positive values are towards positive U, of course.
v - Distance to move along the V -axis.
w - Likewise, along the W -axis.

DETAILS

Translate_Texture() modifies a segment's "texture matrix" attribute (see Set_Texture_Matrix() ) that is applied to the (u, v, w) vertex parameters of shells and meshes. In order to give the appearance that a texture is being translated, the vertex parameters (which don't change their geometric locations) are transformed by the opposite translation (the matrix adjoint).

The mathematical transform passed on to Append_Texture_Matrix() is

trnstxtr.gif

NOTES

RESTRICTIONS

See also:
Scale_Texture, Rotate_Texture, Append_Texture_Matrix, Set_Texture_Matrix.

void QTranslate_Texture ( const char *  segment,
double  u,
double  v,
double  w 
)

Similar to Translate_Texture(), but operates on a given segment rather than the currently open one.

Parameters:
segment - Name of the segment(s) to be changed.
u - Distance to move along the U -axis. Positive values are towards positive U, of course.
v - Distance to move along the V -axis.
w - Likewise, along the W -axis.

DETAILS

No additional details. See Translate_Texture()

Main Index
Brief Index      Full Index      I.M. Functions