Post#10 » Tue Dec 05, 2023 8:01 pm
Since all the textures will be the same size and format, we will sum 4800 to get the datasize value for every header since this is the data size of the first texture as the size byte of header two shows, datazise byte of header 1 will always be 0000200D
4800+4800=9000
9000+4800=D800
D800+4800=12000
12000+4800=16800
16800+4800=1B000, etc
Input each value in their respective place untill you fill all of the data size bytes (remember this should be done little endian).
And lastly add the value 2 to the first bit in the 3rd pair of bits of the byte to finish this headers.
(I did it this way so you can see how this values are inputted on each data size byte, altough is not necessary fill up whit zeroes this values if you know how to work whit hex values).
Note: in case your texture is diferent size/format you will haveto sum the quantity acordingly, at the end of the guide ill explain how to get this values.
-
Attachments
-
-
Last edited by
cbnj on Mon Dec 11, 2023 3:36 am, edited 23 times in total.