2
0
mirror of https://github.com/Laupetin/OpenAssetTools.git synced 2026-03-07 05:23:02 +00:00

all known bugs fixed and loaded maps work correctly now.

This commit is contained in:
LJW-Dev
2025-08-28 23:34:06 +08:00
parent 9941d02bcc
commit a825bf965b
16 changed files with 40189 additions and 356 deletions

View File

@@ -158,7 +158,6 @@ namespace T6
AUFT_NUM_FIELD_TYPES,
};
struct customMapVertex
{
@@ -171,13 +170,27 @@ namespace T6
unsigned int packedLmapCoord;
};
enum CM_MATERIAL_TYPE
{
NO_COLOUR_OR_TEXTURE,
CM_MATERIAL_COLOUR,
CM_MATERIAL_TEXTURE
};
struct customMapMaterial
{
CM_MATERIAL_TYPE materialType;
const char* materialName;
};
struct worldSurface
{
char flags;
char lightmapIndex;
std::string materialName;
char primaryLightIndex;
char reflectionProbeIndex;
customMapMaterial material;
//char lightmapIndex;
//char primaryLightIndex;
//char reflectionProbeIndex;
int triCount;
int firstVertexIndex;
@@ -196,12 +209,49 @@ namespace T6
worldSurface* surfaces;
};
struct customMapColVertex
{
vec3_t pos;
};
struct collisionSurface
{
int triCount;
int firstVertexIndex;
int firstIndex_Index;
};
struct customMapCol
{
int vertexCount;
customMapColVertex* vertices;
int indexCount;
uint16_t* indices;
int surfaceCount;
collisionSurface* surfaces;
};
struct customMapModel
{
std::string name;
vec3_t origin;
vec3_t rotation; // euler rotation in degrees
float scale;
};
struct customMapInfo
{
std::string name;
std::string bspName;
customMapGfx gfxInfo;
customMapGfx colInfo;
size_t modelCount;
customMapModel* models;
};
using AssetPhysPreset = Asset<ASSET_TYPE_PHYSPRESET, PhysPreset>;