Okok so I found a second solution here on the forums but I need to know its a right one. So there also is a .x format now I only need to find the right converter/plugin for it.
Would this be a better solution? I know there is a catch but, can someone inform me?
ty in advance
EDIT: The export works fine, don’t know about the animation yet but my texture needs to be applied with scripting and then I eventually lose my UV-maps. This is rly getting frustrating >:(
EDIT2: So I exported, I get a white object x_X and this is my code.
When I change the path of my texture in the code it still fails x(
xof 0303txt 0032
template Frame {
<3d82ab46-62da-11cf-ab39-0020af71e433>
[...]
}
template Matrix4x4 {
<f6f23f45-7686-11cf-8f52-0040333594a3>
array FLOAT matrix[16];
}
template FrameTransformMatrix {
<f6f23f41-7686-11cf-8f52-0040333594a3>
Matrix4x4 frameMatrix;
}
template Vector {
<3d82ab5e-62da-11cf-ab39-0020af71e433>
FLOAT x;
FLOAT y;
FLOAT z;
}
template MeshFace {
<3d82ab5f-62da-11cf-ab39-0020af71e433>
DWORD nFaceVertexIndices;
array DWORD faceVertexIndices[nFaceVertexIndices];
}
template Mesh {
<3d82ab44-62da-11cf-ab39-0020af71e433>
DWORD nVertices;
array Vector vertices[nVertices];
DWORD nFaces;
array MeshFace faces[nFaces];
[...]
}
template MeshNormals {
<f6f23f43-7686-11cf-8f52-0040333594a3>
DWORD nNormals;
array Vector normals[nNormals];
DWORD nFaceNormals;
array MeshFace faceNormals[nFaceNormals];
}
template ColorRGBA {
<35ff44e0-6c7c-11cf-8f52-0040333594a3>
FLOAT red;
FLOAT green;
FLOAT blue;
FLOAT alpha;
}
template ColorRGB {
<d3e16e81-7835-11cf-8f52-0040333594a3>
FLOAT red;
FLOAT green;
FLOAT blue;
}
template Material {
<3d82ab4d-62da-11cf-ab39-0020af71e433>
ColorRGBA faceColor;
FLOAT power;
ColorRGB specularColor;
ColorRGB emissiveColor;
[...]
}
template MeshMaterialList {
<f6f23f42-7686-11cf-8f52-0040333594a3>
DWORD nMaterials;
DWORD nFaceIndexes;
array DWORD faceIndexes[nFaceIndexes];
[Material <3d82ab4d-62da-11cf-ab39-0020af71e433>]
}
template TextureFilename {
<a42790e1-7810-11cf-8f52-0040333594a3>
STRING filename;
}
template Coords2d {
<f6f23f44-7686-11cf-8f52-0040333594a3>
FLOAT u;
FLOAT v;
}
template MeshTextureCoords {
<f6f23f40-7686-11cf-8f52-0040333594a3>
DWORD nTextureCoords;
array Coords2d textureCoords[nTextureCoords];
}
template XSkinMeshHeader {
<3cf169ce-ff7c-44ab-93c0-f78f62d172e2>
WORD nMaxSkinWeightsPerVertex;
WORD nMaxSkinWeightsPerFace;
WORD nBones;
}
template SkinWeights {
<6f0d123b-bad2-4167-a0d0-80224f25fabb>
STRING transformNodeName;
DWORD nWeights;
array DWORD vertexIndices[nWeights];
array FLOAT weights[nWeights];
Matrix4x4 matrixOffset;
}
template Animation {
<3d82ab4f-62da-11cf-ab39-0020af71e433>
[...]
}
template AnimationSet {
<3d82ab50-62da-11cf-ab39-0020af71e433>
[Animation <3d82ab4f-62da-11cf-ab39-0020af71e433>]
}
template FloatKeys {
<10dd46a9-775b-11cf-8f52-0040333594a3>
DWORD nValues;
array FLOAT values[nValues];
}
template TimedFloatKeys {
<f406b180-7b3b-11cf-8f52-0040333594a3>
DWORD time;
FloatKeys tfkeys;
}
template AnimationKey {
<10dd46a8-775b-11cf-8f52-0040333594a3>
DWORD keyType;
DWORD nKeys;
array TimedFloatKeys keys[nKeys];
}
Frame Box01 {
FrameTransformMatrix {
1.000000,0.000000,0.000000,0.000000,0.000000,1.000000,0.000000,0.000000,0.000000,0.000000,1.000000,0.000000,0.000000,0.000000,0.000000,1.000000;;
}
Mesh {
36;
15.999804;-0.000000;16.000103;,
-15.999853;0.000000;-16.000080;,
15.999521;-0.000000;-15.999750;,
-15.999853;0.000000;-16.000080;,
15.999804;-0.000000;16.000103;,
-15.999526;0.000001;15.999752;,
15.999809;31.998964;16.000101;,
-15.999856;31.999199;-16.000078;,
-15.999522;31.999199;15.999750;,
-15.999856;31.999199;-16.000078;,
15.999809;31.998964;16.000101;,
15.999517;31.999199;-15.999748;,
15.999517;31.999199;-15.999748;,
-15.999853;0.000000;-16.000080;,
-15.999856;31.999199;-16.000078;,
-15.999853;0.000000;-16.000080;,
15.999517;31.999199;-15.999748;,
15.999521;-0.000000;-15.999750;,
15.999809;31.998964;16.000101;,
15.999521;-0.000000;-15.999750;,
15.999517;31.999199;-15.999748;,
15.999521;-0.000000;-15.999750;,
15.999809;31.998964;16.000101;,
15.999804;-0.000000;16.000103;,
-15.999522;31.999199;15.999750;,
15.999804;-0.000000;16.000103;,
15.999809;31.998964;16.000101;,
15.999804;-0.000000;16.000103;,
-15.999522;31.999199;15.999750;,
-15.999526;0.000001;15.999752;,
-15.999856;31.999199;-16.000078;,
-15.999526;0.000001;15.999752;,
-15.999522;31.999199;15.999750;,
-15.999526;0.000001;15.999752;,
-15.999856;31.999199;-16.000078;,
-15.999853;0.000000;-16.000080;;
12;
3;0,1,2;,
3;3,4,5;,
3;6,7,8;,
3;9,10,11;,
3;12,13,14;,
3;15,16,17;,
3;18,19,20;,
3;21,22,23;,
3;24,25,26;,
3;27,28,29;,
3;30,31,32;,
3;33,34,35;;
MeshNormals {
36;
-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;-1.000000;0.000000;,
-0.000000;-1.000000;0.000000;,
0.000004;1.000000;0.000004;,
0.000004;1.000000;0.000004;,
0.000007;1.000000;-0.000000;,
0.000004;1.000000;0.000004;,
0.000004;1.000000;0.000004;,
-0.000000;1.000000;0.000007;,
0.000010;0.000000;-1.000000;,
0.000010;0.000000;-1.000000;,
0.000010;0.000000;-1.000000;,
0.000010;0.000000;-1.000000;,
0.000010;0.000000;-1.000000;,
0.000010;0.000000;-1.000000;,
1.000000;-0.000000;-0.000009;,
1.000000;-0.000000;-0.000009;,
1.000000;0.000000;-0.000009;,
1.000000;-0.000000;-0.000009;,
1.000000;-0.000000;-0.000009;,
1.000000;-0.000000;-0.000009;,
-0.000011;0.000000;1.000000;,
-0.000011;0.000000;1.000000;,
-0.000011;0.000000;1.000000;,
-0.000011;0.000000;1.000000;,
-0.000011;0.000000;1.000000;,
-0.000011;0.000000;1.000000;,
-1.000000;0.000000;0.000010;,
-1.000000;0.000000;0.000010;,
-1.000000;0.000000;0.000010;,
-1.000000;0.000000;0.000010;,
-1.000000;0.000000;0.000010;,
-1.000000;-0.000000;0.000010;;
12;
3;0,1,2;,
3;3,4,5;,
3;6,7,8;,
3;9,10,11;,
3;12,13,14;,
3;15,16,17;,
3;18,19,20;,
3;21,22,23;,
3;24,25,26;,
3;27,28,29;,
3;30,31,32;,
3;33,34,35;;
}
MeshMaterialList {
1;
12;
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0;
Material Material__3 {
0.588000;0.588000;0.588000;1.000000;;
3.200000;
0.000000;0.000000;0.000000;;
0.000000;0.000000;0.000000;;
TextureFilename {
"C:\\\\Documents and Settings\\\\Administrator\\\\Desktop\\\\3D\\\\Testobject\\\\Test\\\\testtex.jpg";
}
}
}
MeshTextureCoords {
36;
0.506322;0.476823;,
0.991556;0.890389;,
0.506322;0.890389;,
0.991556;0.890389;,
0.506322;0.476823;,
0.991556;0.476823;,
0.991556;0.476823;,
0.506322;0.890389;,
0.506322;0.476823;,
0.506322;0.890389;,
0.991556;0.476823;,
0.991556;0.890389;,
0.491925;0.012158;,
0.014067;0.447619;,
0.014067;0.012158;,
0.014067;0.447619;,
0.491925;0.012158;,
0.491925;0.447619;,
0.472406;0.474880;,
0.000000;1.000000;,
0.000000;0.474880;,
0.000000;1.000000;,
0.472406;0.474880;,
0.472406;1.000000;,
0.491925;0.012158;,
0.014067;0.447619;,
0.014067;0.012158;,
0.014067;0.447619;,
0.491925;0.012158;,
0.491925;0.447619;,
0.472406;0.474880;,
0.000000;1.000000;,
0.000000;0.474880;,
0.000000;1.000000;,
0.472406;0.474880;,
0.472406;1.000000;;
}
XSkinMeshHeader {
1;
0;
1;
}
SkinWeights {
"Bone01";
36;
0,
1,
2,
3,
4,
5,
6,
7,
8,
9,
10,
11,
12,
13,
14,
15,
16,
17,
18,
19,
20,
21,
22,
23,
24,
25,
26,
27,
28,
29,
30,
31,
32,
33,
34,
35;
1.000000,
1.000000,
1.000000,
1.000000,
1.000000,
1.000000,
1.000000,
1.000000,
1.000000,
1.000000,
1.000000,
1.000000,
1.000000,
1.000000,
1.000000,
1.000000,
1.000000,
1.000000,
1.000000,
1.000000,
1.000000,
1.000000,
1.000000,
1.000000,
1.000000,
1.000000,
1.000000,
1.000000,
1.000000,
1.000000,
1.000000,
1.000000,
1.000000,
1.000000,
1.000000,
1.000000;
0.462983,0.000000,-0.886367,0.000000,0.000000,1.000000,0.000000,0.000000,0.886367,0.000000,0.462983,0.000000,-0.167730,0.000000,-0.086489,1.000000;;
}
}
}
Frame Bone01 {
FrameTransformMatrix {
0.462983,0.000000,0.886367,0.000000,0.000000,1.000000,0.000000,0.000000,-0.886367,0.000000,0.462983,0.000000,0.000996,0.000000,0.188713,1.000000;;
}
Frame {
FrameTransformMatrix {
1.000000,0.000000,0.000000,0.000000,0.000000,1.000000,0.000000,0.000000,-0.000000,0.000000,1.000000,0.000000,0.000000,0.000000,0.000000,1.000000;;
}
}
Frame Bone02 {
FrameTransformMatrix {
1.000000,0.000000,0.000000,0.000000,0.000000,1.000000,0.000000,0.000000,0.000000,0.000000,1.000000,0.000000,34.958363,0.000000,0.000005,1.000000;;
}
}
}
AnimationSet anim {
Animation Anim-Box01 {
{ Box01 }
AnimationKey {
4;
11;
0;16;1.000000,0.000000,0.000000,0.000000,0.000000,1.000000,0.000000,0.000000,0.000000,0.000000,1.000000,0.000000,0.000000,0.000000,0.000000,1.000000;;,
160;16;1.000000,0.000000,0.000000,0.000000,0.000000,1.000000,0.000000,0.000000,0.000000,0.000000,1.000000,0.000000,0.000000,0.000000,0.000000,1.000000;;,
320;16;1.000000,0.000000,0.000000,0.000000,0.000000,1.000000,0.000000,0.000000,0.000000,0.000000,1.000000,0.000000,0.000000,0.000000,0.000000,1.000000;;,
480;16;1.000000,0.000000,0.000000,0.000000,0.000000,1.000000,0.000000,0.000000,0.000000,0.000000,1.000000,0.000000,0.000000,0.000000,0.000000,1.000000;;,
640;16;1.000000,0.000000,0.000000,0.000000,0.000000,1.000000,0.000000,0.000000,0.000000,0.000000,1.000000,0.000000,0.000000,0.000000,0.000000,1.000000;;,
800;16;1.000000,0.000000,0.000000,0.000000,0.000000,1.000000,0.000000,0.000000,0.000000,0.000000,1.000000,0.000000,0.000000,0.000000,0.000000,1.000000;;,
960;16;1.000000,0.000000,0.000000,0.000000,0.000000,1.000000,0.000000,0.000000,0.000000,0.000000,1.000000,0.000000,0.000000,0.000000,0.000000,1.000000;;,
1120;16;1.000000,0.000000,0.000000,0.000000,0.000000,1.000000,0.000000,0.000000,0.000000,0.000000,1.000000,0.000000,0.000000,0.000000,0.000000,1.000000;;,
1280;16;1.000000,0.000000,0.000000,0.000000,0.000000,1.000000,0.000000,0.000000,0.000000,0.000000,1.000000,0.000000,0.000000,0.000000,0.000000,1.000000;;,
1440;16;1.000000,0.000000,0.000000,0.000000,0.000000,1.000000,0.000000,0.000000,0.000000,0.000000,1.000000,0.000000,0.000000,0.000000,0.000000,1.000000;;,
1600;16;1.000000,0.000000,0.000000,0.000000,0.000000,1.000000,0.000000,0.000000,0.000000,0.000000,1.000000,0.000000,0.000000,0.000000,0.000000,1.000000;;;
}
}
Animation Anim-Bone01 {
{ Bone01 }
AnimationKey {
4;
11;
0;16;0.462983,0.000000,0.886367,0.000000,0.000000,1.000000,0.000000,0.000000,-0.886367,0.000000,0.462983,0.000000,0.000996,0.000000,0.188713,1.000000;;,
160;16;0.462983,0.000000,0.886367,0.000000,0.000000,1.000000,0.000000,0.000000,-0.886367,0.000000,0.462983,0.000000,0.000996,0.700742,0.188713,1.000000;;,
320;16;0.462983,0.000000,0.886367,0.000000,0.000000,1.000000,0.000000,0.000000,-0.886367,0.000000,0.462983,0.000000,0.000996,2.371743,0.188713,1.000000;;,
480;16;0.462983,0.000000,0.886367,0.000000,0.000000,1.000000,0.000000,0.000000,-0.886367,0.000000,0.462983,0.000000,0.000996,4.366164,0.188713,1.000000;;,
640;16;0.462983,0.000000,0.886367,0.000000,0.000000,1.000000,0.000000,0.000000,-0.886367,0.000000,0.462983,0.000000,0.000996,6.037165,0.188713,1.000000;;,
800;16;0.462983,0.000000,0.886367,0.000000,0.000000,1.000000,0.000000,0.000000,-0.886367,0.000000,0.462983,0.000000,0.000996,6.737907,0.188713,1.000000;;,
960;16;0.462983,0.000000,0.886367,0.000000,0.000000,1.000000,0.000000,0.000000,-0.886367,0.000000,0.462983,0.000000,0.000996,6.037165,0.188713,1.000000;;,
1120;16;0.462983,0.000000,0.886367,0.000000,0.000000,1.000000,0.000000,0.000000,-0.886367,0.000000,0.462983,0.000000,0.000996,4.366164,0.188713,1.000000;;,
1280;16;0.462983,0.000000,0.886367,0.000000,0.000000,1.000000,0.000000,0.000000,-0.886367,0.000000,0.462983,0.000000,0.000996,2.371744,0.188713,1.000000;;,
1440;16;0.462983,0.000000,0.886367,0.000000,0.000000,1.000000,0.000000,0.000000,-0.886367,0.000000,0.462983,0.000000,0.000996,0.700742,0.188713,1.000000;;,
1600;16;0.462983,0.000000,0.886367,0.000000,0.000000,1.000000,0.000000,0.000000,-0.886367,0.000000,0.462983,0.000000,0.000996,0.000000,0.188713,1.000000;;;
}
}
Animation Anim-Bone02 {
{ Bone02 }
AnimationKey {
4;
11;
0;16;1.000000,0.000000,0.000000,0.000000,0.000000,1.000000,0.000000,0.000000,0.000000,0.000000,1.000000,0.000000,34.958363,0.000000,0.000005,1.000000;;,
160;16;1.000000,0.000000,0.000000,0.000000,0.000000,1.000000,0.000000,0.000000,0.000000,0.000000,1.000000,0.000000,34.958363,0.000000,0.000005,1.000000;;,
320;16;1.000000,0.000000,0.000000,0.000000,0.000000,1.000000,0.000000,0.000000,0.000000,0.000000,1.000000,0.000000,34.958363,0.000000,0.000005,1.000000;;,
480;16;1.000000,0.000000,0.000000,0.000000,0.000000,1.000000,0.000000,0.000000,0.000000,0.000000,1.000000,0.000000,34.958363,0.000000,0.000005,1.000000;;,
640;16;1.000000,0.000000,0.000000,0.000000,0.000000,1.000000,0.000000,0.000000,0.000000,0.000000,1.000000,0.000000,34.958363,0.000000,0.000005,1.000000;;,
800;16;1.000000,0.000000,0.000000,0.000000,0.000000,1.000000,0.000000,0.000000,0.000000,0.000000,1.000000,0.000000,34.958363,0.000000,0.000005,1.000000;;,
960;16;1.000000,0.000000,0.000000,0.000000,0.000000,1.000000,0.000000,0.000000,0.000000,0.000000,1.000000,0.000000,34.958363,0.000000,0.000005,1.000000;;,
1120;16;1.000000,0.000000,0.000000,0.000000,0.000000,1.000000,0.000000,0.000000,0.000000,0.000000,1.000000,0.000000,34.958363,0.000000,0.000005,1.000000;;,
1280;16;1.000000,0.000000,0.000000,0.000000,0.000000,1.000000,0.000000,0.000000,0.000000,0.000000,1.000000,0.000000,34.958363,0.000000,0.000005,1.000000;;,
1440;16;1.000000,0.000000,0.000000,0.000000,0.000000,1.000000,0.000000,0.000000,0.000000,0.000000,1.000000,0.000000,34.958363,0.000000,0.000005,1.000000;;,
1600;16;1.000000,0.000000,0.000000,0.000000,0.000000,1.000000,0.000000,0.000000,0.000000,0.000000,1.000000,0.000000,34.958363,0.000000,0.000005,1.000000;;;
}
}
}