ChinaShrimp

03-17-2004, 02:49 AM

what I really want to know is what's the function of the texture matrix?

for example:

If I have associated the 3D-texture coordinates with each vertex (for instance, vertex A, B,C, D) of the polygon and set the texture matrix M, then opengl would generate the texture coordinates of every point that locates in the rectangle like this?

(x', y',z', w) = M(x, y, z, 1)

(x'', y'', z'')=(x'/w, y'/w, z'/w)

for example:

If I have associated the 3D-texture coordinates with each vertex (for instance, vertex A, B,C, D) of the polygon and set the texture matrix M, then opengl would generate the texture coordinates of every point that locates in the rectangle like this?

(x', y',z', w) = M(x, y, z, 1)

(x'', y'', z'')=(x'/w, y'/w, z'/w)