Re: Repeating a texture image (for want of a better title)



fungus wrote:
On Oct 17, 4:10 pm, Jonathan Campbell <jg.campbell...@xxxxxxxxx>
wrote:
Any suggestions as to an optimum solution? --- repeated texture image
across a rectangle.


Textures should repeat by default, if they don't you're
doing something wrong.

ie. A square with texture coordinates (0,0), (0,10), (10,10), (10,0)
should have the texture pattern repeated across it ten times.


Thanks. So my first hunch was correct. In the student lab. session, I hadn't remembered that I had done the experiment quoted in my o.p., so when the result looked unimpressive, I gave up and confessed that I had no immediate answer. Anything could have been wrong.

Unless I'm badly mistaken, we had:

glTexParameterf(GL_TEXTURE_2D,GL_TEXTURE_WRAP_S,GL_REPEAT);
glTexParameterf(GL_TEXTURE_2D,GL_TEXTURE_WRAP_T,GL_REPEAT);

Best regards,

Jon C.
.