Texture Mosaics

I’d like to combine multiple smaller textures into a larger one, primarily to minimize the number of texture bindings, but I couldn’t find a way to apply this technique for ‘repeating’ textures. I recently bought “Advanced Graphics Programming Using OpenGL” and there is a section about this exact technique, where it’s hinted that it could be used for repeating textures too, though with no details on how to do it.

Can it be done with OpenGL/fixed pipeline?

Thank you,
Lemo.

Try Chapter 12 of GPU Gems2.

The code is available here:

http://download.nvidia.com/developer/GPU_Gems_2/CD/Index.html

P.S. it ain’t fixed function stuff.