VectorUnit games texture formats

Textures, recreate headers, conversions, algorithms and parsing of image files
carlimarli
Posts: 7
Joined: Wed Jun 23, 2021 11:58 am

VectorUnit games texture formats

Post by carlimarli »

The game uses a custom engine made by VectorUnit

Upon testing with the program Raw texture cooker from another post, I got the rough shape of the real image by using the mode bc1_unorm on DesertA_BlueSkyC.dat

DesertA_BlueSkyC - bc1_unorm.png


sample files, most textures have a .dat extension, while some others have .vap and .ttf, which doesn't seem to have a distinct pattern in which ones are used when from what I can currently tell; the four bytes at 0x19 seem to be the width

texture samples.zip
Last edited by carlimarli on Sat Jul 23, 2022 12:40 pm, edited 1 time in total.
Allen
Posts: 156
Joined: Tue Sep 01, 2015 9:44 am

Re: VectorUnit games texture formats

Post by Allen »

Some tips :)

Code: Select all

DWORD   texFormat;//0x15
DWORD   width;//0x19
DWORD   height;//0x1D
DWORD   MipMaps;//0x21
DWORD   dataSize;//0x25
if (texFormat == 0x5)
byte    RGBA32_Data[dataSize];

else if (texFormat == 0x10)
byte    ETC_RGB_Data[dataSize];

else if (texFormat == 0x23)
byte    ETC_RGBA1_Data[dataSize];

else if (texFormat == 0x24)
byte    ETC_RGBA_Data[dataSize];

else
byte    unkFormatData[dataSize];


Remember to post the game platform next time, this is very important.
Last edited by Allen on Thu Dec 23, 2021 7:39 am, edited 1 time in total.
carlimarli
Posts: 7
Joined: Wed Jun 23, 2021 11:58 am

Re: VectorUnit games texture formats

Post by carlimarli »

Allen wrote:Some tips :)

Code: Select all

DWORD   texFormat;//0x15
DWORD   width;//0x19
DWORD   height;//0x1D
DWORD   MipMaps;//0x21
DWORD   dataSize;//0x25
if (texFormat == 0x10)
byte    ETC_RGB_Data[dataSize];

else if (texFormat == 0x23)
byte    ETC_RGBA1_Data[dataSize];

else if (texFormat == 0x24)
byte    ETC_RGBA_Data[dataSize];

else
byte    unkFormatData[dataSize];


Remember to post the game platform next time, this is very important.



Thank you -- one more request, do you know which format is texFormat == 0x5?
Results_Banner_Main.dat
Allen
Posts: 156
Joined: Tue Sep 01, 2015 9:44 am

Re: VectorUnit games texture formats

Post by Allen »

carlimarli wrote:Thank you -- one more request, do you know which format is texFormat == 0x5?
Results_Banner_Main.dat

32bits RGBA :)
carlimarli
Posts: 7
Joined: Wed Jun 23, 2021 11:58 am

Re: VectorUnit games texture formats

Post by carlimarli »

Thanks!