|
DeleD Community Edition Forums
|
View previous topic :: View next topic |
Author |
Message |
Paul-Jan Site Admin
Joined: 08 Aug 2004 Posts: 3066 Location: Lage Zwaluwe
|
Posted: Thu Jun 23, 2005 9:03 am Post subject: Some remarks about lightmapping |
|
|
Hi guys, the post below is something I just posted over at http://www.pelicancrossing.com/forum/index.php , thought it might be useful to post it here as well
Some remarks that might or might not help out:
1. I think we badly need to build some feedback and warnings into DeleD about total lightmap size when generating a lightmap. Quite some users have been attempting to light a couple thousand of polygons with both minimum and maximum texture size set to 256x256 (or even higher). A quick calculation tells you that is 256x256*3 bytes per polygon. That's easily a few hundred mb of lightmapping information for a scene. Downright kills both performance and download times.
Of course, we didn't expect people to actually do these kind of calculations in their head when modeling. However, we did expect people to pick up hints like their computer spending hours and hours calculating the lightmap, running out of memory, the multiple gig upload to their webspace, stuff like that
2. Lightmaps should never be converted to a lossy fileformat like JPG. The boundaries between individual textures (packed in for example 512x512 lightmaps) will be corrupted, resulting in bad artifacts. This is the reason why the lightmaps are stored as .bmp's in the first place. PNG compression (lossless) will do fine. DDS might do even better, as it can be stored compressed in texture memory as well. Both formats are on our todolist, but currently Not Yet Implemented. Once we do, DeleD will ask the user for the preferred format to store the lightmaps in. Until then, you'll have to do the conversion manually.
3. To make sure there is no confusion about this: setting the LightMap Size to 512x515 does _not_ restrict total lightmap size to 512x512, it just means the packed bmp's produced will each be 512x512 size. There is no way to directly restrict total lightmap size in DeleD, we decided to take an approach where quality is leading, not size. I understand how, especially for web deployment, more feedback on total size is necessary... please refer to remark (1)
4. Min and Max Individual Texture Size are a Good Thing (tm). The average scene consists of a lot more small than large polygons, so setting the minimum value a little bit lower results in a lot smaller texture size at virtually no cost (as it only affects the smallest of textures in your scene). I personally usually start out with 8x8 Min size and 128x128 Max size, using 2 blur passes. That is, after I am mostly done placing lights, because during that phase I set everything to 8x8 and turn of blurring and shadowcasting.
5. DeleD Lite lighting is restricted to a fixed 32x32 Min/Max individual texture size. Not only does this result in pretty bad quality lighting (without crease angle or filter support), it also quickly leads to huge lightmaps. A quick calculation learns that only 256 textures fit into a single 512x512 lightmap. In other words, Lite lighting is not suitable for lighting anything serious, especially for Web Deployment where the size issue is a lot more severe. Note how we kinda did this on purpose
6. We might consider changing the Lite restrictions a bit in the future. We also might consider offering the user a different lightmapping scheme, where size is leading (i.e. the user sets the desired Total Lightmap Size, and the renderer just uses a constant lumel density on all surfaces). As always, any ideas you guys have on these and other issues are more than welcome! |
|
Back to top |
|
|
condrula Member
Joined: 07 Oct 2004 Posts: 62 Location: Rome, Italy
|
Posted: Thu Jun 23, 2005 9:24 am Post subject: |
|
|
ooopss (sorry I read better this time...) |
|
Back to top |
|
|
Paul-Jan Site Admin
Joined: 08 Aug 2004 Posts: 3066 Location: Lage Zwaluwe
|
Posted: Thu Jun 23, 2005 1:50 pm Post subject: |
|
|
I have no idea what you said oops for, but I am sure you are forgiven *lol* |
|
Back to top |
|
|
Brian DeleD PRO user
Joined: 24 Mar 2005 Posts: 98
|
Posted: Fri Jun 24, 2005 12:32 pm Post subject: |
|
|
All I can say Paul, is that this area needs to be addressed. Kind regards Brian. |
|
Back to top |
|
|
trucker2000 DeleD PRO user
Joined: 11 May 2005 Posts: 1839 Location: Sacramento, California
|
Posted: Fri Jun 24, 2005 9:02 pm Post subject: |
|
|
That makes since. My question is...why in the world does deled make so many lightmaps anyway? _________________ Some day I will grow up and be a real modeler.
"Never give up! Never surrender!!"
Sys specs:
asus
8 gigs ram
Invidia gtx560 video card
Windows 8 (worst op sys Ever) |
|
Back to top |
|
|
Paul-Jan Site Admin
Joined: 08 Aug 2004 Posts: 3066 Location: Lage Zwaluwe
|
Posted: Sun Jun 26, 2005 8:03 pm Post subject: |
|
|
Hi Trucker2000,
What do you mean by "many lightmaps"?
Strictly sticking to commonly used terminology, DeleD creates:
a) 1 lightmap, consisting of
b) 1 or multiple lightmap files, depending on your settings. The higher resolution you want, the more files you get. The more polygons you use, the more files you get. Then again, the more pixels per file you allow for (be ware of old gfx cards not supporting huge textures), the less files you need. Each lightmap file consists of
c) multiple individual lightmap textures, one per triangle.
I assume you are refering to b). Try lowering your lightmap resolution, especially the minimum individual texture size. |
|
Back to top |
|
|
trucker2000 DeleD PRO user
Joined: 11 May 2005 Posts: 1839 Location: Sacramento, California
|
Posted: Sun Jun 26, 2005 10:47 pm Post subject: |
|
|
Ok, will give that a try. (was planning on it anyway.) _________________ Some day I will grow up and be a real modeler.
"Never give up! Never surrender!!"
Sys specs:
asus
8 gigs ram
Invidia gtx560 video card
Windows 8 (worst op sys Ever) |
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|