View Full Version : texture mapping problem

09-02-2003, 06:22 PM
i have a texture for road but it is only one piece of it, how do
apply the texture so it look like a long road?
thanks in advance.

09-02-2003, 11:27 PM
use the warp parameters for S and T texture coordinates.

if S correspond to the width and T correspond to the length, set GL_CLAMP_TO_EDGE for S warp mode (using glTexParameter) and GL_REPEAT for T warp mode.
now, when rendering, set the T texture coordinate of the road's vertice corresponding to the distance from the road start point.

09-07-2003, 04:57 PM
how do i map the road to the center and place other texture at both side