More x2egg problems

Ok, I’m really new to panda3D and its tools. Here is my dilemma. I have a static model that I made in Milkshape 3D and I exported it as an X (8.0) file with only the mesh and textures selected. I can load the .X in another loader I have as long as I use the static option. Pview however crashes and never loads the model. It does a windows crash, not a python crash. When I issue the command

x2egg.exe -o cup.egg cup.x

and other variations as stated in the usage clauses, I get absolutely nothing. No file, nada. There are also no error outputs. Am I missing something?? Is there a static clause or something?

we need the crash info to debug this further.

Thank you for the quick reply. It is just a generic windows “We have encountered an error and need to close” window. I dont know what information you want.

This is what I get from the command window:

Known pipe types:
wglGraphicsPipe
(all display modules loaded.)
Loading cup2.x
:loader(warning): Unable to load libp3ptloader.dll: Invalid access to memory loc
ation

I also tried switching from openGL to dx to see if that was issue but I got the same problem.

Its some thing to do with they way dll’s are handled. Could you give us your X file so that we can try to reproduce it on our machines?

xof 0303txt 0032
template XSkinMeshHeader {
 <3cf169ce-ff7c-44ab-93c0-f78f62d172e2>
 WORD nMaxSkinWeightsPerVertex;
 WORD nMaxSkinWeightsPerFace;
 WORD nBones;
}

template VertexDuplicationIndices {
<b8d65549-d7c9-4995-89cf-53a9a8b031e3>
 DWORD nIndices;
 DWORD nOriginalVertices;
 array DWORD indices[nIndices];
}

template SkinWeights {
 <6f0d123b-bad2-4167-a0d0-80224f25fabb>
 STRING transformNodeName;
 DWORD nWeights;
 array DWORD vertexIndices[nWeights];
 array FLOAT weights[nWeights];
 Matrix4x4 matrixOffset;
}


