The lightmap texture on both pictures has the same size (256x256, for the whole level, not per face). On the right pictures I'm calculating 4 samples, on the left only one. The speed decrease is not 4 times as expected, but a lot less, I guess because of caching, nice. I added the option to choose between 1, 4, 9, 16 and 25 samples per texel. Will be in the next release.
eleven comments, already:
hujan - 29 09 06 - 17:11
Why not apply a gaussian blur on the final texture?
Lonerunner () - 29 09 06 - 17:32
@Lonerunner: because that would cause bleeding between sub-areas of the lightmap texture. Remember a lightmap is an atlas texture, with lots of non-continuous regions packed near to each other, a context-less gaussian blur would cause horrible errors.
@niko: Nice improvement :) I’m curious, hope you don’t mind answering questions:
1) what kind of spatial arrangement did you use for your 4 taps? Regular grid or jittered?
2) I assume you’re using texture gamma ramping to blow out the areas close to the lights (rather than HDR)?
Once you add some element of or approximation of global illumination it will look much better – perhaps just a secondary light bounce or an ambient occlusion pass. That way you won’t need as many lights to avoid the typical over-dark areas caused by direct-only lighting.
steve () (link) - 29 09 06 - 18:04
2 niko : and what about releasing terrain scene node in irrEdit ? It would be the best improvement :)
Bazzilic () - 29 09 06 - 19:46
ambient occlusion – oauuuu that is simple and soo COOL!
(maybe niko can play with that)
Lonerunner () - 29 09 06 - 19:53
Can’t wait to see it in action.
Polrod - 29 09 06 - 23:29
That’s a very nice feature!
cmoibenlepro - 29 09 06 - 23:48
Very nice features! It would be very nice too to see also global illumination, and also other types of lights like “area” lights and sunlight.
Bulbazaur - 30 09 06 - 05:55
niko - 30 09 06 - 07:38
sooo coool niko…totally loving irrlicht and irredit more and more..!
tunde () (link) - 30 09 06 - 20:43
This is really beautiful. The only thing more I could ask for in a lightmapper is radiosity, but I guess I should just write my own.
anonymous - 18 10 06 - 04:50