irrEdit light map generator making progress

Posted on:August 14 2006

Last week I made some progress with irrEdit, and also improved some parts of Irrlicht during this process. I enhanced the light map generator a bit, but the coolest new feature is that irrEdit is now able to save and of course reload scenes which have been created or modified by the lightmapper. Which makes it usable, finally. It was a lot of work, more than I had thought. This is a screen shot of the first created, saved and then realoaded lightmapped scene, made in irrEdit:


So what did I have to do to make all this work? First, I needed a way to write out modified meshes. I thought a bit about what file format to use, and decided to go for COLLADA, because it is quite popular currently. Irrlicht already is able to load COLLADA files and it was also easily possible to squeeze Irrlicht's materials and vertex formats into there. After some programming it worked, and the result was ok for me. Here's the proof :)


The nice side effect is now that irrEdit can export every mesh into COLLADA, which means .3ds, .obj, .b3d, ogre .mesh, .dmf, .oct, .x, .ms3d, .my3d, .csm, .lmts, .md2 and .bsp files. Cool. I also had to extend the Irrlicht COLLADA importer, to handle more than one texture coordinate set per mesh. The mesh writer isn't included in Irrlicht and will not ever, because IMO, a mesh writer has no place in a 3D rendering engine, and in this way, I can also include irrEdit specific meta data in the written meshes.
But writing COLLADA files wasn't everything I had to do, the hardest thing was the mesh file management. As you know, irrEdit is primary a scene graph editor. And the problem now is that a single mesh can be referenced more than once in a scene. Just like this:


Here, a file named 'room.3ds' has been imported, light mapped, then cloned twice and the clones again light mapped differently. As you can see on the right, irrEdit correctly created new mesh copies for every modified mesh and manages the serialization state of every file and its textures separetely and automagically if needed. This was a bit complicated to implement because I also had to track unmodified meshes and had to be aware to add the possibility of adding undo/redo functionality in irrEdit some day, but it works now.

Some features are still missing for the light mapper, but I think I'll finish them soon and release irrEdit 0.4 with the complete lightmapping tool included in about 3-4 weeks.





Comments:


Good work niko! :D
bicunisa
Quote
2006-08-14 18:41:00


This is sooo cool niko.I just hope it can also export animated directX meshes. keep you the great work. we are depending on you. btw I checked the irrlicht psp.. and yeah its all irrlicht.. so it got me thinking wouldnt it be cool to have irrlichtPS (playstation) and also irrlichtXbox that would be something... just a wild thought
Thanks for the superb work...
::leo::
leo
Quote
2006-08-14 18:43:00


Mhh, very cool.
So is your Collada implementation able to import/export animations?
Would be really a cool feature, there are so many tools lacking collada animation support :/
Gauntlet
Quote
2006-08-14 20:02:00


We need to get you a wallet that says "Bad Ass Mother Fucker" because damn you are either really good or have a whole lot more time than I do.
TSM
Quote
2006-08-14 20:04:00


You're simply the best! niko!

I'm waiting for the lightmapper!!!
Blizzard
Quote
2006-08-14 21:23:00


Really great work Niko! The first picture seems to have very realistic light.

You are the best!
!http://users.pandora.be/eforum/emoticons4u/crazy/071.gif!
cmoibenlepro
Quote
2006-08-15 03:41:00


really cool, though i'm not sure i sgree about the meshwriter. here's an example, like what if i used klasker's scenenode to generate a really cool tree, but i wanted to use it in irredit. id need a mesh. if i had a meshwriter i could modify my klasker app to be a treemagik-like app, and create meshes from klasker trees.
just a thought. most of the time, you'd be right, and perhaps it would be better to just add treenode support to irredit, and retain the advantage of programmatic generation, but we can't add new nodes to irredit yet can we? i dunno how far along the plugin capability is....
buhatkj
Quote
2006-08-15 07:33:00


Wow Niko, at last as usual a successful work! You are busy as a bree. ;-)
Don't forget to relax also during your spare time! (h)
minimax
Quote
2006-08-15 10:39:00


It's incredible... Can't wait to see more of it!
Lino
Quote
2006-08-15 15:09:00


absolutely great !
andrei25ni
Quote
2006-08-15 17:10:00


Really great work!! But i ask me, do you sleep ever?
Stefan Branske
Quote
2006-08-15 18:29:00


I hope this means the COLLADA loader will be much better soon... 60% isn't ideal :-(
RabidLockerGnome
Quote
2006-08-16 01:51:00


**lug does the niko shuffle in delight**
lug
Quote
2006-08-16 21:47:00


Niko is very efficient. I just wonder how this man have enough time to do all these things. Here is answer - he is wizard. Thanks for your work, and also your engine can be a great tutorial for 3d peoples.
etcaptor
Quote
2006-08-17 23:14:00


Add comment:


Posted by:


Enter the missing letter in: "Internat?onal"


Text:

 

  

Possible Codes


Feature Code
Link [url] www.example.com [/url]
Bold [b]bold text[/b]
Quote [quote]quoted text[/quote]
Code [code]source code[/code]

Emoticons