atteneder / KtxUnity

Load KTX and Basis Universal textures at runtime
Apache License 2.0
215 stars 42 forks source link

Question for texture ktx compressed so many has artifacts #80

Open johnnyapu15 opened 1 year ago

johnnyapu15 commented 1 year ago

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.

MAG-AdrianMeredith commented 1 year ago

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?

atteneder commented 7 months ago

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