General Category > ASL Scripts

I'm working on an XSI export script modifying Raxx's BZII X exporter script.

<< < (2/7) > >>

lppena:
3DEX is showing these errors now and the geometry is still not visible. I'm thinking that this XSI format is so outdated that more modern features are no longer supported by today's standards. Other people have attempted to make XSI version 1 exporters with software like Blender without success. I have one that prehaps you could take a look at. It was a python script written for version 2.4 of Blender. I know your time is limited so if have some spare time to look at the python script for some clues on how to modify the ASL script. Thanks Raxx, Leroy.

PS: Do you think proper indentation may be an issue? On the 3DEX X to XSI write out it has indentation within the file while the version you and I modified are left jusified. I don't know if this would make any difference, but I thought that I would mention it.

Update: I got the geometry to appear in 3DEX by changing the scripts SI_Material back to just Material. All of the other error messages disappeared as well. Now the only issue appears to be that the texture is not appearing; just hows as a grey material color on the cube. What do you make of this Raxx? Leroy.

Raxx:
Ok, I fixed it. I downloaded 3DEX and must have run the xsi and .x files through it a hundred times :P The initial loading errors (including the lack of texture) were mostly caused by the lack of proper UV coord information, but there also turned out to be a ton of transformation problems with both the .xsi and .x exporters, so I fixed it all to where it looks exactly the same in both Anim8or and 3DEX.

However, 3DEX's orientation system is a bit weird, so if you can get an anim8or-exported .xsi model into the game engine to see if the orientation is truly correct, I would appreciate it.

Attached is the updated script. Let me know if it's the final, completely bug-free one so that I can put it in the database (I'm updating the .x one in the database as well).

lppena:
Will do Raxx and thank you for your patience and most valuable effort on this project. You are right about 3DEX 1.5.5., but its the closest model converter I have access to in working with antiquate model formats like version 1 XSI. The current XSI format has changed drastically from earlier versions but is totally incompatible as far using it for Battlezone II which was released in 1999. I sincerely appreciate your taking the time to even work on the project. I'll test the changes to the exporter and report back on the results. Thanks again Raxx. Leroy.

PS: I hope you don't mind but I added the DirectX exporter you fixed up for me so that other Anim8or users can add it to their ASL scripts library. I want to learn how to create ASL scripts as I'm pretty much hooked on Anim8or now. I'm beginning to really get off on using A8 as a really cool modeling software. Cheers, Leroy.

lppena:
Wow! Raxx the model loads in to BZII; usually my models would crash the game, but your version loads without errors. The only issue I notice is the texture is not showing as displayed in this BZII screen grab, but I suspect the issue may lie with the texture itself as I've seen it before in some of my own XSI models created in Truespace using the X exporter and 3DEX to convert them to XSI. I'll try using some different textures and post the results. You truly are a gifted person in terms of understanding how to fix things up in Anim8or. Leroy.

lppena:
Raxx, I found this XSI model that was originally created for BZII using Softimage XSI|3D. When you have time could you take a look at the file and determine if the XSI exporter script could be modified to write out this format? It contains some extra SI entries that I attempted to add to the existing script but I get some errors when I try to add them to the header area of the script; something to do with a token error reported when I run a syntax check in the ASL Editor. Thanks Leroy.

--- Code: ---xsi 0101txt 0032

SI_CoordinateSystem coord {
   1;
   0;
   1;
   0;
   2;
   5;
}



SI_Angle {
   0;
}

SI_Camera  Camera1 {
   -1.668501; 1.033439; -3.593543;;
   0.469189; 0.000000; 0.383656;;
   0.000000;
   65.000000;
   0.100000;
   32768.000000;
}

SI_Ambience {
   0.300000; 0.300000; 0.300000;;
}


