Additive Blending on the Nintendo 64

(phoboslab.org)

140 points | by ibobev 22 hours ago

10 comments

  • 1024bits 11 hours ago
    Discussed a bit more here in 2017-2018: https://forums.nesdev.org/viewtopic.php?t=16414
  • andrekandre 11 hours ago

      > Did you ever wonder why explosions and other effects looked so much cooler on the original PlayStation than they did on the Nintendo 64?
    
    yes! fantastic article and now i finally know why ^^
  • applfanboysbgon 10 hours ago
    > Did you ever wonder why explosions and other effects looked so much cooler on the original PlayStation than they did on the Nintendo 64?

    Begging the question, aren't we?! Of the examples displayed, I much prefer Star Fox's fx to Silent Bomber's. They fit the game's style well, and the explosions when killing an enemy are just the right amount of rewarding, while not being so ostentatious as to be distracting. SF64 nailed the game feel of destroying enemies, those small little intangibles that make the game satisfying on a visceral level, as Nintendo is so good at doing.

    • Chazprime 3 hours ago
      The Starfox explosions lack a realistic brightness level. They don’t appear to be emitting light the way the Playstation’s explosions do. Even the afterburner effect on Starfox’s ship looks muted.
    • Wowfunhappy 1 hour ago
      > Of the examples displayed, I much prefer Star Fox's fx to Silent Bomber's. They fit the game's style well

      ...I feel like the "style" you're reacting to is the "N64 style", which is to say that you've become habituated to seeing games built to the N64's specific limitations. If the N64 had launched with better alpha blending, then "N64 style" would include PS1-esque explosions, but it didn't, so you don't.

      It's like how people prefer 24 fps, because movies have long been recorded at 24 fps.

      Obviously, this is just my intuition and we'll never the know the alternate history. But objectively, I don't see why explosions which resemble physical spheres better fits the aesthetics of Star Fox. But, those sorts of explosions absolutely do evoke the N64. If I was creating an N64-esque indie game, I would want to avoid alpha blending.

    • ricardobeat 3 hours ago
      You missed the point, it is not about art direction. The effects in Star Fox have normal alpha blending and look "solid", you can see them as a floating poster board, while the PS ones actually look like light effects.
  • gblargg 9 hours ago
    It's the same issue you encounter with audio mixing. You have to clamp out-of-range values, even though they don't occur a lot. If you don't you get awful artifacts, and have to lower everything so that it can never overflow your range.
    • atoav 6 hours ago
      Gladly this isn't that much of an issue anymore since most audio mixing nowadays is done using floating point numbers (either 32 or 64 bits).

      Last week I made a test in Bitwig where I boosted a 0dBFS sine wave by 64dB into "clipping", exported it to 32 bit float wav, imported it again, reduced gain by 64dB and there the old sine was in all it's glory. Theoretically now with rounding errors and a loss of precision, but nothing audible.

      Of course as soon as you go into 24 or 16 bit fixed point representations (and you will have to eventually) that clipping becomes a problem.

      • Sharlin 1 hour ago
        There should be little loss of precision exactly because floating point is by definition precision-invariant over most of its domain – ie. 1.23456*10^-30 and 1.23456*10^30 are essentially the "same" number. Precision loss normally only occurs when combining numbers of different magnitudes.
  • keyle 10 hours ago
    Interesting so the N64 had a more flexible color blending process, and in doing that no clamping.

    So the 'good explosions' were possible on N64 if you did the blending+clamp by hand?

    • boricj 1 hour ago
      What I'm getting from the article is that to work around the lack of clamping in the RDP, it is set up for additive rendering with low intensity onto a 32-bit framebuffer to make use of its higher dynamic range. But that's way too dark for display, so the RSP is used to scale and clamp this down to a 16-bit framebuffer that is then displayed.

      Using the RSP makes this possible at a reasonable framerate, but it requires writing custom microcode for it and Nintendo didn't provide the necessary tools or documentation back in the day.

      My read is that this makes pseudo-HDR rendering techniques possible on the N64.

      • amlib 39 minutes ago
        >My read is that this makes pseudo-HDR rendering techniques possible on the N64.

        It is already possible, modern n64 techniques and microcode are scarily good:

        https://www.youtube.com/watch?v=XP8g2ngHftY (Tiny3D - HDR & Bloom / Post-Processing [N64 Homebrew])

      • Wowfunhappy 1 hour ago
        For what it's worth, Wikipedia says that some official N64 games did use custom microcode: https://en.wikipedia.org/wiki/Nintendo_64#Graphics

        > Nintendo 64 games running on custom microcode benefit from much higher polygon counts and more advanced lighting, animation, physics, and AI routines than its competition. Conker's Bad Fur Day is arguably the pinnacle of its generation combining multicolored real-time lighting that illuminates each area to real-time shadowing, and detailed texturing replete with a full in-game facial animation system.

  • omoikane 10 hours ago
  • rasz 1 hour ago
    You know what else didnt support additive blending? S3 ViRGE decelerator, Matrox Mystique mistake, nor NEC PowerVR PCX 1/2, afaik not even Permedia 1/2.

    Another pain point was multiplicative blending missing in even more early 3d accelerators.

    Then came 3dfx Voodoo doing all the blending modes for free.

    • Narishma 26 minutes ago
      > Then came 3dfx Voodoo doing all the blending modes for free.

      I'm pretty sure the voodoo came out before all the others you mentioned.

  • atan2 10 hours ago