home *** CD-ROM | disk | FTP | other *** search
/ NEXT Generation 27 / NEXT27.iso / pc / demos / emperor / dx3.exe / SDK / SAMPLES / ROCKEM / DEBRIS_B.X < prev    next >
Text File  |  1996-06-13  |  4KB  |  237 lines

  1. xof 0302txt 0064
  2. template Header {
  3.  <3D82AB43-62DA-11cf-AB39-0020AF71E433>
  4.  WORD major;
  5.  WORD minor;
  6.  DWORD flags;
  7. }
  8.  
  9. template Vector {
  10.  <3D82AB5E-62DA-11cf-AB39-0020AF71E433>
  11.  FLOAT x;
  12.  FLOAT y;
  13.  FLOAT z;
  14. }
  15.  
  16. template Coords2d {
  17.  <F6F23F44-7686-11cf-8F52-0040333594A3>
  18.  FLOAT u;
  19.  FLOAT v;
  20. }
  21.  
  22. template Matrix4x4 {
  23.  <F6F23F45-7686-11cf-8F52-0040333594A3>
  24.  array FLOAT matrix[16];
  25. }
  26.  
  27. template ColorRGBA {
  28.  <35FF44E0-6C7C-11cf-8F52-0040333594A3>
  29.  FLOAT red;
  30.  FLOAT green;
  31.  FLOAT blue;
  32.  FLOAT alpha;
  33. }
  34.  
  35. template ColorRGB {
  36.  <D3E16E81-7835-11cf-8F52-0040333594A3>
  37.  FLOAT red;
  38.  FLOAT green;
  39.  FLOAT blue;
  40. }
  41.  
  42. template IndexedColor {
  43.  <1630B820-7842-11cf-8F52-0040333594A3>
  44.  DWORD index;
  45.  ColorRGBA indexColor;
  46. }
  47.  
  48. template Boolean {
  49.  <4885AE61-78E8-11cf-8F52-0040333594A3>
  50.  WORD truefalse;
  51. }
  52.  
  53. template Boolean2d {
  54.  <4885AE63-78E8-11cf-8F52-0040333594A3>
  55.  Boolean u;
  56.  Boolean v;
  57. }
  58.  
  59. template MaterialWrap {
  60.  <4885AE60-78E8-11cf-8F52-0040333594A3>
  61.  Boolean u;
  62.  Boolean v;
  63. }
  64.  
  65. template TextureFilename {
  66.  <A42790E1-7810-11cf-8F52-0040333594A3>
  67.  STRING filename;
  68. }
  69.  
  70. template Material {
  71.  <3D82AB4D-62DA-11cf-AB39-0020AF71E433>
  72.  ColorRGBA faceColor;
  73.  FLOAT power;
  74.  ColorRGB specularColor;
  75.  ColorRGB emissiveColor;
  76.  [...]
  77. }
  78.  
  79. template MeshFace {
  80.  <3D82AB5F-62DA-11cf-AB39-0020AF71E433>
  81.  DWORD nFaceVertexIndices;
  82.  array DWORD faceVertexIndices[nFaceVertexIndices];
  83. }
  84.  
  85. template MeshFaceWraps {
  86.  <4885AE62-78E8-11cf-8F52-0040333594A3>
  87.  DWORD nFaceWrapValues;
  88.  Boolean2d faceWrapValues;
  89. }
  90.  
  91. template MeshTextureCoords {
  92.  <F6F23F40-7686-11cf-8F52-0040333594A3>
  93.  DWORD nTextureCoords;
  94.  array Coords2d textureCoords[nTextureCoords];
  95. }
  96.  
  97. template MeshMaterialList {
  98.  <F6F23F42-7686-11cf-8F52-0040333594A3>
  99.  DWORD nMaterials;
  100.  DWORD nFaceIndexes;
  101.  array DWORD faceIndexes[nFaceIndexes];
  102.  [Material]
  103. }
  104.  
  105. template MeshNormals {
  106.  <F6F23F43-7686-11cf-8F52-0040333594A3>
  107.  DWORD nNormals;
  108.  array Vector normals[nNormals];
  109.  DWORD nFaceNormals;
  110.  array MeshFace faceNormals[nFaceNormals];
  111. }
  112.  
  113. template MeshVertexColors {
  114.  <1630B821-7842-11cf-8F52-0040333594A3>
  115.  DWORD nVertexColors;
  116.  array IndexedColor vertexColors[nVertexColors];
  117. }
  118.  
  119. template Mesh {
  120.  <3D82AB44-62DA-11cf-AB39-0020AF71E433>
  121.  DWORD nVertices;
  122.  array Vector vertices[nVertices];
  123.  DWORD nFaces;
  124.  array MeshFace faces[nFaces];
  125.  [...]
  126. }
  127.  
  128. Header {
  129.  1;
  130.  0;
  131.  1;
  132. }
  133.  
  134. Mesh {
  135.  10;
  136.  0.082451;-0.082450;-6.700000;,
  137.  0.082451;0.082451;-6.700000;,
  138.  -0.082451;0.082451;-6.700000;,
  139.  -0.082451;-0.082450;-6.700000;,
  140.  3.349999;-3.350001;-0.000000;,
  141.  3.350000;3.350000;0.000000;,
  142.  -3.349999;3.350001;0.000000;,
  143.  -3.350002;-3.349998;-0.000000;,
  144.  0.000000;0.000000;-6.700000;,
  145.  0.000000;-0.000000;-0.000000;;
  146.  
  147.  16;
  148.  3;0,8,1;,
  149.  3;1,8,2;,
  150.  3;2,8,3;,
  151.  3;3,8,0;,
  152.  3;0,5,4;,
  153.  3;0,1,5;,
  154.  3;1,6,5;,
  155.  3;1,2,6;,
  156.  3;2,7,6;,
  157.  3;2,3,7;,
  158.  3;3,4,7;,
  159.  3;3,0,4;,
  160.  3;4,5,9;,
  161.  3;5,6,9;,
  162.  3;6,7,9;,
  163.  3;7,4,9;;
  164.  
  165.  MeshMaterialList {
  166.   1;
  167.   1;
  168.   0;;
  169.   Material {
  170.    0.274510;0.325490;0.905882;1.000000;;
  171.    30.000000;
  172.    0.768627;0.768627;0.768627;;
  173.    0.000000;0.000000;0.000000;;
  174.   }
  175.  }
  176.  MeshNormals {
  177.   26;
  178.   0.000000;0.000000;-1.000000;,
  179.   0.898808;-0.000000;-0.438343;,
  180.   -0.000000;-0.898808;-0.438343;,
  181.   0.000000;0.000000;-1.000000;,
  182.   0.898808;-0.000000;-0.438343;,
  183.   0.000000;0.898808;-0.438343;,
  184.   0.000000;0.000000;-1.000000;,
  185.   0.000000;0.898808;-0.438343;,
  186.   -0.898808;0.000000;-0.438343;,
  187.   0.000000;0.000000;-1.000000;,
  188.   -0.898808;0.000000;-0.438343;,
  189.   -0.000000;-0.898808;-0.438343;,
  190.   0.898808;-0.000000;-0.438343;,
  191.   -0.000000;-0.898808;-0.438343;,
  192.   0.000000;-0.000000;1.000000;,
  193.   0.898808;-0.000000;-0.438343;,
  194.   0.000000;0.898808;-0.438343;,
  195.   0.000000;-0.000000;1.000000;,
  196.   0.000000;0.898808;-0.438343;,
  197.   -0.898808;0.000000;-0.438343;,
  198.   0.000000;-0.000000;1.000000;,
  199.   -0.898808;0.000000;-0.438343;,
  200.   -0.000000;-0.898808;-0.438343;,
  201.   0.000000;-0.000000;1.000000;,
  202.   0.000000;0.000000;-1.000000;,
  203.   0.000000;-0.000000;1.000000;;
  204.  
  205.   16;
  206.   3;0,24,3;,
  207.   3;3,24,6;,
  208.   3;6,24,9;,
  209.   3;9,24,0;,
  210.   3;1,15,12;,
  211.   3;1,4,15;,
  212.   3;5,18,16;,
  213.   3;5,7,18;,
  214.   3;8,21,19;,
  215.   3;8,10,21;,
  216.   3;11,13,22;,
  217.   3;11,2,13;,
  218.   3;14,17,25;,
  219.   3;17,20,25;,
  220.   3;20,23,25;,
  221.   3;23,14,25;;
  222.  }
  223.  MeshTextureCoords {
  224.   10;
  225.   0.000000;0.000000;,
  226.   0.000000;0.000000;,
  227.   0.000000;0.000000;,
  228.   0.000000;0.000000;,
  229.   0.000000;0.000000;,
  230.   0.000000;0.000000;,
  231.   0.000000;0.000000;,
  232.   0.000000;0.000000;,
  233.   0.000000;0.000000;,
  234.   0.000000;0.000000;;
  235.  }
  236. }
  237.