-
Notifications
You must be signed in to change notification settings - Fork 261
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
block artifacts remains for certain image, even set -endpoint_rdo_thresh 1 #103
Comments
Try setting the quality level to maximum using argument "-q 255". This has the biggest effect on resulting image quality. |
I have tried the argument. But the block artifacts remains. |
Hi @goldenyz, |
Yes, the compressed version for most color images are acceptable. But in production, we may need a measurement for the acceptability. If the compressed image aren't acceptable, we can degrade into the original image... Do you have any recommendations for the measurement? It would be helpful for us, too. |
Hi @goldenyz, basisu supports the -stats flag which will output image quality metrics. Perhaps you could use that? (I haven't used stats much myself). |
These look like typical ETC1S block artifacts. We only get 1 base color per 4x4 pixel block, and if there are large chroma transitions then block artifacts can show up. (Regular ETC1 has this issue too, except it occurs on 4x2 or 2x4 block boundaries.) We're adding a HQ mode to Basis Universal within weeks, which will address this issue. Although the bitrate is going to be a lot higher (but will go down over time). One thing that helps with this is to enlarge your texture with filtering. (I'll grab your image in a bit and encode it myself.) |
@richgel999 Looking forward to the HQ mode. I have tried the encoding with ASTC 4*4 with medium in PVRTexTool, And the result seems acceptable:
Does this image is the result of enlarged 2x? |
The UASTC build coming today fixes this - I highly recommend you give it a try once it's released. You can use uastc on problematic textures, and ETC1S on the others. |
Hi, we are trying to use '.basis' as our basic texture file format. But we found that there are some block artifacts for certain images:
original:
unpacked (ETC1_RGB):
original:
unpacked (ETC1_RGB):
command used:
could anyone help to find out why?
The text was updated successfully, but these errors were encountered: