Page 1 of 1

Deled Pro Lightmap problem...

Posted: Mon Dec 12, 2005 4:31 am
by ndavey
Hi All,
I'm farily new to Irrlicht, but so far I think it's pretty cool...
I'm working on a project at the moment where I need to model a room.
I'm using DeleD 1.0 Pro as the tool to build the room...

Ok.. now if I just load the dmf file and the textures up in Irrlicht,
no problems, I get the room as a textured object..

If I place the lightmap files into the same directory as the dmf file, so Irrlicht can find the lightmap files, I start to get problems..

Pic without including lightmap files:
Image

The image is an example of the problem I get.. and I don't know how to fix it..
Pic including lightmap files
Image
Can anyone give me pointers?

Regards
Neil

Posted: Mon Dec 12, 2005 11:05 am
by ilbuzzo
Hi and Welcome to Irrlicht,
I think you'd better use DeleD Pro 1.36 (new version) cause DMFLoader is supposed to work right with DeleD 1.1+ (Pro or Lite) versions (I wrote it ;)) because of some issues (lightmap flipping) with previous versions.
So I suggest you to update to DeleD Pro 1.36 rebuilt your lightmaps and try to load your level this way so you don't need to move your textures any time:

Code: Select all

//introduce your DeleD textures path, this is my installation path ;)
smgr->getParameters()->setParameter(DMF_TEXTURE_PATH, "D:\\Programmi\\DeleD Pro\\Textures\\");

//with this you'll tell the loader to use DeleD standard paths for textures            smgr->getParameters()->setParameter(DMF_USE_MATERIALS_DIRS,true);

//So you'll support alpha channel             smgr->getParameters()->setParameter(DMF_ALPHA_CHANNEL_REF,0.01f);

//Flip alpha textures because Irrlicht flips tga files    smgr->getParameters()->setParameter(DMF_FLIP_ALPHA_TEXTURES,true);

//Load your models as usual
...
...

            
If you have other problems let me know.
Bye ;).

Posted: Tue Dec 13, 2005 11:35 pm
by ndavey
Hi ilbuzzo,
Didn't realised 1.36 existed till after I'd posted.. opps... :oops:
Got that version, added your code and the light mapping works.. :)
cheers... Only issue I've got to sort out now is why my lightmpas are so pixelated in Irrlicht..

Thanks for your help..
Neil

Posted: Wed Dec 14, 2005 8:19 am
by krama757
Are you sure you are using DeleD Pro?