Comments (4)
Also, note that you can use -global_pal_bits X and -global_mod_bits X to increase the quality when vitual selector codebooks are used. Anything higher than 8 increases quality, but greatly slows down compression because the virtual codebook search is currently exhaustive.
from basis_universal.
I've verified that if I encode with a larger virtual codebook, the artifacts look much better. 10,10 cuts down the artifacts a lot, but it takes a long time to compress. I'm trying 11,10 to see what happens.
This is definitely an artifact, not a bug.
from basis_universal.
I've reproduced this. When the "-global_sel_pal -no_hybrid_sel_cb" options are used, the encoder doesn't use custom selector codebooks at all. Instead, it uses a pure virtual codebook scheme that was intended primarily for small icons (where the overhead of storing a custom codebook can be too large). This method introduces extra noise in the output. Usually it looks fine, but it looks like this test pattern has found an outlier case.
The encoder hasn't been tuned as much when global selector codebooks are enabled like this. I don't think this is a bug, I think it's an genuine compression artifact that is getting amplified by using virtual codebooks.
Note these artifacts go away when you compress the texture normally, or with "-no_auto_global_sel_pal". We may be disabling automatic usage of global selector codebooks entirely in the future, as it's unclear how useful they actually are to most users and encoding time is noticeably slower.
Is there a particular reason why you are forcing global selector codebooks on?
from basis_universal.
Is there a particular reason why you are forcing global selector codebooks on?
I was trying the different options shown in the command-line help:
basisu -linear -global_sel_pal -no_hybrid_sel_cb -file x.png : Compress a non-sRGB image, use virtual selector codebooks for improved compression (but slower encoding)
My choice of test image was created to work well with 4x4 blocks, so the default basisu
settings were getting the file size down considerably, but when generating mipmaps the size was going up more than expected so I was trying the example options.
from basis_universal.
Related Issues (20)
- How to encode HDR format resource? HOT 2
- Webssembly version does not support jpg format HOT 1
- rename HOT 2
- Selecting which transcoders to use
- Is it possible ETC1S without lossy compression ?
- RuntimeError when encoding to UASTC with WASM HOT 1
- Transcode failure on iOS 17 HOT 3
- shrinking wasm for glTF extension support HOT 1
- build_emscripen.sh script error
- Error when I cross compile for arm64 under Windows HOT 2
- Does this project with WebGPU (web)? HOT 1
- Add prefix to cmake options
- losinglena.com domain expired HOT 1
- Setup documentation to remove etc1 global codebook selector
- Compile error in cppspmd_sse.h with C++23 HOT 1
- Remove reference to etc1_global_selector_codebook from transcoder wiki page HOT 2
- Balck Textures on android HOT 11
- Question about conversion from PNG to KTX2 and BC1-7 HOT 1
- build variations from number of cores HOT 1
- ETC1S Texture Video Specification (wiki page) says flip bit = 1 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from basis_universal.