compressonator icon indicating copy to clipboard operation
compressonator copied to clipboard

Bad last ones MIPS for non-square texture

Open in3des opened this issue 5 years ago • 8 comments

Hi, I found an issue - last generated mips are wrong if texture is non-square (in my case I have size 2048*4096) Please see the screenshot - https://prnt.sc/sorp4f Game engine counts this as an error and gives a warning about missing mips. Hope this could be fixed.

Thanks!

in3des avatar May 27 '20 13:05 in3des

@in3des Is the image mips view generated using CPU or GPU?

NPCompress avatar May 27 '20 13:05 NPCompress

@NPCompress that one was generated by CPU I just found there is an option to switch to GPU- will give it a try Thanks!

in3des avatar May 27 '20 13:05 in3des

well... same result settings screen https://prnt.sc/sosner

in3des avatar May 27 '20 13:05 in3des

@in3des , Note the GPU version has further restrictions on dimensions been divisible by 4, it will be changed to allow smaller sizes. I also notice that the last mip level may be restricted to 2x2 on CPU and should goto 1x1, will check, and update a fix.

NPCompress avatar May 27 '20 13:05 NPCompress

Thanks!

in3des avatar May 27 '20 13:05 in3des

If you try to generate mip levels for 32x4 texture, the expected result is:

1. 32x4 (64 bytes)
2. 16x2 (32 bytes)
3. 8x1  (16 bytes)
4. 4x1  (8 bytes)
5. 2x1  (8 bytes)
6. 1x1  (8 bytes)

That's how Photoshop DDS plugin creates the texture. But with Compressonator, only one level is generated (32x4).

dmitri-fm avatar Jan 05 '23 01:01 dmitri-fm

This appears to be the same issue as #133 which was resolved in the v4.4 release.

denislevesqueAMD avatar Jul 18 '23 18:07 denislevesqueAMD

The issue has been resolved in current release v4.4

NPCompress avatar Jul 19 '23 19:07 NPCompress