Sign in to follow this  
oil_on_glass

How are lightmaps stored?

Recommended Posts

Hi all new to this forum and had a question about hi resolution lightmapping for detailed environments. Generally, with most game tools, you can specify lightmap resolution in pixels per square meter of area in world space. Problem is, when you have a large detailed world, keeping it all in one map could be quite burdisome as you might be looking at having an 8k+ size texture. Do most highend games split this lightmapping data up into smaller maps; maybe 1 per BSP section or something similar to be streamed in on the fly? Or do most games keep it all in one enourmous map file that has to constantly be drawn in every frame(mem bandwidth hog?)? thanks and sorry for the newb question, I am an artist trying to understand lightmapping from a performnce issue(memory bandwidth/ cache misses etc). best wishes

Share this post


Link to post
Share on other sites
Quote:
Original post by Luke Philpot
Have you checked out FSRad? It's open source, you might want to have a look at those lightmap packing routines.

Well, he`s an artist so don`t expect him to study the source code of FSRad.


oil_on_glass: You should ask your engine programmer what are the limitations and rules for lightmaps in your specific case. Obviously, the easiest way would be to have one lightmap per some object or a world chunk. But it all depends on a final required quality, e.g. do you have a shadow boundary over some part of broken brick hanging from the wall ? You might find that when the quality is finally OK, the final lightmap size is too big, so you either have to split the object or handle it differently (after consultation with your graphics/engine programmer) or simply change the parameters of the light.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this