Jump to content
  • Advertisement

Archived

This topic is now archived and is closed to further replies.

amish1234

one big lightmap or many small ones?

This topic is 5534 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I want to precalculate the lighting for my levels and store it in a lightmap. When I''m rendering, only part of the lightmap will get used, because only part of the level can be seen, and I''ll obviously use occlusion culling. So, since only part of the lightmap is used at a time, would it make any performance difference if I had one huge lightmap or many small ones?

Share this post


Link to post
Share on other sites
Advertisement
In order to reduce batches and state changes using one big lightmap would be the way to go. You can pretty easily group large chunks of geometry that all use the same lightmap, even if all of the chunk isn''t being drawn you only have to worry about a single lightmap for that group, which reduces state changes and possibly batches. Using a few large lightmaps is probably the best way to do. If you use a lot of smaller lightmaps you''ll have to break up your geometry into lots of small chunks, which isn''t great for rendering.

Share this post


Link to post
Share on other sites

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!