using relative texture path in X files

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

Jeroen(Posted 2004) [#1]
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";
}



jfk EO-11110(Posted 2004) [#2]
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.