• Lembot_0001@lemm.ee
    link
    fedilink
    English
    arrow-up
    53
    ·
    7 days ago

    Mirrors are complicated. In the old times of the Build engine (the first one where the mirrors were present as I know), they were emulated by a window and a similar room behind that window with a model of the player moving synchronously.

    • sp3ctr4l@lemmy.zip
      link
      fedilink
      English
      arrow-up
      4
      ·
      edit-2
      6 days ago

      I mean, that is a pretty reasonable way to do a mirror, or a very glossy reflective floor (just throw a transparency/alpha layer over it and render it on top of the floor texture) back before… shaders as we know them today really got invented, and model poly count/texture res is not very high… and you specifically only do this kind of mirroring in enclosed, indoor areas that don’t have huge vistas.

      Like, I don’t think Deus Ex is on ‘the build engine’, but it certainly ultimately derives from it, and it does this.

      Then you get to HL2, and while, to my knowledge, HL2 doesn’t literally have ‘mirrors’ in it, you can basically do that by making a render target camera, the kind that displays in the game as a TV screen of some kind… well you could just point that camera right out of where the mirror is, and have the render quality/resolution be lower than the quality/resolution of the rest of the world.

      (ofc this wouldn’t work in hl2 just per se, because gordon isn’t actually rendered as a player model, but you could futz around in gmod not long after hl2 and do this, i know this because i did it)

      I am reasonably confident most modern games with mirrors … basically do that, just with an actual game settings slider to determine fidelity instead of all those settings that used to be baked into the map as it was with custom hl2/gmod/sourcemod maps.

      Water, window and world space reflections can/could also be set to just… render the whole world again in a lower quality… but prior to that, it was more common to bake a static ‘reflect map’ into your compiled map, as realtime duplicating the whole world can often be waaay too demanding.

      And of course now we have shifted over to the Real Time Ray Tracing paradigm, that is absurdly high fidelity but absurdly highly demanding, and that has neccessitated the development of frame upcaling and frame gen tech to balance out the performance losses from this absurdly inefficient lighting paradigm.

  • Gladaed@feddit.org
    link
    fedilink
    arrow-up
    18
    arrow-down
    5
    ·
    7 days ago

    It literally looks like an image though. Got a frame and everything and is at a weird ass location for being a mirror.

      • ComradeSharkfucker@lemmy.ml
        link
        fedilink
        English
        arrow-up
        11
        ·
        edit-2
        7 days ago

        Admittedly it does get posted often but your account is literally two hours old so I don’t think you can be blamed lol

        In fairness to the person who started this comment thread, you did post this in 3 different communities and it can be annoying to come across the same thing multiple times. Plenty of people do it though so I don’t think its a huge deal

      • lurch (he/him)@sh.itjust.works
        link
        fedilink
        arrow-up
        2
        ·
        7 days ago

        I don’t even mind. I was just curious. After writing my comment, I thought about how it would be cool to check pic checksums and show a repost counter.

        • Jumuta@sh.itjust.works
          link
          fedilink
          arrow-up
          4
          ·
          7 days ago

          I don’t think checksums would work, image compression/decompression is pretty common. There are definitely ways of doing it though

  • Tankie@lemmy.ml
    link
    fedilink
    arrow-up
    3
    arrow-down
    2
    ·
    7 days ago

    I don’t have a mirror - they are too bourgeois for proletarians like me