Xaymar / Hellextractor

A simple tool to extract things from Helldivers 2 for your 3D printing needs.
BSD 3-Clause "New" or "Revised" License
32 stars 5 forks source link

.unit: Type 0x1, Format 0x1A is unsupported #4

Closed Xaymar closed 6 months ago

Xaymar commented 6 months ago

Width: 4 bytes

Xaymar commented 6 months ago

Potentially vertex color? Might by uint8_t rgba[4], or uint8_t bgra[4], or uint8_t argb[4], etc. Values don't seem to repeat at all, which suggests it is something unique, and the first/last byte is usually 0xFF (100% alpha?).

Xaymar commented 6 months ago

0x1A is probably "ABGR" or "ARGB" as a uint8_t[4].

Xaymar commented 6 months ago

Seems to be ABGR, though it is unclear what A is actually used for. It seems to be all over the place, even for very solid objects.

Xaymar commented 6 months ago

Merge into #1