KtxUnity icon indicating copy to clipboard operation
KtxUnity copied to clipboard

Question for texture ktx compressed so many has artifacts

Open johnnyapu15 opened this issue 2 years ago • 2 comments

Hi, This is the screen seen in the model-viewer after ktx compression and the screen opened in unity using ktxUnity. In Unity, there are artifacts like spots. Why would there be such a difference? I used toktx for compressing, the command are same as below.

toktx --genmipmap --uastc 3 --uastc_rdo_l 0.5 --uastc_rdo_b 100 --zcmp 20 --assign_oetf linear --assign_primaries none --resize 2048x2048 --threads 10

image

image

Thanks.

johnnyapu15 avatar Jan 31 '23 14:01 johnnyapu15

I'd also like an answer to this, been struggling to get high quality compression. Is there any recommended settings e.g. high,medium, low?

MAG-AdrianMeredith avatar Apr 04 '23 10:04 MAG-AdrianMeredith

Hi,

I haven't played a lot with the settings, but the defaults (UASTC) usually gives me good results.

Just to clarify, does the result look similar in other viewers/engines? I want to rule out that this is a bug of KTX for Unity.

thanks

atteneder avatar Jan 31 '24 09:01 atteneder

I totally forgot about this one, too late now. But in short I'm using playcanvas and compressing normals with uastc produces the artifacts (noticeable macro blocking) like on the second screenshot. We therefore don't compress them as the quality is basically unusable (cept for low lod levels).

MAG-AdrianMeredith avatar Dec 19 '24 09:12 MAG-AdrianMeredith

So probably not a unity bug yes

MAG-AdrianMeredith avatar Dec 19 '24 09:12 MAG-AdrianMeredith

Can you provide a sample texture? Ideally the original plus your ktx/toktx settings.

If yes, please re-open so we can keep track and I'll look into it.

atteneder avatar Dec 19 '24 12:12 atteneder