Realtive paths - meshes:ok, textures:fails

Post your questions, suggestions and experiences regarding game design, integration of external libraries here. For irrEdit, irrXML and irrKlang, see the
ambiera forums
Post Reply
raye
Posts: 2
Joined: Thu Feb 22, 2007 1:41 pm

Realtive paths - meshes:ok, textures:fails

Post by raye »

I started irrEdit, and to the standard scene that irrEdit always starts with (skybox and crate) I added a 3ds object that is in the meshes folder. When I try to load the scene from C++ code the meshes loads fine, but the textures do not load.


I have the following folder situations:
C:/irrlicht/test.exe
C:/irrlicht/media/irredit.exe
C:/irrlicht/media/scenes/
C:/irrlicht/media/meshes/
C:/irrlicht/media/textures/

I set the working dir of irrEdit to C:\\irrlicht

BUT: when I copy the textures folder into C:/irrlicht (one folder up) everythings working fine. It seems the setWorkingDir command does not work for the texture folder?
Virion
Competition winner
Posts: 2148
Joined: Mon Dec 18, 2006 5:04 am

Post by Virion »

you can check whether your dir paths are correct or not by open the irr file using wordpad.
raye
Posts: 2
Joined: Thu Feb 22, 2007 1:41 pm

Post by raye »

Good point, Virion. Thanks.
I tried several setWorkingDirs settings, but values for the texture does not change in the irr file, but the value for the mesh does.

So it really seems setWorkingDir does not affect the texture paths that are used from irrEdit's texture folder.
buhatkj
Posts: 444
Joined: Fri Dec 12, 2003 4:53 am
Contact:

Post by buhatkj »

i think mine is loading the textures, according to the output window, but they just are not visible in the texture browser, which is really annoying.
My irrlicht-based projects have gone underground for now, but if you want, check out my webcomic instead! http://brokenboomerang.net
liger13
Posts: 119
Joined: Tue Jul 18, 2006 4:17 am

Post by liger13 »

i normally just copy the media folder im using for the program and just add it to the IrrEdit folder. Then if you use the textures in there the pathnames in the .irr file should use the correct filedirectories.
tanker
Posts: 1
Joined: Mon Jan 21, 2008 8:26 am

Post by tanker »

i think mine is loading the textures, according to the output window, but they just are not visible in the texture browser, which is really annoying.
If you're running Vista, I had the same problem. A solution is to "disable desktop composition" on the irrEdit.exe file.

i.e. Right-click on irrEdit.exe, go to properties, click the Compatibility tab, and check the Disable Desktop Composition box.
Post Reply