On 2/13/08, Brian Fisher <[EMAIL PROTECTED]> wrote: > 2. spread images across multiple textures and draw all of them (so the > 24x12 image would be spread across 4 textures, a 16x8, an 8x8, a 16x4 > and an 8x4) which lets you draw more polys in order to not waste so > much video memory
Do you have an algorithm as to how to automatically divide an arbitrary rectangle into a near-optimal set of smaller power-of-two rectangles? I am the author of Lamina, and just have never worried about optimizing the texture usage. Now that it has my attention, the mapping of multiple subtextures into one continuous panel seems straightforward, but choosing the subtexture sizes to start with is not obvious. I suppose I could just premap all the common full-screen window sizes by hand, and then nearest-fit any other window sizes. David -- [EMAIL PROTECTED] Pitcher's Duel -> pitchersduel.python-hosting.com
