• ch00f@lemmy.world
    link
    fedilink
    English
    arrow-up
    152
    ·
    21 days ago

    For those who just wanna know: cards at the time performed math on brightness values assuming a linear brightness scale when it should be logarithmic.

    • wewbull@feddit.uk
      link
      fedilink
      English
      arrow-up
      112
      ·
      21 days ago

      …ish

      The maths was right, except it was all being done on colour values than already had the CRTs response curve baked into them. You may have heard of “gamma correction”. Well, this is when you correct an images colour values for the display you’ll view it on.

      Blending before gamma correction and after gamma correction produce very different results. The cards were doing it after. This story is about doing it before.

      Paul Debevec had similar observations around the same time. His work at the time was all about HDRI and that was put into Source a few years later.

  • BlackLaZoR@fedia.io
    link
    fedilink
    arrow-up
    44
    ·
    21 days ago

    “It’s a bit technical,” begins Birdwell, "but the simple version is that graphics cards at the time always stored RGB textures and even displayed everything as non linear intensities, meaning that an 8 bit RGB value of 128 encodes a pixel that’s about 22% as bright as a value of 255, but the graphics hardware was doing lighting calculations as though everything was linear.

    Jesus Christ, I knew this was a problem with image editing software back then, but I never knew, that GPU manufacturers fucked it up as well. How did this happen?

    • Mistic@lemmy.world
      link
      fedilink
      English
      arrow-up
      15
      ·
      edit-2
      21 days ago

      I have a good guess on how this would actually happen:

      PM: We need this

      Specialist: makes this (doesn’t check results)

      QC: Looks good (but doesn’t actually check)

      Some updates later may further break the functionality. And as long as numbers aren’t blatantly wrong (think 0s everywhere, for example) and nobody checks thoroughly enough, the issue will remain.

      I have unfortunate experience of being a part of such a story, haha. There are ways to counter it. Mainly, their project documentation either wasn’t up to par or wasn’t used as a reference during creation and tests. Either way, it’s negligence.

      • BlackLaZoR@fedia.io
        link
        fedilink
        arrow-up
        3
        ·
        20 days ago

        I imagine in case of GPU design, there should be a bunch of tests for image correctness at some point, which would require pixel perfect reproduction to pass.

        But it’s plausible that tests were running incorrect math too.

  • SkaveRat@discuss.tchncs.de
    link
    fedilink
    English
    arrow-up
    31
    arrow-down
    2
    ·
    21 days ago

    When the HL2 documentary came out, someone said “all these gaming news sites will have contant for months” and they were absolutely right

  • SpaceNoodle@lemmy.world
    link
    fedilink
    English
    arrow-up
    18
    ·
    21 days ago

    I do this to my silicon vendor. I apparently made some people’s lives very uncomfortable for a good while this past year after I decompiled some of their binary blobs.

  • latenightnoir@lemmy.world
    link
    fedilink
    English
    arrow-up
    9
    arrow-down
    2
    ·
    21 days ago

    That moment when there’s one company with which you’d almost be OK if they turned into a monopoly (still no, though).

    • palordrolap@fedia.io
      link
      fedilink
      arrow-up
      37
      arrow-down
      3
      ·
      21 days ago

      Valve is that perfect example of being just shitty enough to be annoying without stepping over the line into complete enshittification. But this too will happen. I reckon there’d be good odds of it happening not long after Gabe retires.

      • latenightnoir@lemmy.world
        link
        fedilink
        English
        arrow-up
        8
        ·
        21 days ago

        That’s my main worry, and why I’d never want a monopoly of any sort with contemporary hierarchical structures.

      • 5C5C5C@programming.dev
        link
        fedilink
        English
        arrow-up
        4
        ·
        19 days ago

        If they ever go public then yes, enshittification is guaranteed. As long as they remain a privately held company, there’s a chance they can hold the enshittification at bay.

    • Uninvited Guest@lemmy.ca
      link
      fedilink
      English
      arrow-up
      17
      arrow-down
      1
      ·
      21 days ago

      … It’s the headline on PC Gamer.

      Also what does “stealing from Reddit”, an aggregator of Link’s, even mean?

    • pookie@lemmy.blahaj.zoneOP
      link
      fedilink
      English
      arrow-up
      9
      arrow-down
      1
      ·
      21 days ago

      Couldn’t have even changed the obnoxious thread title from when you stole this from reddit?

      I just crossposted it from Lemmy and didn’t bother changing the title. I’m not the one who took it from Reddit so calm down.


      Okay, I just looked and it was @alessandro@lemmy.ca who originally posted it to Lemmy so they’re probably the one who “stole” the title from Reddit. Be mad at them.