• etuomaala@sopuli.xyz
    link
    fedilink
    arrow-up
    10
    arrow-down
    1
    ·
    2 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
      4
      ·
      2 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
    9
    ·
    2 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
    12
    arrow-down
    1
    ·
    4 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.

    • juliebean@lemmy.zip
      link
      fedilink
      arrow-up
      1
      ·
      3 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
        ·
        3 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
      7
      ·
      5 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
        ·
        4 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.

  • halvar@lemy.lol
    link
    fedilink
    arrow-up
    3
    ·
    3 hours ago

    minecraft taught me english and it damn well taught me the correct 3D axes as well