How does it work?Simple. It generates a new mesh, with a new texture coordinate set and meshbuffers, and draws lightmap pixels onto the new textures. That's it.
How fast is it?Quite fast. Needs about half a second for a small room with 3 point lights and shadows enabled as shown above. But I didn't test it out with huge levels and hundreds of lights yet.
Why is it that fast?I don't know. I just wrote it. Maybe because it's still simple.
What lighting model are you using?Simple diffuse direct lighting. Global illumination to be implemented later maybe, would be possible without a lot of changes.
How much until it is finished and usable and released?Depends on how much work I've still to do with Irrlicht. A month, two months maybe.
twelve comments, already:
I also integrated irrlicht into wxWidgets and am in process of rewriting some of your shaders to include specular component, and maybe have to rework the bump mapping to be done in tangent space so its invariant to vertex skinning. We might have a competition going on soon
Matthew Johnson (link) - 04 08 06 - 20:10
Great work Niko! I just have no words. That is a very important advantage for Irrlicht users.
etcaptor () - 04 08 06 - 22:29
Hey the lightmapper looks great !
Hope it is ready for beta soon.
Anoki - 04 08 06 - 23:56
Wow, looks great!
Maybe a wacky idea, but would it be possible to use this in the engine itself at some point?
It would seem to me as a very nice way to create shadows for light sources that do not move around fast/often, like the sun. or maybe generating a few lightmaps on the fly, to keep the download size of the game/app smaller.
Robin - 05 08 06 - 01:01
wow, wow, wow, Niko! wow, wow, wow, wow (and it’s not the world of warcraft wow) :)
afecelis () (link) - 05 08 06 - 05:03
Cool! How do you manage to work for your job and have time for this open-source project? Have you any free time?
(!the editor and the futures are so great!)
Lonerunner - 05 08 06 - 08:42
What are with the black lines in the screenshot?
Lonerunner - 05 08 06 - 08:43
The lightmapper is great!! it can improve irrlicht graphic a lot. Do you use raytracing or scaline rastering?
P.S. If you don’t release the next irrlicht version, we can’t load .irr files
Mancuso Raffaele () (link) - 05 08 06 - 13:17
i hope we can soon load .irr files
USA sucks - 06 08 06 - 04:50
!!!! That rocks!!!
cmoibenlepro - 06 08 06 - 16:43
Mancuso Raffaele () (link) - 06 08 06 - 17:51
raytracing or scaline rastering? Both. :)
niko - 06 08 06 - 22:15