News for hackers. Stuff that matters.

C# Rectangle Packing

http://kossovsky.net/index.php/2009/07/cshar-rectangle-packing/

Sometimes, you’re faced with the problem to cramp as many smaller textures as possible onto a larger texture. Typical cases are lightmaps, which are very small textures with dimensions that usually are not powers of two, or bitmap fonts where you want to try and fit the entire ascii character set onto a texture without wasting much space.
( no comments | on HN )

There are no comments yet.