Welcome, Guest. Please login or register. Did you miss your activation email?

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - Ruben

Pages: [1]
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.


2
Graphics / sf::Texture and OpenGL
« on: November 28, 2011, 09:02:30 pm »
Quote from: "Laurent"
Don't forget that texture coordinate (0, 0) is the top-left corner.


Is this correct? I am having the same problem with textures being upside down and all documentation and books I have looked at say 0, 0 is the bottom-left for tex coord.

I looked at the texture using gDebugger and it displays it upside down, as well.

Pages: [1]
anything