I've implemented a rectangle packing class similar to the one mentioned here. My ultimately goal is to pack a number of smaller sprites into a large spritesheet.
The difficulty I'm experiencing is figuring out a way to expand that algorithm to allow for static rectangles. That is: rectangles whose positions remain static during the packing process and are effectively treated as obstacles that are to be avoided.
Is there another algorithm I should be considering or perhaps a more efficient way to of doing this?