You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add in additional DDS Header information to allow for dds textures to be used in the following formats:
palette RGB 4bpp 16 colors
palette RGB 8bpp 256 colors
... to allow for usage in textures such as high-resolution biome maps that have a very low footprint.
Discussion from Sigma88:
basically, byte 88 has the information about bpp (4 or 8)(edited)
as all dds files they have a 128 header
if you remove the header you are left with the image which is split in two parts
1- the color palette
2- the actual texture
the color palette has 4 bytes (RGBA) for every color(edited)
so 4bpp images have a 64 bytes palette
8bpp images have a 1024 bytes palette
the actual texture has 1 byte every 2 pixels (4bpp images) or 1 byte for every pixel (8bpp images)
and experimental code: https://pastebin.com/7iJmUV97
The text was updated successfully, but these errors were encountered:
@StollD the code now works, but it looks very ugly. if you want to clean it and make it more consistent with the rest of kopernicus, feel free to do that.
Add in additional DDS Header information to allow for dds textures to be used in the following formats:
... to allow for usage in textures such as high-resolution biome maps that have a very low footprint.
Discussion from Sigma88:
The text was updated successfully, but these errors were encountered: