Olganix / Sw_Racer

Tools relative to Starwars Racer.
Other
16 stars 2 forks source link

Known texture formats #9

Open JayFoxRox opened 6 years ago

JayFoxRox commented 6 years ago

This information should be in a comment or something near SWR_MODEL_Section5.unk12 [a1] and SWR_MODEL_Section5.unk13 [a2] in the header/structure definition

a1 a2 Storage Format Comment
0 3 A4R4G4B4 A8R8G8B8 from file? Confirmed
5 1 A4R4G4B4 A8 from file, RGB = 0xFFF Unused in modelblock
5 3 A4R4G4B4 A4R4G4B4 from file? Unused in modelblock
4 0 A4R4G4B4 Read 4 bit and duplicate in all channels Confirmed
4 1 A4R4G4B4 Read 8 bit and duplicate in RGB; A = 0xF Confirmed
3 0 A4R4G4B4 A4 from file, RGB = 0xFFF Unused in modelblock
2 0 A1R5G5B5 Loaded as A1R5G5B5 from file using I4 palette Confirmed
2 1 A1R5G5B5 Loaded as A1R5G5B5 from file using I8 palette? Confirmed
5 2 A1R5G5B5 R5G5B5 from file, A = 0x1 Unused in modelblock
5 7 A1R5G5B5 R5 from file, GB = 0xFF A = 0x1 ???? unsure Unused in modelblock

The unused types have note been confirmed. Furthermore the confirmed entries only suggest that the source material looks correct. The alpha could still be bad for example. Order of components might be wrong. Please confirm color correctness yourself.

This is based on ongoing research in https://github.com/OpenSWE1R/swe1r-re/pull/12

JayFoxRox commented 6 years ago

Can you reopen this please? I'm still looking into this and confirming my findings. We can close it once I've confirmed all types.