Deled Pro Lightmap problem...

If you are a new Irrlicht Engine user, and have a newbie-question, this is the forum for you. You may also post general programming questions here.
Post Reply
ndavey
Posts: 5
Joined: Wed Nov 23, 2005 5:21 am
Location: Brisbane, AU

Deled Pro Lightmap problem...

Post 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
ilbuzzo
Posts: 71
Joined: Sat Mar 05, 2005 4:00 pm
Location: Italy

Post 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 ;).
ndavey
Posts: 5
Joined: Wed Nov 23, 2005 5:21 am
Location: Brisbane, AU

Post 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
krama757
Posts: 451
Joined: Sun Nov 06, 2005 12:07 am

Post by krama757 »

Are you sure you are using DeleD Pro?
Post Reply