Skip to main content
gamedev.net
🔒 Locked

Lightmap Texture Packing

Started by _code_fly Oct 22, 2005 at 9:24 AM 1 replies 1.6k views
Original Post
_code_fly
_code_fly
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
darookie
darookie
You can use a kD-tree approach for packing lightmaps: try this link.

HTH,
Pat
_code_fly
_code_fly
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...

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.