Hi. I used to have all my textures and models in my exe's directory, and it all worked fine. Now I moved both the textures and models into a /data directory (and changed all of the filename references of the models to reflect this change), and now, when it tries loading the textures specified by the models, it works, but only after trying the wrong directory (see program output below to see what I mean). Is this normal? Or should I change all of the textures in the models to point to the data directory?
Irrlicht Engine version 0.9
Microsoft Windows 2000 Professional Service Pack 4 (Build 2195)
OpenGL Renderer
GeForce2 MX/PCI/SSE2: NVIDIA Corporation
OpenGL driver version is 1.2 or better.
Loaded texture: #DefaultFont
Could not open file of texture: wall.bmp
Could not load texture: wall.bmp
Loaded texture: data/wall.bmp
Loaded mesh: data/wall.3ds
Could not open file of texture: wood.bmp
Could not load texture: wood.bmp
Loaded texture: data/wood.bmp
Loaded mesh: data/block.3ds
Could not open file of texture: concrete.bmp
Could not load texture: concrete.bmp
Loaded texture: data/concrete.bmp
Loaded mesh: data/ramp.3ds
Inside the .3ds file there is texture filenames. When you load it in Irrlicht it tries to load the associated textures automatically. It will just look in the root directory of your application. I suppose you could change the filename in the .3ds file. Or you could just handle the texture loading for yourself.
djceejay
Studying :: BSc Computer Games Technology :: UK