Re: Repeating a texture image (for want of a better title)
- From: Jonathan Campbell <jg.campbell.ng@xxxxxxxxx>
- Date: Wed, 17 Oct 2007 20:43:13 GMT
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.
.
- References:
- Repeating a texture image (for want of a better title)
- From: Jonathan Campbell
- Re: Repeating a texture image (for want of a better title)
- From: fungus
- Repeating a texture image (for want of a better title)
- Prev by Date: Re: text disapearing when translate value is outside the boundary of the window ?
- Next by Date: Re: text disapearing when translate value is outside the boundary of the window ?
- Previous by thread: Re: Repeating a texture image (for want of a better title)
- Index(es):