Re:Deciphering the Business Card Raytracer
by mistercow on Sunday September 22, 2013 @04:28AM
(#6426227)
In non-programming math contexts, it's pretty standard for Z to point up. I have no idea why, as it seems to me like the typical way it works in graphics programming is the more obvious extension of 2D plotting into 3D.
[ Parent
| on HN ]
Re:Deciphering the Business Card Raytracer
by Sharlin on Sunday September 22, 2013 @06:01AM
(#6426338)
As far as I know, in the CAD world Z is typically up/down. It makes sense if you look at the scene from above, like an architect a floor plan - world-space X and Y map to screen-space X and Y, and Z is then the depth. In a 3D virtual world, on the other hand, the perspective is usually of a person embedded in the world, in which case "Y is up" is more intuitive.
Re:Deciphering the Business Card Raytracer
by mistercow on Sunday September 22, 2013 @05:12PM
(#6428039)
OK, thinking about the architecture angle finally made it click for me.
Re:Deciphering the Business Card Raytracer
by LeafStorm on Sunday September 22, 2013 @08:29AM
(#6426539)
When I took Calculus III, Z was up. When I took Engineering Physics the same semester, Y was up.
According to legend, this is why the Math and Physics departments hate each other.
Re:Deciphering the Business Card Raytracer
by bulte-rs on Monday September 23, 2013 @03:17AM
(#6429512)
So the difference between Math and Physics can be described as a single rotation matrix?
Re:Deciphering the Business Card Raytracer
by carbonik on Friday September 27, 2013 @06:08AM
(#6456210)
I thought it was coming from the fact Nobel's wife had an affair with a mathematician. Thus explaining why there is no Nobel Price for Mathematics.
There are several reasons to believe that that urban legend isn't true. One of them being that Nobel was never married.
Re:Deciphering the Business Card Raytracer
by mynameisfiber on Sunday September 22, 2013 @06:26PM
(#6428327)
With the right rotation, any direction can be pointing "up".
It makes sense if you think of the X and Y axis as being drawn on paper, which usually lies flat on the desk.
Re:Deciphering the Business Card Raytracer
by mistercow on Sunday September 22, 2013 @12:04PM
(#6426982)
Sort of, kind of, but it's a stretch. "Up and down" on a page are not oriented according to gravity, but according to the top and bottom of the page. If you say "Well, we'll make the z-axis vertical because vertical is perpendicular to the plane of the desk, and that's depth", and then you put the z-axis toward the top of the page, you're using two completely different definitions of "vertical" in the same sentence.
Re:Deciphering the Business Card Raytracer
by qu4z-2 on Sunday September 22, 2013 @09:30PM
(#6428778)
I always use Z for up/down even though I'm a programmer. For some reason I just find it easier to reason about. In fairness, my first forays into 3D were extending a 2D top-down game with an "altitude".