Giter Club home page Giter Club logo

Comments (6)

kenrussell avatar kenrussell commented on June 25, 2024

(Note: we recognize this is likely the same issue as #41 - but still wondering if there are any potential improvements to be had in cases like this. Thanks very much in advance for looking.)

from basis_universal.

mozg4D avatar mozg4D commented on June 25, 2024

Same issue.. I compressed using compressonator to ETC1, so color mismatch is probaly not a basis issue - it's ETC1 issue, so transcoding to something better (maybe to BC5 or 7) on desktop would be preferrable. Let it occupy more space on videocard but correct colors seem more important

from basis_universal.

richgel999 avatar richgel999 commented on June 25, 2024

This texture has highly saturated gradients that occur over small spatial areas, which is one of ETC1S's key weaknesses. ETC1S can't encode saturated gradients at the pixel level, because it can only vary the luma within a block. For a red gradient, we can't vary the luma within the block because that would cause the pixels to become desaturated away from red.

Full ETC1 would look a little better, because it has 4x2 or 2x4 subblocks, but it still would have some blockiness at the subblock level. This problem is particularly obvious on some videos.

One workaround for problems like this is to enlarge the source texture, by 200 or 400%, then encode that. The gradient would then be spread between more blocks, but this will cost bitrate and increase transcode time.

For the 3rd major Basis Universal milestone we are adding a higher quality mode to the system. We're not exactly sure what we're going to do yet, but we'll definitely be fixing this problem.

from basis_universal.

toji avatar toji commented on June 25, 2024

Thanks for the detailed breakdown of the problem!

from basis_universal.

Ben-Mack avatar Ben-Mack commented on June 25, 2024

@richgel999 I'm really looking forward to higher quality mode, please update if you have any news about it.
In my case, I want to use Basis for lightmap but the artifacts and color banding are too much to be useable, even at the highest quality (the quality seems to be degraded a lot compared to DXT1?).

from basis_universal.

richgel999 avatar richgel999 commented on June 25, 2024

We hear you! We're working on a system that uses a very strong subset of ASTC as a base, which can be transcoded to a variety of formats. It'll be a lot higher quality than the ETC1S system that basisu uses today.

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.