PDA

View Full Version : Lightmapper



Nitrogen
27-08-2006, 01:18 AM
I've just revamped and completed an old project of mine. It's a lightmap generator.

Why lightmaps you say? well, they're fast in-game and very easy to implement and you get automatic soft shadows!

The old lightmap generator wasnt complete so it only had one type of light, was slow and didnt have a way to export the lightmaps. Well, that's all changed with this version which can 'conceivably' handle some real-world applications. It has two types of light (Omni and Spotlight) and can load 3DS files or it's own projects, it now includes unwrapping and lighting options such as lightmap padding, antialiasing and draft mode.

http://www.sulaco.co.za/nitrogen/gallery/thumbs/Lightmapper%20(3).jpg
http://www.sulaco.co.za/nitrogen/gallery/thumbs/Lightmapper%20(4).jpg

Get it here: (or just look at the pics) http://www.sulaco.co.za/nitrogen/projectinfo.asp?id=31

It's free, includes source code and instruction manual, and you'll find a tutorial on the file format here: http://www.sulaco.co.za/nitrogen/viewtutorial.asp?id=15

On the technical side, it uses shadow volumes to test if a point is in shadow, and an octtree structure to accelerate ray-shadow tests. It also uses a 2D binary tree structure to pack triangles into the lightmaps.

Robert Kosek
27-08-2006, 01:31 AM
I have your RSS feed, so I saw it already. :D Great work!

Nitrogen
27-08-2006, 01:33 AM
hehe, that was quick! Hopefully someone can make some use out of it...

cragwolf
27-08-2006, 02:49 AM
Well done. :thumbup:

NecroDOME
27-08-2006, 12:32 PM
How did you manage to load the unreal tournament map?

Great work. My lightmapping engine needs a bit of polishing. It shows lots of "bleeding".

Nitrogen
27-08-2006, 04:12 PM
As far as I remember, my version of UnrealED had a feature to export the entire level as is, as a 3DS file (even the weapons!).

Yea, this 'mapper still has some quality issues with curved edges on smaller lightmaps...

WILL
27-08-2006, 07:35 PM
Hey wait a second... I remember this map! :o

Which Unreal Tournament is it from?

NecroDOME
27-08-2006, 09:00 PM
Well, I'll try that sometimes to export those maps... could come handy within my engine as test map :P

UT 2003/2004 - DM-Geal if i'm not mistaken...

Nitrogen
27-08-2006, 09:49 PM
Yea, it's UT2003 I think, DM-Gael...