• BallShapedMan@lemmy.world
    link
    fedilink
    arrow-up
    10
    ·
    4 days ago

    My son and I have had this very argument. I think the top one is right as he thinks it’s the bottom one. I have a coding background and he has a 3D printing background. I figure that’s why we’re different but I know nothing about 3D printing beyond the cool stuff I see on the Internet and things he’s printed for me.

  • hOrni@lemmy.world
    link
    fedilink
    arrow-up
    8
    ·
    4 days ago

    I’ve never heard of Y pointing up. Z is always up. Unless you’re talking about lathes, where Z points to the right and X points up. Whoever came up with that, I hope his frying in hell.

    • Klear@quokk.au
      link
      fedilink
      English
      arrow-up
      7
      arrow-down
      1
      ·
      4 days ago

      I’ve never heard of Y pointing up.

      Screen coordinates work like this because they are 2D. X for horizontal, Y for vertical.

      Oh, you need to sort your 2D graphics to figure out how to handle overlaps? Z it is!

  • JigglySackles@lemmy.world
    link
    fedilink
    arrow-up
    32
    ·
    3 days ago

    Z is elevation. Any real world application, z goes up down. 3D applications SHOULD use it for elevation. I despise that many do not. It’s so fucking confusing. 2D, sure y go brrr. But once that 3rd dimension is added, y needs to take several seats and quit trying to take on dimensions it doesn’t have any right to.

    • SkunkWorkz@lemmy.world
      link
      fedilink
      arrow-up
      7
      ·
      2 days ago

      Y-up sorta makes sense in games. Imagine a 2D platformer, Y is up and X is horizontal. Now add depth. Instead of flipping axis just use Z for depth.

      • JigglySackles@lemmy.world
        link
        fedilink
        arrow-up
        1
        ·
        2 days ago

        That’s the core of my point though. Once you add depth it’s not 2d space anymore (even though the screen is 2d, the represented field is 3D) and y becomes depth.

        • SkunkWorkz@lemmy.world
          link
          fedilink
          arrow-up
          2
          ·
          2 days ago

          It all depends how you perceive the XY plane. Like if your job involves blueprints than XY plane lies flat and horizontal then it makes sense that Z axis is height. Hence why engineering software is all Z-Up. If the XY plane is upright, like screen coordinates, then Z is depth. Hence why many software that is used to create content for the screen is Y-Up. Like Maya, Houdini, Unity, OpenGL etc.

        • SkunkWorkz@lemmy.world
          link
          fedilink
          arrow-up
          1
          ·
          2 days ago

          True but I think it’s also because of screen coordinates, Y is always the vertical axis in screen coordinates. So programmers translated that to 3D coordinates because in real world space the screen doesn’t lie flat but is up right. It’s probably why Y is up in OpenGL and calls the depth buffer the Z-Buffer.

    • unphazed@lemmy.world
      link
      fedilink
      arrow-up
      5
      ·
      3 days ago

      It makes more sense if you’ve ever drawn in CAD. Top view, x and y. Now side view, y and z or y and x. You look down on x and y, and if you are extruding you now create the z axis dimensions. For the people who draft on the side axis: you are true psychos (ok, unless you’re using a lathe I suppose, or if the silhouette is more defined from the side… ok maybe not psycho, just odd)

      • BanMe@lemmy.world
        link
        fedilink
        arrow-up
        3
        ·
        3 days ago

        User look sideways at item on shelf. Designers look down on paper. Both viewpoints are needed for it to be a good object.

        Architects do both because they have all that math and something serious to prove.

      • JigglySackles@lemmy.world
        link
        fedilink
        arrow-up
        2
        ·
        3 days ago

        I do use CAD software but always have my items resting on an x/y plane with z being height. I do some 3d printing and basic cad designs, so z being elevation still makes sense there.

  • L0rdMathias@sh.itjust.works
    link
    fedilink
    arrow-up
    18
    arrow-down
    1
    ·
    4 days 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
      3
      ·
      4 days 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.

      • Smoogs@lemmy.world
        link
        fedilink
        English
        arrow-up
        2
        ·
        4 days ago

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

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

    • moderatecentrist@feddit.uk
      link
      fedilink
      English
      arrow-up
      1
      ·
      2 days ago

      Good answer. Many posts are people saying “my approach is the right one, other people are irredeemable morons who should burn in hell”, but you’re right, it depends on your perspective.

  • Reygle@lemmy.world
    link
    fedilink
    arrow-up
    6
    arrow-down
    7
    ·
    4 days ago

    If you think the top of the frame is correct, may I just say fuck you? Thank you have a nice day

    • JordanZ@lemmy.world
      link
      fedilink
      arrow-up
      8
      ·
      4 days ago

      That’s how web pages are laid out so I’m use to it. X/Y for position on the page and Z for layering elements on top of each other.

        • JordanZ@lemmy.world
          link
          fedilink
          arrow-up
          2
          ·
          edit-2
          2 days ago

          Pretty sure they’re referring to game design here. If you had to position a character(stick figure) in a room(hash marks is a floor)…x/y being the position on the floor and z being the height in that room would make the most sense(the bottom picture). So in that regard, yes, the top imagine is fucked and I agree with the person I responded to.

          For webpage stuff the top is just how it’s always been. If you ‘just look at the z axis head on’ in the bottom picture you’d have to draw the stick figure standing on the wall either staring at the floor/celing. If you make the wall the new floor…we’re back to the top picture.

          • sem@lemmy.blahaj.zone
            link
            fedilink
            arrow-up
            1
            ·
            18 hours ago

            The thing about web pages though is they’re primarily 2D, with height /depth as an extension. That stick figure is “standing” in the “flatland” xy plane in the top picture, and has no height or depth from my point of view, where Z is canonically height/depth.

            It is all a matter of perspective.

  • TriangleSpecialist@lemmy.world
    link
    fedilink
    arrow-up
    5
    ·
    4 days ago

    I have nothing against y pointing up, but I loathe the fact that left-handed coordinate systems are somehow considered an ok choice. This is probably the strongest I feel about something so inconsequential but I’ll die on that hill.

  • moderatecentrist@feddit.uk
    link
    fedilink
    English
    arrow-up
    2
    ·
    2 days ago

    For me it’s the top one. In a web browser, when using CSS and JavaScript, x is the horizontal axis, y is the vertical axis, and z is for depth. Hence the z-index CSS property which determines depth.

    I would say the bottom one only makes sense if the stick figure were to hover in the air and look downwards. Then the z axis would be depth for him.