Archived

This topic is now archived and is closed to further replies.

x files and textures

This topic is 5433 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hi, i created an x-file with 3ds max and the dx9 plug-in from microsoft In mesh viewer is everything ok but i don't see the mesh in my game. When i don't use textures ,i see the mesh. Everything works when i use milkshape. So i think my code is ok. Has anyone a solution? thx in advance. Freaker [edited by - Freaker13 on January 30, 2003 11:03:28 AM]

Share this post


Link to post
Share on other sites
Guest Anonymous Poster
i had that before

if u open the .x file in wordpad
(if its a text .x file)
then search for your texture filename

i found
"c:\mytex~1\texture.jpg"

instead change it to say
"texture.jpg"

I highly recommend this exporter!
http://www.pandasoft.demon.co.uk/directxmax4.htm

Share this post


Link to post
Share on other sites
thx now i see textures.
But my textures aren't tiled anymore.

When i use the panda exporter i don't see anything when i use textures (the path to the textures is as you said) but i don't know the functions of some options.



[edited by - Freaker13 on January 31, 2003 7:29:47 AM]

Share this post


Link to post
Share on other sites
Here are the options i use in the panda exporter:
mesh definition
materials
geometry
dummy
mesh normals
map coordinates
use local object space
no frames
left handed axis

and here is my x file:
xof 0303txt 0032

Material 1_-_Default {
1.000000;1.000000;1.000000;1.000000;;
3.200000;
0.000000;0.000000;0.000000;;
0.000000;0.000000;0.000000;;

TextureFilename {
"brick1.jpg";
}
}

