Material bug fixing

I just worked a bit on the light mapper of irrEdit, fixing a bug which caused smaller polygons to get wrong colors. Some few people noticed this on the forum, and the reason for this was that the lightmapper chooses not to use light maps for polygons which are smaller than a texel, and set the vertex color of the geometry instead. Unfortunately, lightmap materials are modulated by 4, and the solid vertex colored material in irrlicht is not, causing it to appear darker. Here is a shot of it, the upper image shows the old version and the other one the fixed irrEdit version which will be released soon:

Only very small polygons were affected by this problem. Notice that for examlpe the bike in the background also consisted of only very small polygons, and was a lot darker in the buggy version.
Nice. With a good working light mapper and an own irrlicht file format, it's again one step nearer to a cool new Irrlicht demo.

four comments, already:

Is this scene included with Irrlicht? It’d make for a nice demo scene what with the old scenes getting to be a bit boring. :p
Frobozz - 14 09 07 - 19:58

no, it’s not included in there. but it’s planned to be :)
niko - 15 09 07 - 13:48

hmm…. Hurry up with the demo…
I’m getting bored with writing ‘office’ applications…
And I want a good excuse to return to Irrlicht… :P
RustyNail - 16 09 07 - 21:13

WOW this is soo cool.. i have actually been getting this problem a lot but i thought it was something to do with my models. I can’t wait for the next irrEdit. ;)

A new demo made with irrEdit using the new irrlicht file format would really ROCK.
leo () (link) - 17 09 07 - 11:41


Name:  
Remember personal info?
yes
no
Email (optional):
URL (optional):
Enter "layered" (antispam):
Comment:Emoticons / Textile

  ( Register your username / Log in )

Notify: Yes, send me email when someone replies.  

Small print: All html tags except <b> and <i> will be removed from your comment. You can make links by just typing the url or mail-address.
Note: If you type in your email adress above, it will be visible to other visitors, although it will be hidden for bots using javaScript.