• calcopiritus@lemmy.world
    link
    fedilink
    arrow-up
    1
    ·
    4 months ago

    The random number generation is not the source of the complaint. That is just made to easily prove the point in the article.

    The argument is not to use another method when randomly sampling from [0,1). The argument is that f32 color channels are already in the [0,1) range, and following the alternate method results in a “fair-er” representation of the range.

    The plot that was generated with the random sampling is just to show that the standard method is not “fair”.

      • StripedMonkey@lemmy.zip
        link
        fedilink
        arrow-up
        1
        ·
        4 months ago

        I’m trying to understand where this rage and hatred is coming from. This isn’t some canonical interchange format here.

          • calcopiritus@lemmy.world
            link
            fedilink
            arrow-up
            1
            ·
            4 months ago

            If you read the conclusion, it is very clear that you should not ever break convention. You should not apply this if it would affect any other program.

            That is, if your input is in u8, your output should be in u8 too. Otherwise you are “exposing” your different quantization.

            I don’t think this post is telling you that you should use the 256 method. I think it is pretty clear that it is just explaining it, not advocating for it. At various points of the article it is written something like “I struggle to see a situation where it would be beneficial”.