1
Graphics / sf::Texture and OpenGL
« on: November 28, 2011, 10:05:18 pm »
Grr, yes, tell me about it. I think it comes down to a fundamental misuse of cartesian coordinates for convenience. Image applications technically display (+, -), while GL uses (+, +).
An image that is 32x32 when displayed in an image app, or similar, the last pixel is being displayed at (+31, -31). Looking at it like this would confuse people so they just translate it to say both are positive and now many people are comfortable with a misrepresented cartesian system.
GL follows the "rules" and the last pixel is at (+31, +31), but I agree this gets confusing considering how much the former has been beaten into our heads.
At least this is my understanding, I won't pretend to be an expert on the matter. Image for clarity.
An image that is 32x32 when displayed in an image app, or similar, the last pixel is being displayed at (+31, -31). Looking at it like this would confuse people so they just translate it to say both are positive and now many people are comfortable with a misrepresented cartesian system.
GL follows the "rules" and the last pixel is at (+31, +31), but I agree this gets confusing considering how much the former has been beaten into our heads.
At least this is my understanding, I won't pretend to be an expert on the matter. Image for clarity.