szymski

Untitled

Nov 2nd, 2016
178
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.73 KB | None | 0 0
  1. struct Model_0_0 {
  2. Model_0_1* model_0_1;
  3. Model_0_0* nextTwin;
  4. }
  5.  
  6. struct Model_0_1 {
  7. uint unknown1; // Always? 0x00000000
  8. Model_0_2* model_0_2; // Always? 0x01000000 (LE)
  9. Model_1_2* model_1_2;
  10. void* gliData;
  11. }
  12.  
  13. struct Model_0_2 {
  14. uint unknown1;
  15. ObjectData_0_1* objectData; // Object address
  16. }
  17.  
  18. struct ObjectData_0_1 {
  19. ubyte[36] unknown;
  20. uint flags;
  21. }
  22.  
  23. struct Model_1_2 {
  24. uint unknown1;
  25. uint unknown2;
  26. Model_0_3* model_0_3;
  27. }
  28.  
  29. struct Model_0_3 {
  30. Vertex* vertices;
  31. void* unknownPointer2;
  32. void** unknownPointer3;
  33. uint unknown;
  34. void* unknownPointer4;
  35. Model_0_4* model_0_4;
  36. ubyte[22] unknown2;
  37. ushort subModelCount;
  38.  
  39. Model_0_5*[] submodels() {
  40. Model_0_5*[] result;
  41.  
  42. foreach(i; 0 .. subModelCount)
  43. result ~= (model_0_4 + i).model_0_5;
  44.  
  45. return result;
  46. }
  47. }
  48.  
  49. struct Model_0_4 {
  50. Model_0_5* model_0_5;
  51. }
  52.  
  53. struct Model_0_5 {
  54. TextureInfo_0* textureInfo_0;
  55. ushort faceCount;
  56. ushort unknown;
  57. VertexFace* indices;
  58. UVFace* uvIndices; // float u, float v
  59. Vertex* normals; // NOT SURE
  60. UV* uvs;
  61. }
  62.  
  63. struct VertexIndex {
  64. ushort xIndex;
  65. ushort yIndex;
  66. ushort zIndex;
  67. }
  68.  
  69. struct Vertex {
  70. float x, y, z;
  71. }
  72.  
  73. struct VertexFace {
  74. ushort xIndex, yIndex, zIndex;
  75. }
  76.  
  77. struct UV {
  78. float u, v;
  79. }
  80.  
  81. struct UVFace {
  82. ushort xIndex, yIndex, zIndex;
  83. }
  84.  
  85. /*
  86. Texture info
  87. */
  88.  
  89. struct TextureInfo_0 {
  90. TextureInfo_1* textureInfo_1;
  91. }
  92.  
  93. struct TextureInfo_1 {
  94. ubyte[72] unknown;
  95. TextureInfo_2* textureInfo_2;
  96. }
  97.  
  98. struct TextureInfo_2
  99. {
  100. ubyte[8] something1_2;
  101. uint something3;
  102. ubyte[8] something4_5;
  103. uint something6;
  104. ushort h;
  105. ushort w;
  106. ushort h2;
  107. ushort w2;
  108. ubyte[12] gap20;
  109. uint dword2C;
  110. ubyte[21] gap30;
  111. ubyte byte45;
  112. char[130] textureFilename;
  113. };
Advertisement
Add Comment
Please, Sign In to add comment