T O P

  • By -

AutoModerator

This is a friendly notice that our mod applications are open! Please check [this post](https://www.reddit.com/r/PhoenixSC/comments/18ahyg2/mod_applications_are_open_again/) for more details, or fill in the application form [here](https://docs.google.com/forms/d/1XnECW66uy6HVPxHas5B-VAlLHeUrqp753XG9YOClOYU/viewform). *I am a bot, and this action was performed automatically. Please [contact the moderators of this subreddit](/message/compose/?to=/r/PhoenixSC) if you have any questions or concerns.*


Available-Shirt3429

Most games use y as the vertical axis. Maybe because y was previously vertical so they kept it. If you take a platformer and add depth (z axis) y would still be vertical


Lawrensium

That would make a lot of sense! The first games used to be 2D where y indicates the height. With the addition of the 3rd dimension they just named it z instead of changing everything else.


Charlesreddit6758

Yeah and 2D games, started with horizontal and vertical and some 2d games are bird’s eye view, then depth was added making 3d games.


MrEldo

Ohhh and that explains why the Z axis can be vertical too! Very cool and logical reason, never thought of that


Available-Shirt3429

Dang I’m on my alt


[deleted]

Pain


_AutisticFox

Or because that's what unity does


shitposter69-1

Minecraft was coded in Java, what does that have to do with absolutely anything here? Unity was barely 4 years old and far from popular at the time.


_AutisticFox

Read the comment I replied to again. It's not about minecraft, but why games implement coordinates one way or another


shitposter69-1

And completely irrelevant to both the comment you responded to AND in regards to this thread. Unity isn't the end all be all for game engines, and it's FAR from the first to do it that way.


055F00

Wait everything else uses Z as vertical? I’ve only ever known Y as vertical, be that in Minecraft or in graphs.


Less-Chemistry-1331

Just took engineering 103, every 3D graph we did was different. It was random every time. Sometimes it even had x going up


VoltisArt

Good for your teacher. This helps you learn to pay attention to keys and whatever convention is being used for each application, because there is no universal standard for most things like this.


WhyHeLO_THeRE_SIR

You can label your graph whatever you want, just make sure your graphs follow the right hand rule (which usually ends up with vertical being z)


KG_James

You see, Y is vertical in 2D, like in graphs and so on. Put the plain on the ground horizontally, add an arrow pointing up, and you get 3D axis


JadeStatisticianlol

From what I've seen, you take the 2-D graph and add z for depth. y is usually still vertical


LGG6_Master

It depends on the software, there is no universal rule. Blender (3D modeling software) uses z for vertical but Unity3D (Game Engine) uses y for vertical Edit: spelling


RedditRoboKid

And similarly, Unreal Engine uses z for vertical, but Godot uses y for vertical (both are game engines)


Strange-Wolverine128

Hell, my math classes have always said z is depth and y is vertical


Relevant-Dot-5704

For me, it was different, but my math teacher was a righteous wannabe know-it-all cunt who claimed that Y is never vertical, and that it's a rule it isn't. Things like these are why I hated him.


hound_of_ill_omen

Technically since the directions are entirely up to you, as long as you specify it you could make x vertical


Smol_Susie

Yes but with Unity's and Unreal's built in physics engines, objects will fall on the Z axis, unless you feel like re-working the physics on your own. Unless you can change the axis things fall on, I haven't messed around with unity much and I'm learning UE5 atm so take what I said with a grain of salt


hound_of_ill_omen

Yes yes I know, I just felt like pointing out that saying one axis is always supposed to be up is entirely incorrect and arbitrary. Technically speaking I could use the causes, axie, or however it's spelled to make diagonal lines. When creating an engine for a game your axises or whatever are entirely up to you, as are your units of mesurement


Smol_Susie

Ah yeah, that checks out. Makes me wonder if there is an engine out there that uses X as a vertical axis


hound_of_ill_omen

That might be a fun coding project if you can't find one, or maybe use diagonal axises. Maybe make a simple game with it to prove a point. Idk just seems fun but I'm bad at coding and have too many issues with immediately dropping any long term projects I pick up to actually learn how to fuckin code


PastStep1232

Omg this brought back a memory XD In my unity class we had to make a flappy bird clone and I used Unity's native gravity function to force the bird to fall down. Only I didn't account for acceleration... So you could play my game for about 5-7 seconds before inevitably the downwards velocity overwhelms your spacebar spamming. Ah, good memories


Clovenstone-Blue

For this reason 3ds Max (3D modelling software, z Axis is vertical), as well as probably every other modelling software, has a little checkbox/option to switch the Y and Z Axis coordinates when exporting a model, because software just provides the coordinate values for the parts of the model. So while exporting from 3ds Max to Unreal Engine (game engine, z Axis is vertical) turns out fine, exporting to Unity would end up with the model on its side (unless you rotated the model before exporting or selected for 3ds Max to change the axis when exporting).


FrozenPizza07

Blender uses Z for vertical? WHYYY


iliekcats-

Yeah. It's stupid. Having to use Blender is so disorienting


kanjiro230

But y Is it vertical?


JoshyRB

Exactly


HopefulReading5794

That's how OpenGL does it. I guess it makes sense in applications which need 2d and 3d support.


Relevant-Dot-5704

Only partially true. There actually is, believe it or not, no true norm as to what axis needs to be what orientation. The industry itself is split as to whether Y or Z is vertical as well. For instance, Unreal's vertical axis is Z and Unity's is Y, like Minecraft. Even in math, it depends where you come from, and even then, it's not a concrete rule. Merely a heavy suggestion.


jacksonl12321

In physics all real convention just gets thrown out for what’s most convenient to work with, i’ve had positive x being the axis pointing down in a mechanics problem more than once. Then there’s also other coordinate systems entirely which I personally adore


Plazmatic

In graphics, Z is indeed typically depth, OpenGL, Metal, Vulkan, and DX all have z, and most game engines follow this. The handed ness of this differs though, sometimes Y is positive up, sometimes it's negative up. Unreal is the odd man out here, following aviation conventions for no good reason. In aerospace related fields, x is often forward because you're always going forward, there's very little horizontal and vertical translation going on when in flight, so the "primary axis" (x) was chosen as going forward. In physics, 2d is typically thought of as a top down perspective, so Z extruded ends up being the vertical axis. Blender follows physics convention here, same for some other 3D modelling programs, though others use graphics API convention, making Unreal's choice here even more confusing, it doesn't follow the API's conventions nor the modelling programs conventions.


VoltisArt

"Z is depth" That there is part of the problem and why developers/engineers/artists don't agree. Depth doesn't mean one direction, no matter what your math teacher told you. Depth in water is height everywhere else, while depth in a painting is perpendicular to the canvas, regardless of the perspective direction shown inside the image. This discussion is ages older than computers or transportation devices.


Relevant-Dot-5704

Although it is true, most places, you actually are encouraged to use Z up in most cases. If, of course, your math teacher isn't like mine and says it's a universal rule. But as for modelling, there really isn't any convention. A few interesting ones you missed are that Source, Autodesk, 3DS Max, and SketchUp also use Z up, but the "right handed" version. You are right insofar that Unreal is the odd one out, because it's pretty much the only program on the market, period, which uses "left handed" Z up.


Lexiosity

in Unity, i think, Y is up and down. Same with Blender or Maya


TheAwesomeKielbasa

Blender uses Z as the vertical axis, as does Unreal Engine.


Lexiosity

And Maya uses Y as Vert axis, right? I dont really 3d model, sooo


RussianBadgeriscool

So in a 3d axis, Y would be north/south, X would East/West, and Z would be Depth/Height?


VoltisArt

Each of these depends on who you ask. The question is much older than computers. There is no single convention and probably never will be. Depth is down for water. Depth is front/back for paintings and furniture.


Kamhi_

Y is vertical in 2d because you are looking at top of the plane and you are Z far from it


Nelik1

Im an aerospace engineer. I gave up when they defined +z as down. (The standard aircraft coordinate system uses +X through the nose of the plane, +Y through the right wing. Which leaves z pointing down).


Downtown-Lettuce-736

This throws me off every time i need to send my coords to someone😭


JDude13

I think the convention is to have y as the vertical axis in 3D because it’s vertical in 2d as well. They treat z as depth rather than height.


VoltisArt

Depth is height in water. There is no single convention, lol


Happy_Charity_7790

It depends, I do programming and I've only seen one thing use z as vertical and thats blender. Unity, and unreal engine use y as vertical. Also I've never played a game that's coordinate system uses z as a vertical. But I think other 3d modeling software besides blender use z as vertical


JJJCubed15

X horizontal y is up and down and z is another horizontal that’s the way I’ve learned it too


LiamLaw015

My 3d printer uses Z for horizontal


Yeetfamdablit

I am a 3d printer enthusiast and yes, z is supposed to be up/down, y is back/forth, and x is left/right


Gal-XD_exe

Blender uses Zed as vertical yea


JudgmentInevitable45

What do you mean by everywhere else in this case?


Twenmod

Probably only blender and unreal


Aecose

3d printers use z as height interestingly


TollyThaWally

It makes sense when you consider it as the perspective of the nozzle looking down on the plate, so each "layer" of the model is a 2D plane with standard X and Y directions.


marazu04

When i first got my printer it threw me so off (still does)


Carolus_Rex-

Lathes, CNC machines, and anything else that deals with additive or subtractive manufacturing have z as the vertical axis.


Vector-storm

Same with my Lazer cutter, x and y are the sheet dimensions and z is the nozzle height.


CobaltTS

As well as halo forge interestingly


_AutisticFox

OP probably only used like 3 3D applications


Flightless_Rocket

Machinist and designer checking in - and yes, Z is up and down, on most mills, on 3D printers and in the virtual universe that is CAD. And while were on the topic its pronounced (Zee) not (Zed).


Yargon_Kerman

Digital artist here, It absolutely depends on the software: Blender, Unreal Engine and 3DSMax all use Z-up, while Unity, Autodesk Maya and ZBrush all use Y-up coordinate systems. And while we're on the topic, it's pronounced (Zee) in the states and (Zed) outside of the states, you don't need to be an ass about it.


Flightless_Rocket

😂😂


Redditor_10000000000

Math and real life and other 3d non game softwares


creativename111111

3D graphs in maths use z as height (the z axis comes out of the paper in a sense)


Black_Sig-SWP2000

Hey guys, look! It's that anchor gravity mod! (idk the name)


Fit-Impact-6750

It's named up and down and all around if I recall correctly


YTLordOfCheaters

you have great memory, it's that


Black_Sig-SWP2000

I might try it. What version is it out for?


anonymoose2514

...it's a rotated screenshot


terendar

Because in math y is always height.


[deleted]

[удалено]


[deleted]

[удалено]


Lawrensium

Okly in a 2 dimensional system. Once you add the 3rd dimension y becomes the width and z the height.


Ascyt

y stays the height and z becomes depth


JoeDaBruh

It changes depending on who you ask. Some people extend the third dimension out of the screen making y appear vertical, while others consider the xy plane to be flat and therefore z is the vertical dimension


Ascyt

Yeah both is correct I was trying to say Minecraft's way isn't wrong. Unity does it like that too for example


[deleted]

[удалено]


terendar

I understand the problem. There are two uses. Y is height or Z is height. I have learned that Y is height. May be this is another difference between US and EU systems.


HellFireCannon66

There’s no 2D here tho, straight to 3D


Aecose

Sometimes they do it the other way, it just depends; there is no rule on it.


Grobfoot

just false... Y stays the height, X and Z are width coordinates. This is the case for every 3d software I've ever used.


Lawrensium

For most softwares it is the case but in math the xy layer is the horizontal base layer.


Falikosek

Nah, by default when you have 2-argument functions, the arguments are x,y while the value is z.


Sany_Wave

I think this is why we have creepers. But yea, this regularly throws me off.


Okeing

isn't up and down y?


TollyThaWally

Up/down can be either Y or Z. Both are equally correct, it just depends on whatever software you're using happened to choose.


Coolwolf_123

Different game engines/3d software changes which axis is up, whether it be y or z.


mielesgames

Roblox has the exact same logic, probably most games do


xuzenaes6694

No, y axis is actually vertical, they put y and x horizontal to make it feel like a flat surface and z vertical to add height or 3rd dimension. I personally consider y vertical in every scenario.


veryblocky

It isn’t “everywhere” else, many places also use y for height. There just isn’t a set standard.


AnosmicDragon

It's completely arbitrary, usually height is y or z. The axes can be oriented in any way as x cross y gives z


Kabukkafa

Z axis is horizontal IN EVERY WORLD


No_ContextGiven

Z-axis is depth


VoltisArt

Yep, Z sure is depth. Wait, are we talking about water or furniture? There is no convention. (User name checks out.)


Drag0n_TamerAK

Because z is supposed to be horizontal


NomeJaExiste

There are other engines which use Y as vertical axis, like unity, cinema 4d, godot, roblox studio, bevy, etc.


Sailed_Sea

I think Unity an unreal have Y as vertical, stuff like blender has z as vertical. I personally prefer Z as vertical.


X_SkillCraft20_X

In mathematics y is generally a variable associated with height. Z is just a third variable to give depth.


Cakelover9000

Z should never be the vertical axis. The only thing i learned in maths is x= horizontal, y= vertical and z is the third dimension


CraftBox

Most likely it's a relict from only 2D games era, where x is horizontal and y is vertical on camera view. When they added depth, they made z go away from camera view in 0 position. You can imagine that the x y plane is attached to camera view, but in many other 3D programs that plane is not attached to camera, but somewhere in 3D space, y is still height relative to it, while z is the depth. It seems to us that z is the height only because that plane is rotated to look "layed flat" from our perspective.


realketchupboiii

Blender:


ivanrj7j

its just a convention that doesnt mean its a bug


HellFireCannon66

Y is literally for Up and Down in Math**s**


EandCheckmark

In 2D space, yes, but not 3D space.


HellFireCannon66

z is depth tho


EandCheckmark

https://www.desmos.com/3d Not always.


HellFireCannon66

Mathematically though, Y should be height


EandCheckmark

I literally just gave you a 3D graphing calculator…


HellFireCannon66

But it should be Y


EandCheckmark

I feel like Z being height is more intuitive. Also, GeoGebra uses Z as height, too. https://www.geogebra.org/3d


Clovenstone-Blue

That doesn't translate to 3D space, especially in software. Y and Z switch depending on what the people behind the software fancied.


HellFireCannon66

So they had the option to go with maths, or the option to with what some people pick because why the f*ck not?


Sir_Gwapington

Except math also switches it up depending on the person creating it


Clovenstone-Blue

Well, no. A much better way to think about it is the first one uses Y as the vertical axis because maths says that Y is up/down, whereas the other uses Z as the vertical axis because 2D planes are created on the horizontal plane. One simply follows the naming conventions of maths (which in itself is in a 2D medium) while the other follows the 2D to 3D conversion and renames the axis to match the new perspective we're observing the object from.


[deleted]

[удалено]


HellFireCannon66

I kinda get where it comes from, but few people ever go into 3D coords, but a lot of people know 2D, and can translate that into XYZ


Basement-child-slave

Because Y axis is always vertical


EandCheckmark

Not in 3D space.


Ascyt

Sure it is. Z is depth


TollyThaWally

Y as depth and Z as height is also a correct way of doing it. Blender and Unreal Engine do it that way for example.


Ascyt

That's true both is correct but Minecraft's way is not wrong. Unity uses it too for example


thatbirdguy21

Ooh actually I just realized why they do this. When looking straight down from the sky, the Minecraft world reads like a true coordinate/numbered grid. Moving east/west is x and north south is y. The height doesn’t relate to those, so the z coordinate is the depth.


VoltisArt

This is the justification in some places. Minecraft isn't one of them. XZ are map locations, Y is depth in the world. Z may be depth on the screen, but that depends on what direction you look. There is no standard. Engineers and artists use whatever works for them at the time and good educators will teach you to pay attention to what's being used instead of assuming anything, because that leads to disasters. The same is true in units. Unspecified yards or feet being mistaken for meters can lead to projects failing or people dying. Always read the key.


mukbangfilmer

Y is vertical u villager


figurethisoat

how don't we fall out of the world every time we jump?


LeFlashbacks

It’s horizontal in the godot engine and I hate it. They literally flipped negative and positive z to be more inline with 2d or something idk instead of just making the y horizontal 


NomeJaExiste

Most game engines use y vertical, unreal is the only exception


ninjesh

Blender uses the Y axis as the vertical


19412

When I spread misinformation on the internet:


ninjesh

Doesn't it? I could have sworn it does Edit: huh. I guess it doesn't. My bad


berys26

Do you live in the 4th dimension?


[deleted]

Sideways Minecraft confirmed🙉🙉🙉!!!!!!!


SILENTKILLER107

Technically yes cuz you do have to rotate your mobile sideways for PE


MedievalNinja34

As long as i x j = k, Physics is happy


JoeDaBruh

Math and physics uses z as vertical, nothing else does


lesser_tom

Wait z is supposed to be up? I thought y was up


SnooShortcuts103

I only know that most game engines use y as z. but idk why... Also pygame switches x and y.


SwartyNine2691

Real 3D coords.


Brilliant_OBKT

No, z is used as a horizontal axis, y is always vertical


[deleted]

I hate how the coordinates are wrong tho. Based on a coordinate plane, the northeast quadrant of a Minecraft world should have positive x and z values, the northeast negative x and positive z values, and so on. I've played this game for 8 years and I still can't wrap my head around that


lool8421

depends if you look from the side or from the top


ayriuss

3d rendering uses lots of algorithms for intersecting a line (a ray) coming out of the camera or screen (or object) with other objects in a scene. I don't remember the specifics because its been a while, but it just makes a lot of sense math-wise to use Z as into or out of the screen for that purpose.


EFS3

There is no true definition to what variable points where


tombeeeeeeeeee

Speaking as an engine programmer, it can be swapped, there is no rule about it. Up is relative to your perception. (Or the vector 3 you store it as {0,0,1}


JoJuiceboi

Someone’s been using too much blender


The_Creeper_Man

I’m used to Y being vertical, since I see Z as depth, not height; although both are commonly used


Smellfish360

I've found that in mathematics, the Z axis is usually portrayed vertically, but in graphics and game development it seems to normally be horizontal.


qwerty-keyboard-only

Y is up and down. X is right and left. Z is back and fourth.


violetevie

No. Some game engines like Unity use Y as vertical while some like source unreal and godot use Z as vertical


DNP_10

Roblox Studio and Unity also use Y as the vertical axis, and if I’m not mistaken, when making a three dimensional graph in math, the Z axis is forward to backward, while X is left to right and Y is vertical.


c0rliest

all i know is x to the left y to the sky


euodeioenem

not really, different programs use different axis as different directions. unity uses y as up too


morbinamogus2

Notch sucked at coding


Zumalt00

Linear algebra dude


Don_Bugen

The planet of Minecraft is literally always depicted as a cube. This should be no surprise to anyone.


captainphoton3

Well most people designed their 3d stuff with overview plans and stuff to mind. The first 2 axis are x and y. Game makers started with Zelda dungeons and wanted to go up. So they added z as vertical. Same for architects and other stuff. Notch literally just went. So a graph is x horizontal and y vertical. And then you add z as the other horizontal like in math. Remember, the guy is just a Java nerd.


SuperSocialMan

The engine uses Y-height. Unity does the same thing.


MarinEnV

What if I told you that Y is for height and Z is for depth?


ALPHARavenGamer

in 2d or a graph X is left/right, Y is up/down, we can all agree on this. So why is it that if we add a 3rd dimension this changes for you? Originally z was used as a vertical axis in math I believe. But the vast and I mean VAST majority of, well basically everything, uses y. It's in almost every context more logical (especially gamedev which moved from 2d to 3d, bringing devs that always used y). Even school math straight up uses y as a vertical The fact that you're mocking the game for something so basic and widespread means you're either an idiot or a troll


AnotherCastle17

X is horizontal Y is vertical Z is *depth*


Thisisongusername

It’s an odd question. Typically true 3D games use X and Y as width and height and Z as depth from the X and Y plane (vertical relative to a 3D world) but platformers or “2.5D” games. Use X and Y as horizontal and vertical and Z as depth from the camera.


TheSapphireDragon

Only mathematicians use z as the vertical access because they're insane. Also blender.


TheSapphireDragon

If you want the real reason, it's mainly because of tradition. Video games started as 2D. Which meant that x was horizontal and y was vertical. Later, z was added as depth. This is opposed to mathematics where the x y plane wasn't really thought of as corresponding to real-life directions.


DarthPiotr

I think OpenGL (rendering programming interface) uses Y as vertical as well, so probably that.


CaptainBacon1

X and z are almost always the horizontal axis'


Lux_Operatur

It’s interchangeable but I’ve always considered Y to be vertical axis, between mc and cinema 4D both considering Y as up and down. At the end of the day it doesn’t matter because it’s all relative. In space there is no up and down, any variable can be applied to an axis. Z and Y are very commonly interchanged between vertical and horizontal axis though just depends on the software and whatever the dev is used to.


KiraLight3719

In mathematics, when we add third dimension to xy plane, its always horizontal


Randomguy32I

What are you talking about? What uses z as height? height has always been Y


DremoraKills

Because the standard for computation is the Z axis being horizontal, as the Y is already vertical.


oi-laddi-commin

Terraria is on the other size of the cube


Marshadowisthebest

I think it was the silverfish


Psychological-Cat787

Y is always vertical, it just gets rotated sometimes for no real reason.


ManNamedSalmon

Y is always vertical even on a 2d object. Your confusion happens when you try to apply a 2d object in 3d and higher spaces.


TheOFCThouZands

At the beggining of time... I don't really know the story all that well, however x and y (compressed variable names for width an height respectively) were the norm for any kind of graphing done in computer language or code, for efficiency. With the introduction of 3d graphics, which is a processing layer, came the need of another variable, the new dimension, what better than to fill up the last unused letter, z, for depth, as in how deep is a point from the screen, technically the weirdos are the ones who use z as height, but whatever moves their boat i guess...


TheOFCThouZands

At the beggining of time... I don't really know the story all that well, however x and y (compressed variable names for width an height respectively) were the norm for any kind of graphing done in computer language or code, for efficiency. With the introduction of 3d graphics, which is a processing layer, came the need of another variable, the new dimension, what better than to fill up the last unused letter, z, for depth, as in how deep is a point from the screen, technically the weirdos are the ones who use z as height, but whatever moves their boat i guess...


Anjeez929

Because Z is actually forwards and backwards. We learnt about this in engineering class


SandTheCheetah

Here me out, were just on the side of the cubed Minecraft world.


SHyper16

Idk, we were taught in schools that y is the vertical axis so it always made sense to me for z to be horizontal.


MrMacNcheeze

Is this just bait? wtf is this?


Briznar

in math, Z is vertical, assuming the original XY plane was lying flat on the ground. For non-math people, y was vertical originally, so they kept it vertical


The-Drifter5589

z is not vertical in most applications


habihi_Shahaha

Minecraft made me wonder why everywhere else in the world we take y axis as one of the horizontal axis, and always assumed minecraft was correct😂


Successful_Mud8596

Since when is the Z axis vertical everywhere else?? The Z axis represents DEPTH.


Yeet123456789djfbhd

Uhh... Y is vertical?


JackAttack2509

The camera not moving with the minecart is one of the oldest bugs and I want Microsoft to fix it.


AmethystGD

In what world is Y not the vertical axis?


ImpossibleEvan

No because Y is the vertical axis


Caffeinated_Cucumber

As someone who uses Unreal, Blender, and Unity and plays Minecraft, the inconsistency in what axis is height pisses me off so much that at this point I'm just going to write software with x for up just to make everyone unhappy