• YTG123@sopuli.xyz
    link
    fedilink
    arrow-up
    3
    ·
    37 minutes ago

    The upper system is left-handed, no way anything uses that. I’ve seen the same with the Z flipped in some video games and it’s not that bad

  • Sunsofold@lemmings.world
    link
    fedilink
    arrow-up
    2
    ·
    1 hour ago

    Don’t forget the third system, where y is inverted to come down from the origin at the upper left of the view as y increases.

  • etuomaala@sopuli.xyz
    link
    fedilink
    arrow-up
    15
    arrow-down
    1
    ·
    3 hours ago

    I legit had no idea anybody actually used the upper system until now. I had to read the comments just to see whether the upper system was just some sort of joke. I am horrified.

    • drcobaltjedi@programming.dev
      link
      fedilink
      arrow-up
      9
      ·
      3 hours ago

      It depends on how you view 2D->3D.

      If you’re thinking of a side scroller like the original Super Mario, Y is up/down and X is left/right making the new dimention Z being forward/backward.

      However if you think of 2D space like the first LoZ, then Y is North/South and X is East/West making X up/down

  • Caveman@lemmy.world
    link
    fedilink
    arrow-up
    12
    ·
    4 hours ago

    In a 2D game Y is up. Going from 2D to 3D would make sense to add another dimension forward to account for depth.

    However if you start with a map of a 3D surface then North is Y and East is X you’d add Z to account for elevation like everybody making maps would.

    I guess it depends on how you look at it.

  • L0rdMathias@sh.itjust.works
    link
    fedilink
    arrow-up
    13
    arrow-down
    1
    ·
    5 hours ago

    Z is always depth. Both are correct but define different perspectives. Top is looking across the landscape from an arbitrary floating perspective, bottom is looking down with anchored mapping to the surface.

    • isar@lemmy.ml
      link
      fedilink
      arrow-up
      2
      ·
      56 minutes ago

      Smh I was fine with both. The upper one reminded me of the X Y axis we use to represent functions in maths. While the lower one represents altitude on a 3D map.

    • juliebean@lemmy.zip
      link
      fedilink
      arrow-up
      2
      ·
      4 hours ago

      yep. in 2 dimensions, nobody really debates on whether x or y should point up, so i kinda think the debate about z stems from whether one thinks we should put the xy plane horizontally (like a sheet of paper on a desk), or vertically (like a chalkboard).

      does any software default to making x be the vertical axis?

      • Smoogs@lemmy.world
        link
        fedilink
        English
        arrow-up
        1
        ·
        5 hours ago

        Spent most my life working in a 3d environment… need to reverse that thing for a controller every single time

    • driving_crooner@lemmy.eco.br
      link
      fedilink
      arrow-up
      8
      ·
      6 hours ago

      If 2d, Y up, if 3d Z up.

      I always tough as inputs down, answer up. And usually, x is the variable y the result, or xy the variables and z the result

      • Sir_Premiumhengst@lemmy.world
        link
        fedilink
        arrow-up
        1
        ·
        6 hours ago

        Oh. Agree, also use the same convention; my brain never made the connection f(i, j) goes up and i and j are inputs and stay down.