Frame frm-sphere1 {

   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 sphere1 {
      17;
      -0.000000;-0.000000;0.003000;,
      -0.571733;-0.000000;0.290717;,
      -0.404277;-0.404277;0.290717;,
      -0.281138;-0.000000;0.116157;,
      0.281138;-0.000000;0.116157;,
      -0.404277;0.404277;0.290717;,
      -0.198795;-0.198795;0.116157;,
      -0.198795;0.198795;0.116157;,
      0.404277;-0.404277;0.290717;,
      -0.000000;0.571734;0.290717;,
      0.198795;-0.198795;0.116157;,
      -0.000000;0.281138;0.116157;,
      0.571733;-0.000000;0.290717;,
      0.404277;0.404277;0.290717;,
      -0.000000;-0.571734;0.290717;,
      0.198795;0.198795;0.116157;,
      -0.000000;-0.281138;0.116157;;

      16;
      3;6,3,0;,
      4;2,1,3,6;,
      4;1,5,7,3;,
      3;3,7,0;,
      3;16,6,0;,
      4;14,2,6,16;,
      4;5,9,11,7;,
      3;7,11,0;,
      3;10,16,0;,
      4;8,14,16,10;,
      4;9,13,15,11;,
      3;11,15,0;,
      3;4,10,0;,
      4;12,8,10,4;,
      4;13,12,4,15;,
      3;15,4,0;;

      MeshMaterialList {
         1;
         16;
         0,
         0,
         0,
         0,
         0,
         0,
         0,
         0,
         0,
         0,
         0,
         0,
         0,
         0,
         0,
         0;

         SI_Material {
            0.700000;0.700000;0.700000;1.000000;;
            0.000000;
            0.000000;0.000000;0.000000;;
            0.000000;0.000000;0.000000;;
            2;
            0.500000;0.500000;0.500000;;

            SI_Texture2D  {
               "Z:/modelsdirectory/misceffects/effects/PICTURES/flash.pic";
               4;
               256;256;
               0;255;0;255;
               0;
               1;1;
               0;0;
               1.000000;1.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,0.000000,
               0.000000,0.000000,0.000000,1.000000;;
               3;
               1.000000;
               0.750000;
               1.000000;
               0.000000;
               0.000000;
               0.000000;
               0.000000;
            }

         }
      }
      SI_MeshNormals {
         56;
         -0.314793;-0.314793;-0.895439;,
         -0.445185;-0.000000;-0.895439;,
         -0.000000;-0.000000;-1.000000;,
         -0.364115;-0.364114;-0.857229;,
         -0.514936;-0.000000;-0.857229;,
         -0.445185;-0.000000;-0.895439;,
         -0.314793;-0.314793;-0.895439;,
         -0.514936;-0.000000;-0.857229;,
         -0.364115;0.364114;-0.857229;,
         -0.314793;0.314793;-0.895439;,
         -0.445185;-0.000000;-0.895439;,
         -0.445185;-0.000000;-0.895439;,
         -0.314793;0.314793;-0.895439;,
         -0.000000;-0.000000;-1.000000;,
         -0.000000;-0.445185;-0.895439;,
         -0.314793;-0.314793;-0.895439;,
         -0.000000;-0.000000;-1.000000;,
         -0.000000;-0.514935;-0.857229;,
         -0.364115;-0.364114;-0.857229;,
         -0.314793;-0.314793;-0.895439;,
         -0.000000;-0.445185;-0.895439;,
         -0.364115;0.364114;-0.857229;,
         -0.000000;0.514935;-0.857229;,
         -0.000000;0.445185;-0.895439;,
         -0.314793;0.314793;-0.895439;,
         -0.314793;0.314793;-0.895439;,
         -0.000000;0.445185;-0.895439;,
         -0.000000;-0.000000;-1.000000;,
         0.314793;-0.314793;-0.895439;,
         -0.000000;-0.445185;-0.895439;,
         -0.000000;-0.000000;-1.000000;,
         0.364114;-0.364114;-0.857229;,
         -0.000000;-0.514935;-0.857229;,
         -0.000000;-0.445185;-0.895439;,
         0.314793;-0.314793;-0.895439;,
         -0.000000;0.514935;-0.857229;,
         0.364114;0.364114;-0.857229;,
         0.314793;0.314793;-0.895439;,
         -0.000000;0.445185;-0.895439;,
         -0.000000;0.445185;-0.895439;,
         0.314793;0.314793;-0.895439;,
         -0.000000;-0.000000;-1.000000;,
         0.445185;-0.000000;-0.895439;,
         0.314793;-0.314793;-0.895439;,
         -0.000000;-0.000000;-1.000000;,
         0.514935;-0.000000;-0.857229;,
         0.364114;-0.364114;-0.857229;,
         0.314793;-0.314793;-0.895439;,
         0.445185;-0.000000;-0.895439;,
         0.364114;0.364114;-0.857229;,
         0.514935;-0.000000;-0.857229;,
         0.445185;-0.000000;-0.895439;,
         0.314793;0.314793;-0.895439;,
         0.314793;0.314793;-0.895439;,
         0.445185;-0.000000;-0.895439;,
         -0.000000;-0.000000;-1.000000;;

         16;
         0;3;0,1,2;,
         1;4;3,4,5,6;,
         2;4;7,8,9,10;,
         3;3;11,12,13;,
         4;3;14,15,16;,
         5;4;17,18,19,20;,
         6;4;21,22,23,24;,
         7;3;25,26,27;,
         8;3;28,29,30;,
         9;4;31,32,33,34;,
         10;4;35,36,37,38;,
         11;3;39,40,41;,
         12;3;42,43,44;,
         13;4;45,46,47,48;,
         14;4;49,50,51,52;,
         15;3;53,54,55;;
      }


      SI_MeshTextureCoords {
         56;
         0.739047;0.260953;,
         0.838064;0.500000;,
         0.500000;0.500000;,
         0.986136;0.013864;,
         1.187500;0.500000;,
         0.838064;0.500000;,
         0.739047;0.260953;,
         1.187500;0.500000;,
         0.986136;0.986136;,
         0.739047;0.739047;,
         0.838064;0.500000;,
         0.838064;0.500000;,
         0.739047;0.739047;,
         0.500000;0.500000;,
         0.500000;0.161936;,
         0.739047;0.260953;,
         0.500000;0.500000;,
         0.500000;-0.187500;,
         0.986136;0.013864;,
         0.739047;0.260953;,
         0.500000;0.161936;,
         0.986136;0.986136;,
         0.500000;1.187500;,
         0.500000;0.838064;,
         0.739047;0.739047;,
         0.739047;0.739047;,
         0.500000;0.838064;,
         0.500000;0.500000;,
         0.260953;0.260953;,
         0.500000;0.161936;,
         0.500000;0.500000;,
         0.013864;0.013864;,
         0.500000;-0.187500;,
         0.500000;0.161936;,
         0.260953;0.260953;,
         0.500000;1.187500;,
         0.013864;0.986136;,
         0.260953;0.739047;,
         0.500000;0.838064;,
         0.500000;0.838064;,
         0.260953;0.739047;,
         0.500000;0.500000;,
         0.161936;0.500000;,
         0.260953;0.260953;,
         0.500000;0.500000;,
         -0.187500;0.500000;,
         0.013864;0.013864;,
         0.260953;0.260953;,
         0.161936;0.500000;,
         0.013864;0.986136;,
         -0.187500;0.500000;,
         0.161936;0.500000;,
         0.260953;0.739047;,
         0.260953;0.739047;,
         0.161936;0.500000;,
         0.500000;0.500000;;

         16;
         0;3;0,1,2;,
         1;4;3,4,5,6;,
         2;4;7,8,9,10;,
         3;3;11,12,13;,
         4;3;14,15,16;,
         5;4;17,18,19,20;,
         6;4;21,22,23,24;,
         7;3;25,26,27;,
         8;3;28,29,30;,
         9;4;31,32,33,34;,
         10;4;35,36,37,38;,
         11;3;39,40,41;,
         12;3;42,43,44;,
         13;4;45,46,47,48;,
         14;4;49,50,51,52;,
         15;3;53,54,55;;
      }
   }
}

--- End code ---

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version