 killthesand Registered User |
Quote
|
| 2007-09-27 17:45:33 |
|
I was having trouble importing my DMF files in the Irrlicht engine. It was looking for the textures in the wrong place. When it couldn't find the texture, it failed to load the mesh. After a quick search, I found that I only needed to add the line
smgr->getParameters()->setAttribute(scene::DMF_USE_MATERIALS_DIRS, true);
before I imported the DMF. This forces Irrlicht to use the appropriate texture paths.
Please add this line of code to IrrEdit. For the same reason, I cannot import any of my DMF files into IrrEdit, it keeps looking for textures in the same directory as the mesh instead of the textures folder. Then it fails to load the mesh.
|
 niko Moderator |
Quote
|
| 2007-10-01 18:29:23 |
|
You can add this yourself too, the source of the used Irrlicht version is included in irrEdit :)
|