Coder Social home page Coder Social logo

Comments (4)

solidpixel avatar solidpixel commented on August 14, 2024 1

Proposal for rationalizing HDR settings:

We now have -ch for selecting the HDR profile, but still have separate -hdr and -hdra options which are needed to correctly set up the encoder heuristics even if the profile is HDR. For HDR textures -ch by itself is really useless, and for non-HDR textures you shouldn't be using -ch in the first place.

To reduce the confusion, and make creating a library interface simpler, I propose merging these three separate flags into two mutually exclusive compressor profiles:

  • Option opn: -ch (HDR RGB, with LDR alpha) and -cH (HDR RGBA).
  • Option two: -ch (HDR RGB, with LDR alpha) and -cha (HDR RGBA).
  • Option three: -cht (t=transparency HDR RGB, with LDR alpha) and -ch (HDR RGBA).

If we go for -cht then we could also have -clt and -cst and make it so that that implies -a 1? Not 100% sure that I like this as an option; not having alpha weighting gives some options to pack non-color with HDR RGB data.

from astc-encoder.

solidpixel avatar solidpixel commented on August 14, 2024 1

Proposal for rationalizing alpha blending settings.

We currently have two separate settings for weighting RGB errors by the alpha channel, which ensures alpha quality is good in regions with low transparency. We have the generic -a <radius> option. We also have -alphablend which is simply an alias for -a 1. Propose removing -alphablend - it's not adding much.

from astc-encoder.

solidpixel avatar solidpixel commented on August 14, 2024

Alternative for the direct vs perceptual changes would be to keep both, but separate this out from the color format. Default should be "direct", as the perceptual metrics can have problems (e.g. hdr_log is known to give blocky output)

from astc-encoder.

solidpixel avatar solidpixel commented on August 14, 2024

All planned changes now merged.

from astc-encoder.

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.