It’s typically vertical, but you can name your variables however you want.
Comment on The more you know
jaschen@lemmynsfw.com 10 months ago
Isn’t the Z axis vertical?
PM_ME_VINTAGE_30S@lemmy.sdf.org 10 months ago
MacNCheezus@lemmy.today 10 months ago
The Z axis is usually used for depth, so it’s going to be perpendicular to whatever your frame of reference (i.e. projection plane) is.
If it’s upright in space, like a computer screen, the Z axis will be horizontal. If it’s a sheet of paper on a desk, then yes, I suppose it could be argued to be vertical instead.
CheesyFox@lemmy.world 10 months ago
in lots of 3D software Z is horizontal
jaschen@lemmynsfw.com 10 months ago
All the 3D printer software, Z is vertical. But I only used a couple so I am not an expert.
VikingHippie@lemmy.wtf 10 months ago
All the 3D printer software
But I only used a couple
🤔
jaschen@lemmynsfw.com 10 months ago
Yup.
victorz@lemmy.world 10 months ago
Horizontal going into the screen right? The depth axis, if you will.
experbia@lemmy.world 10 months ago
not consistently. I find there are basically two schools of thought in 3d graphics:
-
the screen is a graph representing a 3d space: the x axis is horizontal, the y axis is vertical. depth, going ‘into’ the screen, then becomes the z axis. mathematicians and programmers tend to like this.
-
the screen is a camera viewing a 3d space from within itself: the coordinates to position yourself along a line is one dimensional: x. to position yourself on a plane as in a 2d game, two dimensional: x, y. to position yourself within a volume, three dimensional: x, y, z. humans are kind of inherently planar spatial navigators - it’s easy to think about our position in terms of “where on the ground” we are, then adjust for height. 3d artists and level designers tend to like this.
victorz@lemmy.world 10 months ago
Ah I see. Thanks. I’m used to the first line of thought, as that’s what I’ve been using when doing 3D programming.
-
victorz@lemmy.world 10 months ago
No? That would be the y axis.
MacNCheezus@lemmy.today 10 months ago
Not in bistromath.
Aurenkin@sh.itjust.works 10 months ago
Indeed, a common mistake for newcomers to the field.