tested ktx compressed texture array test
settings used
ktx_command = [
"ktx", "create",
"--format", "R8G8B8_UNORM",
"--layers", str(len(files)), # total num of images
"--encode", "basis-lz", # Encoding method
"--clevel", 1, # compression quality
"--qlevel", 128, #quality
"--assign-oetf", 'linear',
]
(then append all the input image paths and the output ktx path)
Input : 180 color pngs and 180 motion vec pngs ;1024x1024res totaling 333MB
after ktx compression , output was
4.7mb color & 2.6MB vec ktx2 textures
observations:
- if basis is not used the ktx texture is around 200mb
- blocky shapes work best (that’s why i chose the phone model)
- textures are upside down , so had to account for that in the vertex shader and displacement calc
- compression artifacts are easily visible.
- renderer.info.memory.textures says there’s just two textures in use even though one texture contains 180 images !