Lightmap Texture Packing

Started by
1 comment, last by _code_fly 18 years, 6 months ago
Hi, just wondering if anyone could point me to a resource for lightmap generation. I need an algorithm for the texture packer - the code which generates lightmap texture coordinates and packs the lightmap into one texture. cheers
Advertisement
You can use a kD-tree approach for packing lightmaps: try this link.

HTH,
Pat
thanks!

I suppose that the algorithm could be adapted to use triangles rather than quads by replacing the quad with the bounding rectangle of the triangle...

This topic is closed to new replies.

Advertisement