using relative texture path in X files

Blitz3D Forums/Blitz3D Programming/using relative texture path in X files

The Forum Archive is locked. These are the original blitzbasic.com forums, kept so their posts can still be read and searched. No new topics, replies or edits can be made here. To join the conversation, head over to the Blitz3D+ forums.

Hi!

I can't seem to get relative paths to textures working in X files. In Deep Exploration however, it seems to work.

So I basicly mean is that in an .X file the textures point to something like:
../../textures/

Thanks.

ps: the X file references to textures like this:

Material {
 0.000000;0.000000;0.000000;1.000000;;
2.000000;
 0.000000;0.000000;0.000000;;
 0.000000;0.000000;0.000000;;
TextureFilename {
"../../textures/akkergras.jpg";
}


I am not surprised. Texturepaths are handled in a pitty way by most apps. Some even force the use of 8.3 names etc. Personally I store the textures in the same folder like the meshes. Might look chaotic, but in the end it works.