Mesh Box01 {
42;
-187.119125;0.000000;-93.540649;,
-34.646263;-1.818179;-27.593107;,
-103.938812;-1.818179;-27.593107;,
34.646278;0.000000;-27.593109;,
194.019135;0.000000;-93.540657;,
103.938828;0.000000;-27.593109;,
-103.938812;-1.818182;27.593111;,
-187.119125;-0.051658;93.540657;,
34.646278;-0.000000;27.593113;,
-34.646263;-1.818182;27.593111;,
194.019135;0.000000;93.540665;,
103.938828;-0.000000;27.593113;,
-34.646263;10.909085;-27.593113;,
-206.435883;9.090904;-93.540642;,
-103.938812;10.909085;-27.593113;,
34.646278;9.090904;-27.593109;,
208.441254;9.090904;-93.540642;,
103.938828;9.090904;-27.593109;,
-103.938812;10.909081;27.593111;,
-206.435883;9.039244;93.540642;,
34.646278;9.090902;27.593115;,
-34.646263;10.909081;27.593111;,
208.441254;9.090904;93.540649;,
103.938828;9.090902;27.593115;,
194.019135;-99.553741;-93.540642;,
208.441254;-99.553757;31.180206;,
194.019135;-99.553741;-31.180220;,
208.441254;-99.553726;-93.540627;,
194.019135;-99.553757;31.180208;,
194.019119;-180.677551;31.180220;,
208.441238;-180.677551;31.180216;,
194.019119;-274.645020;93.540649;,
208.441238;-291.413330;93.540642;,
208.441208;-180.677567;-93.115639;,
194.019089;-274.645050;-93.115608;,
194.019089;-180.677551;-93.115631;,
208.441208;-291.413361;-93.115601;,
-205.326324;-291.413239;-93.115555;,
-185.513153;-291.413269;93.540672;,
-185.513153;-274.644958;93.540665;,
-185.513153;-274.644989;-93.115562;,
-205.326324;-291.413208;93.540649;;
94;
3;0,1,2;,
3;0,3,1;,
3;3,0,4;,
3;4,5,3;,
3;0,6,7;,
3;6,0,2;,
3;1,8,9;,
3;8,1,3;,
3;5,10,11;,
3;10,5,4;,
3;7,6,9;,
3;9,10,7;,
3;10,9,8;,
3;10,8,11;,
3;12,13,14;,
3;13,15,16;,
3;15,13,12;,
3;17,16,15;,
3;13,18,14;,
3;18,13,19;,
3;12,20,15;,
3;20,12,21;,
3;17,22,16;,
3;22,17,23;,
3;18,19,21;,
3;21,22,20;,
3;22,21,19;,
3;20,22,23;,
3;0,16,4;,
3;16,0,13;,
3;10,19,7;,
3;19,10,22;,
3;5,17,15;,
3;1,12,14;,
3;5,23,17;,
3;1,21,12;,
3;18,9,6;,
3;20,11,8;,
3;21,1,9;,
3;23,5,11;,
3;23,11,20;,
3;21,9,18;,
3;14,2,1;,
3;15,3,5;,
3;20,3,15;,
3;18,2,14;,
3;20,8,3;,
3;18,6,2;,
3;24,25,26;,
3;25,24,27;,
3;26,25,28;,
3;26,4,24;,
3;4,28,10;,
3;28,4,26;,
3;27,16,25;,
3;22,25,16;,
3;16,24,4;,
3;24,16,27;,
3;25,29,28;,
3;29,25,30;,
3;28,31,10;,
3;31,28,29;,
3;10,32,22;,
3;32,10,31;,
3;22,30,25;,
3;30,22,32;,
3;33,34,35;,
3;34,33,36;,
3;30,35,29;,
3;35,30,33;,
3;29,34,31;,
3;34,29,35;,
3;32,33,30;,
3;33,32,36;,
3;32,37,36;,
3;37,32,38;,
3;34,39,31;,
3;39,34,40;,
3;31,38,32;,
3;38,31,39;,
3;36,40,34;,
3;40,36,37;,
3;39,41,38;,
3;37,38,41;,
3;7,13,0;,
3;13,7,19;,
3;41,13,37;,
3;13,41,19;,
3;40,7,39;,
3;7,40,0;,
3;39,19,41;,
3;19,39,7;,
3;37,0,40;,
3;0,37,13;;

MeshNormals {
75;
0.003438;0.999726;0.023157;,
-0.019661;0.999390;0.028877;,
0.010928;0.999845;0.013782;,
-0.013100;0.999672;0.021984;,
0.000000;1.000000;-0.000000;,
-0.000000;1.000000;0.000000;,
0.014437;0.999857;-0.008835;,
0.007106;0.999815;-0.017866;,
-0.019668;0.999681;0.015823;,
-0.013146;0.999911;0.002351;,
-0.005265;0.999960;0.007238;,
-0.000000;1.000000;0.000000;,
-0.019659;-0.999333;0.030778;,
0.001939;-0.999696;0.024567;,
0.008869;-0.999866;0.013782;,
-0.013097;-0.999629;0.023885;,
0.000000;-1.000000;0.000000;,
0.000000;-1.000000;-0.000000;,
0.011934;-0.999883;-0.009541;,
0.006063;-0.999803;-0.018881;,
-0.019667;-0.999658;0.017249;,
-0.013080;-0.999909;0.003153;,
-0.005212;-0.999953;0.008193;,
0.000000;-1.000000;-0.000000;,
0.000000;-0.000001;1.000000;,
0.000000;-0.000002;1.000000;,
0.000000;-0.000001;1.000000;,
0.000000;-0.000002;-1.000000;,
0.000000;-0.000002;-1.000000;,
0.000000;-0.000002;-1.000000;,
0.000000;0.000000;-1.000000;,
0.000000;-0.000000;-1.000000;,
1.000000;0.000000;0.000000;,
0.000000;0.000000;1.000000;,
0.000000;-0.000000;1.000000;,
-1.000000;0.000000;0.000000;,
0.000001;1.000000;0.000000;,
-0.000001;1.000000;0.000000;,
0.000000;1.000000;0.000000;,
-0.000001;0.000000;1.000000;,
-0.000001;0.000000;1.000000;,
0.000000;0.000000;1.000000;,
0.000000;0.000000;1.000000;,
1.000000;-0.000000;0.000000;,
1.000000;-0.000000;-0.000000;,
-0.000001;0.000000;-1.000000;,
-0.000000;0.000000;-1.000000;,
-1.000000;0.000000;-0.000000;,
-1.000000;0.000000;0.000000;,
0.000001;0.000000;1.000000;,
-0.000000;0.000000;1.000000;,
-0.000001;-1.000000;0.000000;,
1.000000;-0.000000;-0.000000;,
1.000000;-0.000000;-0.000000;,
-1.000000;0.000000;0.000000;,
-1.000000;0.000000;0.000000;,
0.000000;1.000000;-0.000000;,
0.000000;1.000000;0.000000;,
-0.000000;-1.000000;0.000000;,
-0.000000;0.000000;-1.000000;,
-0.000000;-0.000000;-1.000000;,
0.000000;0.000001;1.000000;,
0.000000;0.000000;1.000000;,
0.000001;-0.000000;-1.000000;,
0.000003;1.000000;-0.000000;,
0.425823;0.904807;0.000250;,
0.425822;0.904807;0.000250;,
0.999993;0.003692;-0.000000;,
0.999993;0.003693;0.000001;,
-0.999983;-0.005848;0.000000;,
-0.999983;-0.005847;-0.000002;,
0.000001;-0.000000;-1.000000;,
0.000001;-0.000000;-1.000000;,
-0.001303;0.001540;0.999998;,
0.000667;0.001417;0.999999;;
94;
3;0,1,2;,
3;0,3,1;,
3;3,0,4;,
3;4,5,3;,
3;0,6,7;,
3;6,0,2;,
3;1,8,9;,
3;8,1,3;,
3;5,10,11;,
3;10,5,4;,
3;7,6,9;,
3;9,10,7;,
3;10,9,8;,
3;10,8,11;,
3;12,13,14;,
3;13,15,16;,
3;15,13,12;,
3;17,16,15;,
3;13,18,14;,
3;18,13,19;,
3;12,20,15;,
3;20,12,21;,
3;17,22,16;,
3;22,17,23;,
3;18,19,21;,
3;21,22,20;,
3;22,21,19;,
3;20,22,23;,
3;24,24,25;,
3;24,24,26;,
3;27,27,28;,
3;27,27,29;,
3;30,30,30;,
3;31,31,31;,
3;32,32,32;,
3;32,32,32;,
3;33,33,33;,
3;34,34,34;,
3;32,32,32;,
3;32,32,32;,
3;34,34,34;,
3;33,33,33;,
3;31,31,31;,
3;30,30,30;,
3;35,35,35;,
3;35,35,35;,
3;35,35,35;,
3;35,35,35;,
3;36,36,36;,
3;37,37,37;,
3;38,38,38;,
3;32,32,32;,
3;32,32,32;,
3;32,32,32;,
3;35,35,35;,
3;35,35,35;,
3;39,39,39;,
3;40,40,40;,
3;41,41,41;,
3;42,42,42;,
3;43,43,43;,
3;44,44,44;,
3;45,45,45;,
3;46,46,46;,
3;47,47,47;,
3;48,48,48;,
3;49,49,49;,
3;50,50,50;,
3;16,16,16;,
3;51,51,51;,
3;52,52,52;,
3;53,53,53;,
3;54,54,54;,
3;55,55,55;,
3;56,56,56;,
3;57,57,57;,
3;58,58,58;,
3;58,58,58;,
3;59,59,59;,
3;60,60,60;,
3;61,61,61;,
3;62,62,62;,
3;63,63,63;,
3;64,64,64;,
3;65,65,65;,
3;66,66,66;,
3;67,67,67;,
3;68,68,68;,
3;69,69,69;,
3;70,70,70;,
3;71,71,71;,
3;72,72,72;,
3;73,73,73;,
3;74,74,74;;
}

MeshMaterialList {
1;
94;
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0;
{ 1_-_Default }
}

MeshTextureCoords {
42;
-18.211916;9.854060;,
-2.964627;3.259310;,
-9.893882;3.259308;,
3.964627;3.259312;,
19.901911;9.854071;,
10.893882;3.259313;,
-9.893881;-2.259314;,
-18.211910;-8.854071;,
3.964628;-2.259310;,
-2.964626;-2.259312;,
19.901917;-8.854062;,
10.893884;-2.259309;,
-2.964627;3.259310;,
-20.143591;9.854059;,
-9.893882;3.259309;,
3.964627;3.259312;,
21.344124;9.854070;,
10.893882;3.259313;,
-9.893881;-2.259314;,
-20.143587;-8.854070;,
3.964628;-2.259311;,
-2.964626;-2.259312;,
21.344128;-8.854060;,
10.893884;-2.259309;,
19.901911;9.854069;,
21.344126;-2.618016;,
19.901913;3.618027;,
21.344124;9.854068;,
19.901915;-2.618016;,
19.901913;-2.618017;,
21.344126;-2.618017;,
19.901915;-8.854060;,
21.344126;-8.854059;,
21.344118;9.811569;,
19.901907;9.811565;,
19.901907;9.811568;,
21.344118;9.811565;,
-20.032635;9.811551;,
-18.051313;-8.854072;,
-18.051313;-8.854071;,
-18.051317;9.811552;,
-20.032631;-8.854070;;
}
}

Share this post


Link to post
Share on other sites
Guest Anonymous Poster
Make sure you give the material a name beginning with a alpha character otherwise Mesh viewer and DX3DX routines don''t like loading the .X file.

Share this post


Link to post
Share on other sites