Frame Scene_Root {


 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 cup {

   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 {
    73;
    3.779824;-0.009363;-4.862281;,
    3.273424;-0.009363;-6.722878;,
    0.000000;-0.009363;-4.862281;,
    4.445693;3.603938;-4.862281;,
    3.850080;3.603938;-7.117124;,
    4.990481;7.217237;-4.862281;,
    4.321881;7.217237;-7.430711;,
    5.551722;10.841329;-4.862281;,
    4.807930;10.841329;-7.586321;,
    6.376818;17.050659;-4.862281;,
    5.522484;17.050659;-8.068560;,
    1.889912;-0.009363;-8.084930;,
    2.222846;3.603938;-8.767785;,
    2.495241;7.217237;-9.310938;,
    2.775861;10.841329;-9.580453;,
    3.188409;17.050659;-10.415722;,
    0.000000;-0.009363;-8.583473;,
    0.000000;3.603938;-9.371977;,
    0.000000;7.217237;-9.999147;,
    0.000000;10.841329;-10.310358;,
    0.000000;17.050659;-11.274842;,
    -1.889912;-0.009363;-8.084930;,
    -2.222846;3.603938;-8.767785;,
    -2.495241;7.217237;-9.310938;,
    -2.775861;10.841329;-9.580453;,
    -3.188409;17.050659;-10.415722;,
    -3.273424;-0.009363;-6.722878;,
    -3.850080;3.603938;-7.117124;,
    -4.321881;7.217237;-7.430711;,
    -4.807930;10.841329;-7.586321;,
    -5.522484;17.050659;-8.068560;,
    -3.779824;-0.009363;-4.862281;,
    -4.445693;3.603938;-4.862281;,
    -4.990481;7.217237;-4.862281;,
    -5.551722;10.841329;-4.862281;,
    -6.376818;17.050659;-4.862281;,
    -3.273424;-0.009363;-3.001687;,
    -3.850080;3.603938;-2.607438;,
    -4.321881;7.217237;-2.293849;,
    -4.807930;10.841329;-2.138241;,
    -5.522484;17.050659;-1.655999;,
    -1.889912;-0.009363;-1.639637;,
    -2.222846;3.603938;-0.956779;,
    -2.495241;7.217237;-0.413629;,
    -2.775861;10.841329;-0.144104;,
    -3.188409;17.050659;0.691157;,
    0.000000;-0.009363;-1.141093;,
    0.000000;3.603938;-0.352587;,
    0.000000;7.217237;0.274582;,
    0.000000;10.841329;0.585799;,
    0.000000;17.050659;1.550275;,
    1.889912;-0.009363;-1.639637;,
    2.222846;3.603938;-0.956779;,
    2.495241;7.217237;-0.413629;,
    2.775861;10.841329;-0.144104;,
    3.188409;17.050659;0.691157;,
    3.273424;-0.009363;-3.001687;,
    3.850080;3.603938;-2.607438;,
    4.321881;7.217237;-2.293849;,
    4.807930;10.841329;-2.138241;,
    5.522484;17.050659;-1.655999;,
    3.779824;-0.009363;-4.862281;,
    3.273424;-0.009363;-6.722878;,
    1.889912;-0.009363;-8.084930;,
    0.000000;-0.009363;-8.583473;,
    -1.889912;-0.009363;-8.084930;,
    -3.273424;-0.009363;-6.722878;,
    -3.779824;-0.009363;-4.862281;,
    -3.273424;-0.009363;-3.001687;,
    -1.889912;-0.009363;-1.639637;,
    0.000000;-0.009363;-1.141093;,
    1.889912;-0.009363;-1.639637;,
    3.273424;-0.009363;-3.001687;;
    216;
    3;0,2,1;,
    3;61,4,3;,
    3;61,62,4;,
    3;3,4,5;,
    3;5,4,6;,
    3;5,8,7;,
    3;5,6,8;,
    3;7,8,9;,
    3;9,8,10;,
    3;1,2,11;,
    3;62,63,4;,
    3;4,63,12;,
    3;4,13,6;,
    3;4,12,13;,
    3;6,13,8;,
    3;8,13,14;,
    3;8,15,10;,
    3;8,14,15;,
    3;11,2,16;,
    3;63,17,12;,
    3;63,64,17;,
    3;12,17,13;,
    3;13,17,18;,
    3;13,19,14;,
    3;13,18,19;,
    3;14,19,15;,
    3;15,19,20;,
    3;16,2,21;,
    3;64,65,17;,
    3;17,65,22;,
    3;17,23,18;,
    3;17,22,23;,
    3;18,23,19;,
    3;19,23,24;,
    3;19,25,20;,
    3;19,24,25;,
    3;21,2,26;,
    3;65,27,22;,
    3;65,66,27;,
    3;22,27,23;,
    3;23,27,28;,
    3;23,29,24;,
    3;23,28,29;,
    3;24,29,25;,
    3;25,29,30;,
    3;26,2,31;,
    3;66,67,27;,
    3;27,67,32;,
    3;27,33,28;,
    3;27,32,33;,
    3;28,33,29;,
    3;29,33,34;,
    3;29,35,30;,
    3;29,34,35;,
    3;31,2,36;,
    3;67,37,32;,
    3;67,68,37;,
    3;32,37,33;,
    3;33,37,38;,
    3;33,39,34;,
    3;33,38,39;,
    3;34,39,35;,
    3;35,39,40;,
    3;36,2,41;,
    3;68,69,37;,
    3;37,69,42;,
    3;37,43,38;,
    3;37,42,43;,
    3;38,43,39;,
    3;39,43,44;,
    3;39,45,40;,
    3;39,44,45;,
    3;41,2,46;,
    3;69,47,42;,
    3;69,70,47;,
    3;42,47,43;,
    3;43,47,48;,
    3;43,49,44;,
    3;43,48,49;,
    3;44,49,45;,
    3;45,49,50;,
    3;46,2,51;,
    3;70,71,47;,
    3;47,71,52;,
    3;47,53,48;,
    3;47,52,53;,
    3;48,53,49;,
    3;49,53,54;,
    3;49,55,50;,
    3;49,54,55;,
    3;51,2,56;,
    3;71,57,52;,
    3;71,72,57;,
    3;52,57,53;,
    3;53,57,58;,
    3;53,59,54;,
    3;53,58,59;,
    3;54,59,55;,
    3;55,59,60;,
    3;56,2,0;,
    3;72,61,57;,
    3;57,61,3;,
    3;57,5,58;,
    3;57,3,5;,
    3;58,5,59;,
    3;59,5,7;,
    3;59,9,60;,
    3;59,7,9;,
    3;2,0,1;,
    3;4,61,3;,
    3;62,61,4;,
    3;4,3,5;,
    3;4,5,6;,
    3;8,5,7;,
    3;6,5,8;,
    3;8,7,9;,
    3;8,9,10;,
    3;2,1,11;,
    3;63,62,4;,
    3;63,4,12;,
    3;13,4,6;,
    3;12,4,13;,
    3;13,6,8;,
    3;13,8,14;,
    3;15,8,10;,
    3;14,8,15;,
    3;2,11,16;,
    3;17,63,12;,
    3;64,63,17;,
    3;17,12,13;,
    3;17,13,18;,
    3;19,13,14;,
    3;18,13,19;,
    3;19,14,15;,
    3;19,15,20;,
    3;2,16,21;,
    3;65,64,17;,
    3;65,17,22;,
    3;23,17,18;,
    3;22,17,23;,
    3;23,18,19;,
    3;23,19,24;,
    3;25,19,20;,
    3;24,19,25;,
    3;2,21,26;,
    3;27,65,22;,
    3;66,65,27;,
    3;27,22,23;,
    3;27,23,28;,
    3;29,23,24;,
    3;28,23,29;,
    3;29,24,25;,
    3;29,25,30;,
    3;2,26,31;,
    3;67,66,27;,
    3;67,27,32;,
    3;33,27,28;,
    3;32,27,33;,
    3;33,28,29;,
    3;33,29,34;,
    3;35,29,30;,
    3;34,29,35;,
    3;2,31,36;,
    3;37,67,32;,
    3;68,67,37;,
    3;37,32,33;,
    3;37,33,38;,
    3;39,33,34;,
    3;38,33,39;,
    3;39,34,35;,
    3;39,35,40;,
    3;2,36,41;,
    3;69,68,37;,
    3;69,37,42;,
    3;43,37,38;,
    3;42,37,43;,
    3;43,38,39;,
    3;43,39,44;,
    3;45,39,40;,
    3;44,39,45;,
    3;2,41,46;,
    3;47,69,42;,
    3;70,69,47;,
    3;47,42,43;,
    3;47,43,48;,
    3;49,43,44;,
    3;48,43,49;,
    3;49,44,45;,
    3;49,45,50;,
    3;2,46,51;,
    3;71,70,47;,
    3;71,47,52;,
    3;53,47,48;,
    3;52,47,53;,
    3;53,48,49;,
    3;53,49,54;,
    3;55,49,50;,
    3;54,49,55;,
    3;2,51,56;,
    3;57,71,52;,
    3;72,71,57;,
    3;57,52,53;,
    3;57,53,58;,
    3;59,53,54;,
    3;58,53,59;,
    3;59,54,55;,
    3;59,55,60;,
    3;2,56,0;,
    3;61,72,57;,
    3;61,57,3;,
    3;5,57,58;,
    3;3,57,5;,
    3;5,58,59;,
    3;5,59,7;,
    3;9,59,60;,
    3;7,59,9;;

    MeshNormals {
     73;
     0.000000;0.000000;0.000000;,
     0.000000;0.000000;0.000000;,
     0.000000;0.000000;0.000000;,
     -0.894427;-0.447214;0.000000;,
     0.140028;0.140028;-0.980196;,
     -0.997459;0.000000;0.071247;,
     -0.970142;0.242536;0.000000;,
     -0.947758;0.296174;0.118470;,
     0.945732;0.078811;-0.315244;,
     0.984136;-0.147620;-0.098414;,
     0.000000;0.000000;1.000000;,
     0.000000;0.000000;0.000000;,
     -0.436436;0.218218;0.872872;,
     0.122570;-0.153213;0.980562;,
     -0.894427;-0.447214;0.000000;,
     -0.312348;0.156174;0.937043;,
     0.000000;0.000000;0.000000;,
     -0.201773;-0.554877;0.807093;,
     0.240772;0.120386;0.963087;,
     0.824163;0.137361;-0.549442;,
     0.000000;0.000000;0.000000;,
     0.000000;0.000000;0.000000;,
     -0.936329;0.351123;0.000000;,
     -0.083028;0.020757;-0.996331;,
     0.000000;-0.164399;-0.986394;,
     0.447214;0.000000;-0.894427;,
     0.000000;0.000000;0.000000;,
     0.934730;-0.058421;0.350524;,
     -0.749269;-0.093659;0.655610;,
     -0.847998;0.317999;-0.423999;,
     0.000000;0.000000;1.000000;,
     0.000000;0.000000;0.000000;,
     0.894427;-0.447214;0.000000;,
     -0.952381;-0.190476;-0.238095;,
     0.947758;0.296174;0.118470;,
     0.872872;0.218218;-0.436436;,
     0.000000;0.000000;0.000000;,
     -0.767828;0.031993;0.639857;,
     0.624695;-0.468521;0.624695;,
     -0.966988;0.080582;-0.241747;,
     1.000000;0.000000;0.000000;,
     0.000000;0.000000;0.000000;,
     0.444444;0.111111;0.888889;,
     -0.272758;-0.119332;-0.954653;,
     0.436436;0.218218;0.872872;,
     0.062378;0.000000;0.998053;,
     0.000000;0.000000;0.000000;,
     -0.253490;0.823842;0.506979;,
     0.000000;0.124035;-0.992278;,
     0.000000;-0.031235;-0.999512;,
     0.000000;0.000000;0.000000;,
     0.000000;0.000000;0.000000;,
     -0.242536;0.000000;0.970142;,
     0.696311;0.174078;0.696311;,
     0.000000;-0.124035;0.992278;,
     0.000000;0.000000;-1.000000;,
     0.000000;0.000000;0.000000;,
     0.000000;-0.071247;-0.997459;,
     0.596285;0.298142;-0.745356;,
     -0.549442;-0.137361;-0.824163;,
     -0.894427;0.000000;0.447214;,
     -0.986394;-0.164399;0.000000;,
     -1.000000;0.000000;0.000000;,
     0.082761;-0.082761;-0.993127;,
     0.000000;0.242536;0.970142;,
     -0.696311;0.174078;-0.696311;,
     0.970142;-0.242536;0.000000;,
     -0.707107;-0.707107;0.000000;,
     0.000000;1.000000;0.000000;,
     0.276483;-0.157991;-0.947943;,
     0.000000;1.000000;0.000000;,
     -0.163163;-0.122373;0.978980;,
     0.000000;0.447214;-0.894427;;
     216;
     3;0,2,1;,
     3;61,4,3;,
     3;61,62,4;,
     3;3,4,5;,
     3;5,4,6;,
     3;5,8,7;,
     3;5,6,8;,
     3;7,8,9;,
     3;9,8,10;,
     3;1,2,11;,
     3;62,63,4;,
     3;4,63,12;,
     3;4,13,6;,
     3;4,12,13;,
     3;6,13,8;,
     3;8,13,14;,
     3;8,15,10;,
     3;8,14,15;,
     3;11,2,16;,
     3;63,17,12;,
     3;63,64,17;,
     3;12,17,13;,
     3;13,17,18;,
     3;13,19,14;,
     3;13,18,19;,
     3;14,19,15;,
     3;15,19,20;,
     3;16,2,21;,
     3;64,65,17;,
     3;17,65,22;,
     3;17,23,18;,
     3;17,22,23;,
     3;18,23,19;,
     3;19,23,24;,
     3;19,25,20;,
     3;19,24,25;,
     3;21,2,26;,
     3;65,27,22;,
     3;65,66,27;,
     3;22,27,23;,
     3;23,27,28;,
     3;23,29,24;,
     3;23,28,29;,
     3;24,29,25;,
     3;25,29,30;,
     3;26,2,31;,
     3;66,67,27;,
     3;27,67,32;,
     3;27,33,28;,
     3;27,32,33;,
     3;28,33,29;,
     3;29,33,34;,
     3;29,35,30;,
     3;29,34,35;,
     3;31,2,36;,
     3;67,37,32;,
     3;67,68,37;,
     3;32,37,33;,
     3;33,37,38;,
     3;33,39,34;,
     3;33,38,39;,
     3;34,39,35;,
     3;35,39,40;,
     3;36,2,41;,
     3;68,69,37;,
     3;37,69,42;,
     3;37,43,38;,
     3;37,42,43;,
     3;38,43,39;,
     3;39,43,44;,
     3;39,45,40;,
     3;39,44,45;,
     3;41,2,46;,
     3;69,47,42;,
     3;69,70,47;,
     3;42,47,43;,
     3;43,47,48;,
     3;43,49,44;,
     3;43,48,49;,
     3;44,49,45;,
     3;45,49,50;,
     3;46,2,51;,
     3;70,71,47;,
     3;47,71,52;,
     3;47,53,48;,
     3;47,52,53;,
     3;48,53,49;,
     3;49,53,54;,
     3;49,55,50;,
     3;49,54,55;,
     3;51,2,56;,
     3;71,57,52;,
     3;71,72,57;,
     3;52,57,53;,
     3;53,57,58;,
     3;53,59,54;,
     3;53,58,59;,
     3;54,59,55;,
     3;55,59,60;,
     3;56,2,0;,
     3;72,61,57;,
     3;57,61,3;,
     3;57,5,58;,
     3;57,3,5;,
     3;58,5,59;,
     3;59,5,7;,
     3;59,9,60;,
     3;59,7,9;,
     3;2,0,1;,
     3;4,61,3;,
     3;62,61,4;,
     3;4,3,5;,
     3;4,5,6;,
     3;8,5,7;,
     3;6,5,8;,
     3;8,7,9;,
     3;8,9,10;,
     3;2,1,11;,
     3;63,62,4;,
     3;63,4,12;,
     3;13,4,6;,
     3;12,4,13;,
     3;13,6,8;,
     3;13,8,14;,
     3;15,8,10;,
     3;14,8,15;,
     3;2,11,16;,
     3;17,63,12;,
     3;64,63,17;,
     3;17,12,13;,
     3;17,13,18;,
     3;19,13,14;,
     3;18,13,19;,
     3;19,14,15;,
     3;19,15,20;,
     3;2,16,21;,
     3;65,64,17;,
     3;65,17,22;,
     3;23,17,18;,
     3;22,17,23;,
     3;23,18,19;,
     3;23,19,24;,
     3;25,19,20;,
     3;24,19,25;,
     3;2,21,26;,
     3;27,65,22;,
     3;66,65,27;,
     3;27,22,23;,
     3;27,23,28;,
     3;29,23,24;,
     3;28,23,29;,
     3;29,24,25;,
     3;29,25,30;,
     3;2,26,31;,
     3;67,66,27;,
     3;67,27,32;,
     3;33,27,28;,
     3;32,27,33;,
     3;33,28,29;,
     3;33,29,34;,
     3;35,29,30;,
     3;34,29,35;,
     3;2,31,36;,
     3;37,67,32;,
     3;68,67,37;,
     3;37,32,33;,
     3;37,33,38;,
     3;39,33,34;,
     3;38,33,39;,
     3;39,34,35;,
     3;39,35,40;,
     3;2,36,41;,
     3;69,68,37;,
     3;69,37,42;,
     3;43,37,38;,
     3;42,37,43;,
     3;43,38,39;,
     3;43,39,44;,
     3;45,39,40;,
     3;44,39,45;,
     3;2,41,46;,
     3;47,69,42;,
     3;70,69,47;,
     3;47,42,43;,
     3;47,43,48;,
     3;49,43,44;,
     3;48,43,49;,
     3;49,44,45;,
     3;49,45,50;,
     3;2,46,51;,
     3;71,70,47;,
     3;71,47,52;,
     3;53,47,48;,
     3;52,47,53;,
     3;53,48,49;,
     3;53,49,54;,
     3;55,49,50;,
     3;54,49,55;,
     3;2,51,56;,
     3;57,71,52;,
     3;72,71,57;,
     3;57,52,53;,
     3;57,53,58;,
     3;59,53,54;,
     3;58,53,59;,
     3;59,54,55;,
     3;59,55,60;,
     3;2,56,0;,
     3;61,72,57;,
     3;61,57,3;,
     3;5,57,58;,
     3;3,57,5;,
     3;5,58,59;,
     3;5,59,7;,
     3;9,59,60;,
     3;7,59,9;;
    }

    VertexDuplicationIndices {
     73;
     61;
     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,
     36,
     37,
     38,
     39,
     40,
     41,
     42,
     43,
     44,
     45,
     46,
     47,
     48,
     49,
     50,
     51,
     52,
     53,
     54,
     55,
     56,
     57,
     58,
     59,
     60,
     0,
     1,
     11,
     16,
     21,
     26,
     31,
     36,
     41,
     46,
     51,
     56;
    }

   }
 }
}

Shoot, looks like I introduced a bug in the x file parser with 1.6.1. I just checked in a fix, which will have to wait until 1.6.2; in the meantime, I suggest you download and use 1.6.0 instead.

David

Its all good. Thanks so much for the quick replys.

And that is my fault - I will fix this in 1.6.2.