one big lightmap or many small ones?
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?
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.
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement