3 ms·
The Godot game engine has its 2d graphics origin at the top-left of the screen, with the positive Y axis pointed down. Having clockwise trig functions is a natu
by aezart 2y ago
The Godot game engine has its 2d graphics origin at the top-left of the screen, with the positive Y axis pointed down. Having clockwise trig functions is a natural consequence of that.
I think it's a fairly common setup for all 2D graphics software.
- Dalewyn 2y agoI don't think I've ever seen a graphical system of any kind that didn't have 0,0 at the top-left corner of the monitor or viewport either, with positive x going right and positive y going down. I actually didn't even think about it until now. Now it's going to bug me. God damnit. :V
- moefh 2y agoSomewhat related, bitmap files (.bmp) store the image lines in bottom-to-top order, effectively putting (0,0) at the bottom-left. It's the only image format I've ever seen that does that -- everyone else stores lines in top-to-bottom order, consistent with putting (0,0) at the top-left.
- dayjaby 2y agoWhat do bitmap and excel have in common? :D
- jampekka 2y agoE.g. OpenGL normalized device coordinates have x=0,y=0 at screen center, with top left being x=-1,y=1. It's easier to reason with in many cases.
- bikenaga 2y ago> I don't think I've ever seen a graphical system of any kind that didn't have 0,0 at the top-left corner of the monitor or viewport either, with positive x going right and positive y going down. Is that because the electron beam in cathode ray tubes scanned from top left to bottom right?
- tjalfi 2y agoOS/2's Presentation Manager had 0,0 at the bottom-left corner of the monitor.
- zmgsabst 2y agoI just checked and Adobe Illustrator does the same. I think it’s interesting that actually, they didnt change the rotation definition (from X+ toward Y+), but because it’s a visible change from their inversion of the plane, people believe they did.