- Thu Jun 23, 2011 11:08 am
#344009
Unfortunately there is no standard here. Y up feels more natural when you build 3D software because usually you think of the camera as looking forward. When you project from 3D to 2D you want to be left with X and Y, so Z has to be depth. The "competing" system feels more natural if you're usually looking at your models from above, in which case Z will be height, but projecting will be weird because Z will become Y.
Just to make things more confusing, some people also enjoy changing the chirality (or handness) of the coordinate system. When asked to draw an axis triad on a piece of paper, most people will draw depth as coming out of the paper, but some software has it going the other way. This is because with depth sticking out, only objects with negative depth coordinates (in camera space) are visible. This horrified some programmers so they put the depth axis going into the paper (or screen, or whatever) so that positive depth is visible, which in their view makes the world a much better place.
In reality it makes no difference which permutation you pick. I wish everybody would just stick to one axis layout and get over it. Converting between layouts is a major pain and will always lead to bugs because you always forget to do it somewhere, or do it twice, or something. There should be some kind of math Gestapo which throws people in jail when they decide to use a different axis layout compared to everybody else because they think it's better for some made-up reason (like positive depth being much better than negative depth). That way we'd have one layout and moving geometry from one program to another would go much smoother. Unfortunately there's no math Gestapo, so Max has Z going up, Maya has Y going up (with an option to use Z up which probably breaks every exporter and dynamics plug-in out there), Lightwave has Z going inside the screen and so on. I bet that if you look hard enough, you'll find a program which has X going down and Z going to the left or something like that.
PS: I once saw a teacher use X as depth. I felt like strangling him.