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:
The image is an example of the problem I get.. and I don't know how to fix it..
Pic including lightmap files
Can anyone give me pointers?
Regards
Neil
Deled Pro Lightmap problem...
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:
If you have other problems let me know.
Bye .
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
...
...
Bye .