Repeating a portion of a texture

Started by
2 comments, last by TempHolder 18 years, 4 months ago
Hey I know that to repeat a texture in OpenGL you can do something like this glTexCoord2f(0, 0); ..... glTexCoord2f(4, 4); and that will repeat the whole texture 4 times vertically and horizontally but I want to repeat a portion of the texture a certain number of times vertically and horizontally for example i want to display the portion of the texture thats (.25, .25) to (.5, .5) 4 times across and 3 times down, How can I do this?
Advertisement
Can't do it in openGL.
Go into Photoshop and cut/paste that portion you want into a new texture map.
@TempHolder

Check sub-textures in OpenGL out. Sorry can't help more at the moment.
-----"Master! Apprentice! Heartborne, 7th Seeker Warrior! Disciple! In me the Wishmaster..." Wishmaster - Nightwish
oh this suxs

This topic is closed to new replies.

Advertisement