Melekor
05-28-2005, 03:46 PM
I made a packed texture system that packs tons of small (usually non power of two) textures into one large texture. Up till now, this has worked fine because I haven't needed tiling textures. Now that I do though, I can't figure out how to make it work without subdividing my polygons, which would be more trouble than it's worth.
So basically, what I'm looking for is something that will let me GL_REPEAT texture coordinates within a subrectangle of the whole texture. I know there's no standard mechanism for this(or if there is, then I'm blind), but is it possible at all through some kind of clever trick?
I've got my fingers crossed that one of you gurus out there knows a solution :)
Cheers,
Melekor
So basically, what I'm looking for is something that will let me GL_REPEAT texture coordinates within a subrectangle of the whole texture. I know there's no standard mechanism for this(or if there is, then I'm blind), but is it possible at all through some kind of clever trick?
I've got my fingers crossed that one of you gurus out there knows a solution :)
Cheers,
Melekor