skybox.x
上传用户:junlon
上传日期:2022-01-05
资源大小:39075k
文件大小:8k
源码类别:

DirextX编程

开发平台:

Visual C++

  1. xof 0302txt 0064
  2. template Header {
  3.  <3D82AB43-62DA-11cf-AB39-0020AF71E433>
  4.  WORD major;
  5.  WORD minor;
  6.  DWORD flags;
  7. }
  8. template Vector {
  9.  <3D82AB5E-62DA-11cf-AB39-0020AF71E433>
  10.  FLOAT x;
  11.  FLOAT y;
  12.  FLOAT z;
  13. }
  14. template Coords2d {
  15.  <F6F23F44-7686-11cf-8F52-0040333594A3>
  16.  FLOAT u;
  17.  FLOAT v;
  18. }
  19. template Matrix4x4 {
  20.  <F6F23F45-7686-11cf-8F52-0040333594A3>
  21.  array FLOAT matrix[16];
  22. }
  23. template ColorRGBA {
  24.  <35FF44E0-6C7C-11cf-8F52-0040333594A3>
  25.  FLOAT red;
  26.  FLOAT green;
  27.  FLOAT blue;
  28.  FLOAT alpha;
  29. }
  30. template ColorRGB {
  31.  <D3E16E81-7835-11cf-8F52-0040333594A3>
  32.  FLOAT red;
  33.  FLOAT green;
  34.  FLOAT blue;
  35. }
  36. template IndexedColor {
  37.  <1630B820-7842-11cf-8F52-0040333594A3>
  38.  DWORD index;
  39.  ColorRGBA indexColor;
  40. }
  41. template Boolean {
  42.  <4885AE61-78E8-11cf-8F52-0040333594A3>
  43.  WORD truefalse;
  44. }
  45. template Boolean2d {
  46.  <4885AE63-78E8-11cf-8F52-0040333594A3>
  47.  Boolean u;
  48.  Boolean v;
  49. }
  50. template MaterialWrap {
  51.  <4885AE60-78E8-11cf-8F52-0040333594A3>
  52.  Boolean u;
  53.  Boolean v;
  54. }
  55. template TextureFilename {
  56.  <A42790E1-7810-11cf-8F52-0040333594A3>
  57.  STRING filename;
  58. }
  59. template Material {
  60.  <3D82AB4D-62DA-11cf-AB39-0020AF71E433>
  61.  ColorRGBA faceColor;
  62.  FLOAT power;
  63.  ColorRGB specularColor;
  64.  ColorRGB emissiveColor;
  65.  [...]
  66. }
  67. template MeshFace {
  68.  <3D82AB5F-62DA-11cf-AB39-0020AF71E433>
  69.  DWORD nFaceVertexIndices;
  70.  array DWORD faceVertexIndices[nFaceVertexIndices];
  71. }
  72. template MeshFaceWraps {
  73.  <4885AE62-78E8-11cf-8F52-0040333594A3>
  74.  DWORD nFaceWrapValues;
  75.  Boolean2d faceWrapValues;
  76. }
  77. template MeshTextureCoords {
  78.  <F6F23F40-7686-11cf-8F52-0040333594A3>
  79.  DWORD nTextureCoords;
  80.  array Coords2d textureCoords[nTextureCoords];
  81. }
  82. template MeshMaterialList {
  83.  <F6F23F42-7686-11cf-8F52-0040333594A3>
  84.  DWORD nMaterials;
  85.  DWORD nFaceIndexes;
  86.  array DWORD faceIndexes[nFaceIndexes];
  87.  [Material]
  88. }
  89. template MeshNormals {
  90.  <F6F23F43-7686-11cf-8F52-0040333594A3>
  91.  DWORD nNormals;
  92.  array Vector normals[nNormals];
  93.  DWORD nFaceNormals;
  94.  array MeshFace faceNormals[nFaceNormals];
  95. }
  96. template MeshVertexColors {
  97.  <1630B821-7842-11cf-8F52-0040333594A3>
  98.  DWORD nVertexColors;
  99.  array IndexedColor vertexColors[nVertexColors];
  100. }
  101. template Mesh {
  102.  <3D82AB44-62DA-11cf-AB39-0020AF71E433>
  103.  DWORD nVertices;
  104.  array Vector vertices[nVertices];
  105.  DWORD nFaces;
  106.  array MeshFace faces[nFaces];
  107.  [...]
  108. }
  109. template FrameTransformMatrix {
  110.  <F6F23F41-7686-11cf-8F52-0040333594A3>
  111.  Matrix4x4 frameMatrix;
  112. }
  113. template Frame {
  114.  <3D82AB46-62DA-11cf-AB39-0020AF71E433>
  115.  [...]
  116. }
  117. Header {
  118.  1;
  119.  0;
  120.  1;
  121. }
  122. Frame CUBE_Root {
  123.  FrameTransformMatrix {
  124.   1.000000, 0.000000, 0.000000, 0.000000,///3.000000, 0.000000, 0.000000, 0.000000,
  125.   0.000000, 1.000000, 0.000000, 0.000000,///0.000000, 3.000000, 0.000000, 0.000000,
  126.   0.000000, 0.000000, 1.000000, 0.000000,///0.000000, 0.000000, 3.000000, 0.000000,
  127.   0.000000, 0.000000, 0.000000, 1.000000;;
  128.  }
  129. Mesh Unnamed_0 {
  130.  4;
  131.  400.000000;400.000000;-400.000000;,    // 0
  132.  -400.000000;400.000000;-400.000000;,   // 1
  133.  -400.000000;400.000000;400.000000;,    // 2
  134.  400.000000;400.000000;400.000000;;     // 3
  135.  2;
  136.  3;0,2,1;,
  137.  3;0,3,2;;
  138.   MeshMaterialList {
  139.       1;
  140.   2;
  141.   0,
  142.   0;
  143.      Material {
  144.      1.000000;1.000000;1.000000;1.000000;;
  145.      0.000000;
  146.      1.000000;1.000000;1.000000;;
  147.        0.000000;0.000000;0.000000;;
  148.           TextureFilename {
  149.       "texture\SkyBox_Top.jpg";
  150.      }
  151.      }
  152.  }
  153.   MeshNormals {
  154.  4;
  155.  0.000000;1.000000;0.000000;,
  156.  0.000000;1.000000;0.000000;,
  157.  0.000000;1.000000;0.000000;,
  158.  0.000000;1.000000;0.000000;;
  159.  2;
  160.  3;0,1,2;,
  161.  3;0,2,3;;
  162.  }
  163.   MeshTextureCoords {
  164.     4;
  165.     1.000000;0.000000;;
  166.     0.000000;0.000000;,
  167.     0.000000;1.000000;,
  168.     1.000000;1.000000;,
  169.  }
  170. }
  171. Mesh Unnamed_1 {
  172.  4;
  173.  400.000000;400.000000;-400.000000;,    // 0
  174.  400.000000;400.000000;400.000000;,     // 3
  175.  400.000000;-400.000000;400.000000;,    // 7
  176.  400.000000;-400.000000;-400.000000;,   // 4
  177.  2;
  178.  3;0,2,1;,
  179.  3;0,3,2;;
  180.   MeshMaterialList {
  181.       1;
  182.   2;
  183.   0,
  184.   0;
  185.      Material {
  186.      1.000000;1.000000;1.000000;1.000000;;
  187.      0.000000;
  188.      1.000000;1.000000;1.000000;;
  189.        0.000000;0.000000;0.000000;;
  190.           TextureFilename {
  191.       "texture\SkyBox_Right.jpg";
  192.      }
  193.      }
  194.  }
  195.   MeshNormals {
  196.  4;
  197.  1.000000;0.000000;0.000000;,
  198.  1.000000;0.000000;0.000000;,
  199.  1.000000;0.000000;0.000000;,
  200.  1.000000;0.000000;0.000000;,
  201.  2;
  202.  3;0,1,2;,
  203.  3;0,2,3;;
  204.  }
  205.   MeshTextureCoords {
  206.     4;
  207.     1.000000;0.000000;;
  208.     0.000000;0.000000;,
  209.     0.000000;1.000000;,
  210.     1.000000;1.000000;,
  211.  }
  212. }
  213. Mesh Unnamed_2 {
  214.  4;
  215.  -400.000000;400.000000;-400.000000;,   // 1
  216.  -400.000000;-400.000000;-400.000000;,  // 5
  217.  -400.000000;-400.000000;400.000000;,   // 6
  218.  -400.000000;400.000000;400.000000;,    // 2
  219.  2;
  220.  3;0,2,1;,
  221.  3;0,3,2;;
  222.   MeshMaterialList {
  223.       1;
  224.   2;
  225.   0,
  226.   0;
  227.      Material {
  228.      1.000000;1.000000;1.000000;1.000000;;
  229.      0.000000;
  230.      1.000000;1.000000;1.000000;;
  231.        0.000000;0.000000;0.000000;;
  232.           TextureFilename {
  233.       "texture\SkyBox_Left.jpg";
  234.      }
  235.      }
  236.  }
  237.   MeshNormals {
  238.  4;
  239.  -1.000000;0.000000;0.000000;,
  240.  -1.000000;0.000000;0.000000;,
  241.  -1.000000;0.000000;0.000000;,
  242.  -1.000000;0.000000;0.000000;,
  243.  2;
  244.  3;0,1,2;,
  245.  3;0,2,3;;
  246.  }
  247.   MeshTextureCoords {
  248.     4;
  249.     0.000000;0.000000;,
  250.     0.000000;1.000000;,
  251.     1.000000;1.000000;,
  252.     1.000000;0.000000;;
  253.  }
  254. }
  255. Mesh Unnamed_3 {
  256.  4;
  257.  400.000000;400.000000;400.000000;,     // 3
  258.  -400.000000;400.000000;400.000000;,    // 2
  259.  -400.000000;-400.000000;400.000000;,   // 6
  260.  400.000000;-400.000000;400.000000;,    // 7
  261.  2;
  262.  3;0,2,1;,
  263.  3;0,3,2;;
  264.   MeshMaterialList {
  265.       1;
  266.   2;
  267.   0,
  268.   0;
  269.      Material {
  270.      1.000000;1.000000;1.000000;1.000000;;
  271.      0.000000;
  272.      1.000000;1.000000;1.000000;;
  273.        0.000000;0.000000;0.000000;;
  274.           TextureFilename {
  275.       "texture\SkyBox_Front.jpg";
  276.      }
  277.      }
  278.  }
  279.   MeshNormals {
  280.  4;
  281.  0.000000;0.000000;1.000000;,
  282.  0.000000;0.000000;1.000000;,
  283.  0.000000;0.000000;1.000000;,
  284.  0.000000;0.000000;1.000000;,
  285.  2;
  286.  3;0,1,2;,
  287.  3;0,2,3;;
  288.  }
  289.   MeshTextureCoords {
  290.     4;
  291.     1.000000;0.000000;;
  292.     0.000000;0.000000;,
  293.     0.000000;1.000000;,
  294.     1.000000;1.000000;,
  295.  }
  296. }
  297. Mesh Unnamed_4 {
  298.  4;
  299.  400.000000;400.000000;-400.000000;,    // 0
  300.  400.000000;-400.000000;-400.000000;,   // 4
  301.  -400.000000;-400.000000;-400.000000;,  // 5
  302.  -400.000000;400.000000;-400.000000;,   // 1
  303.  2;
  304.  3;0,2,1;,
  305.  3;0,3,2;;
  306.   MeshMaterialList {
  307.       1;
  308.   2;
  309.   0,
  310.   0;
  311.      Material {
  312.      1.000000;1.000000;1.000000;1.000000;;
  313.      0.000000;
  314.      1.000000;1.000000;1.000000;;
  315.        0.000000;0.000000;0.000000;;
  316.           TextureFilename {
  317.       "texture\SkyBox_Back.jpg";
  318.      }
  319.      }
  320.  }
  321.   MeshNormals {
  322.  4;
  323.  0.000000;0.000000;-1.000000;,
  324.  0.000000;0.000000;-1.000000;,
  325.  0.000000;0.000000;-1.000000;,
  326.  0.000000;0.000000;-1.000000;,
  327.  2;
  328.  3;0,1,2;,
  329.  3;0,2,3;;
  330.  }
  331.   MeshTextureCoords {
  332.     4;
  333.     0.000000;0.000000;,
  334.     0.000000;1.000000;,
  335.     1.000000;1.000000;,
  336.     1.000000;0.000000;;
  337.  }
  338. }
  339. Mesh Unnamed_5 {
  340.  4;
  341.  400.000000;-400.000000;-400.000000;,   // 4
  342.  400.000000;-400.000000;400.000000;,    // 7
  343.  -400.000000;-400.000000;400.000000;,   // 6
  344.  -400.000000;-400.000000;-400.000000;;  // 5
  345.  2;
  346.  3;0,2,1;,
  347.  3;0,3,2;;
  348.   MeshMaterialList {
  349.       1;
  350.   2;
  351.   0,
  352.   0;
  353.      Material {
  354.      1.000000;1.000000;1.000000;1.000000;;
  355.      0.000000;
  356.      1.000000;1.000000;1.000000;;
  357.        0.000000;0.000000;0.000000;;
  358.           TextureFilename {
  359.       "texture\skybox_bottom.JPG";///"DATA\Texture\sand.jpg";
  360.      }
  361.      }
  362.  }
  363.   MeshNormals {
  364.  4;
  365.  0.000000;-1.000000;0.000000;,
  366.  0.000000;-1.000000;0.000000;,
  367.  0.000000;-1.000000;0.000000;,
  368.  0.000000;-1.000000;0.000000;;
  369.  2;
  370.  3;0,1,2;,
  371.  3;0,2,3;;
  372.  }
  373.   MeshTextureCoords {
  374.     4;
  375.     1.000000;0.000000;;
  376.     0.000000;0.000000;,
  377.     0.000000;1.000000;,
  378.     1.000000;1.000000;,
  379.  }
  380. }
  381. }