|
DeleD Community Edition Forums
|
View previous topic :: View next topic |
Author |
Message |
The Flag Member
Joined: 08 Aug 2004 Posts: 20
|
Posted: Sat May 07, 2005 9:24 am Post subject: Using deled objects? |
|
|
It's ok i figured it out (with a friend) but I am still curious as to the format of the meshes in the .X file can anybody please help...for the sake of interest.....
do the numbers represent the 3d position of the vertices? I'm quite curious..I'm just trying to get a better understanding of this whole thing...
Code: |
xof 0302txt 0032
Header {
1;
0;
1;
}
// Created by DeleD on 2005/05/07
Material system {
1.000000;1.000000;1.000000;1.000000;;
0.000000;
0.000000;0.000000;0.000000;;
0.000000;0.000000;0.000000;;
TextureFileName {
"system.bmp";
}
}
Mesh hello {
24;
256.000000;128.000000;-256.000000;,
-256.000000;128.000000;-256.000000;,
-256.000000;0.000000;-256.000000;,
256.000000;0.000000;-256.000000;,
-256.000000;128.000000;-256.000000;,
-256.000000;128.000000;256.000000;,
-256.000000;0.000000;256.000000;,
-256.000000;0.000000;-256.000000;,
-256.000000;128.000000;256.000000;,
256.000000;128.000000;256.000000;,
256.000000;0.000000;256.000000;,
-256.000000;0.000000;256.000000;,
256.000000;128.000000;256.000000;,
256.000000;128.000000;-256.000000;,
256.000000;0.000000;-256.000000;,
256.000000;0.000000;256.000000;,
256.000000;0.000000;-256.000000;,
-256.000000;0.000000;-256.000000;,
-256.000000;0.000000;256.000000;,
256.000000;0.000000;256.000000;,
256.000000;128.000000;256.000000;,
-256.000000;128.000000;256.000000;,
-256.000000;128.000000;-256.000000;,
256.000000;128.000000;-256.000000;;
6;
4;3,2,1,0;,
4;7,6,5,4;,
4;11,10,9,8;,
4;15,14,13,12;,
4;19,18,17,16;,
4;23,22,21,20;;
MeshMaterialList {
1;
6;
0,
0,
0,
0,
0,
0;;
{ system }
}
MeshNormals {
8;
0.577400;-0.577400;-0.577400;,
-0.577400;-0.577400;-0.577400;,
-0.577400;-0.577400;0.577400;,
0.577400;-0.577400;0.577400;,
0.577400;0.577400;-0.577400;,
-0.577400;0.577400;-0.577400;,
-0.577400;0.577400;0.577400;,
0.577400;0.577400;0.577400;;
6;
4;0,1,5,4;,
4;1,2,6,5;,
4;2,3,7,6;,
4;3,0,4,7;,
4;3,2,1,0;,
4;4,5,6,7;;
}
MeshTextureCoords {
24;
2.000000;-1.000000;,
-2.000000;-1.000000;,
-2.000000;0.000000;,
2.000000;0.000000;,
2.000000;-1.000000;,
-2.000000;-1.000000;,
-2.000000;0.000000;,
2.000000;0.000000;,
-2.000000;-1.000000;,
2.000000;-1.000000;,
2.000000;0.000000;,
-2.000000;0.000000;,
-2.000000;-1.000000;,
2.000000;-1.000000;,
2.000000;0.000000;,
-2.000000;0.000000;,
2.000000;-2.000000;,
-2.000000;-2.000000;,
-2.000000;2.000000;,
2.000000;2.000000;,
2.000000;2.000000;,
-2.000000;2.000000;,
-2.000000;-2.000000;,
2.000000;-2.000000;;
}
}
|
|
|
Back to top |
|
|
The Freak Member
Joined: 25 Feb 2005 Posts: 5
|
Posted: Sun May 08, 2005 11:14 pm Post subject: |
|
|
xof 0302txt 0032
Header {
1;
0;
1;
}
// Created by DeleD on 2005/05/07
Material system {
1.000000;1.000000;1.000000;1.000000;;
0.000000;
0.000000;0.000000;0.000000;;
0.000000;0.000000;0.000000;;
TextureFileName {
"system.bmp";
}
}
Mesh hello {
24; /// number of vertices
256.000000;128.000000;-256.000000;, // vertex 0 (x,y,z) position
-256.000000;128.000000;-256.000000;, // vertex 1
-256.000000;0.000000;-256.000000;, // vertex 2
256.000000;0.000000;-256.000000;, // ....and so on
-256.000000;128.000000;-256.000000;,
-256.000000;128.000000;256.000000;,
-256.000000;0.000000;256.000000;,
-256.000000;0.000000;-256.000000;,
-256.000000;128.000000;256.000000;,
256.000000;128.000000;256.000000;,
256.000000;0.000000;256.000000;,
-256.000000;0.000000;256.000000;,
256.000000;128.000000;256.000000;,
256.000000;128.000000;-256.000000;,
256.000000;0.000000;-256.000000;,
256.000000;0.000000;256.000000;,
256.000000;0.000000;-256.000000;,
-256.000000;0.000000;-256.000000;,
-256.000000;0.000000;256.000000;,
256.000000;0.000000;256.000000;,
256.000000;128.000000;256.000000;,
-256.000000;128.000000;256.000000;,
-256.000000;128.000000;-256.000000;,
256.000000;128.000000;-256.000000;; /// vertex 23
6; // number of polygons
4;3,2,1,0;, // first polygon , 4 faces using the vertices 3,2,1,0
4;7,6,5,4;, // second polygon, 4 faces using the vertices 7,6,5,4
4;11,10,9,8;,
4;15,14,13,12;,
4;19,18,17,16;,
4;23,22,21,20;;
MeshMaterialList {
1;
6;
0,
0,
0,
0,
0,
0;;
{ system }
}
MeshNormals {
8;
0.577400;-0.577400;-0.577400;,
-0.577400;-0.577400;-0.577400;,
-0.577400;-0.577400;0.577400;,
0.577400;-0.577400;0.577400;,
0.577400;0.577400;-0.577400;,
-0.577400;0.577400;-0.577400;,
-0.577400;0.577400;0.577400;,
0.577400;0.577400;0.577400;;
6;
4;0,1,5,4;,
4;1,2,6,5;,
4;2,3,7,6;,
4;3,0,4,7;,
4;3,2,1,0;,
4;4,5,6,7;;
}
MeshTextureCoords {
24;
2.000000;-1.000000;,
-2.000000;-1.000000;,
-2.000000;0.000000;,
2.000000;0.000000;,
2.000000;-1.000000;,
-2.000000;-1.000000;,
-2.000000;0.000000;,
2.000000;0.000000;,
-2.000000;-1.000000;,
2.000000;-1.000000;,
2.000000;0.000000;,
-2.000000;0.000000;,
-2.000000;-1.000000;,
2.000000;-1.000000;,
2.000000;0.000000;,
-2.000000;0.000000;,
2.000000;-2.000000;,
-2.000000;-2.000000;,
-2.000000;2.000000;,
2.000000;2.000000;,
2.000000;2.000000;,
-2.000000;2.000000;,
-2.000000;-2.000000;,
2.000000;-2.000000;;
}
} |
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|