GPUOpen-Tools / compressonator

Tool suite for Texture and 3D Model Compression, Optimization and Analysis using CPUs, GPUs and APUs
1.29k stars 194 forks source link

-nomipmap not working for bc6h #271

Closed StreetwareGames closed 7 months ago

StreetwareGames commented 1 year ago

exact command:

compressonatorcli -fd bc6h -nomipmap -Quality 1.0 src.ktx out.ktx2

denislevesqueAMD commented 1 year ago

@SewerDweller Thanks for the report, we will be looking into this

denislevesqueAMD commented 12 months ago

@SewerDweller I've tried this command on my own machine, but I don't see the issue. What did you expect to happen?

The -nomipmap option is a manual way of ensuring that mipmap generation is disabled. So when you run the command you have specified you should not see any additional mipmap levels generated in the output image.

StreetwareGames commented 11 months ago

hey maybe it's because of the input file already containing mip levels. the ktx file I've used can be found here: https://github.com/SaschaWillems/Vulkan-Assets/blob/a27c0e584434d59b7c7a714e9180eefca6f0ec4b/textures/hdr/pisa_cube.ktx

Ideally I'd want the new file to contain no mipmaps even if the source file has them

denislevesqueAMD commented 11 months ago

@SewerDweller Ok, I see what you mean now. An alternative method of doing what you want would be to use the command compressonatorcli -fd bc6h -miplevels 1 -Quality 1.0 src.ktx out.ktx2, but it appears that it is currently bugged and doesn't work.

We'll work on fixing the issues so that it works with textures that have existing mipmap levels.

NavNTCMP commented 7 months ago

@SewerDweller Issue addressed in v4.5 release