Giter Club home page Giter Club logo

Comments (4)

richgel999 avatar richgel999 commented on September 27, 2024 1

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.

richgel999 avatar richgel999 commented on September 27, 2024 1

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.

richgel999 avatar richgel999 commented on September 27, 2024

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.

cwoffenden avatar cwoffenden commented on September 27, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.