I’ve been having some trouble with texture mapping. After much to and fro, testing out different image files and generally going insane, I’ve come to believe that the texture coordinates are actually applied using an upper left hand origin. Is this correct, as none of the tutorials I have been following or the book I’ve been using (Addison Wesley OpenGL Programming Guide 7th Ed.), mentions this. In fact the book leads me to believe that it uses a lower left hand origin.
“To apply the brick texture to a wall, for example, assuming the wall is square and meant to rep-resent one copy of the texture, the code would probably assign texture coor-dinates (0, 0), (1, 0), (1, 1), and (0, 1) to the four corners of the wall” - Addison Wesley OpenGL Programming Guide 7th Edition, Page 97, Texture-Mapped Squares.
These coordinates are also used in the example code.
Am I insane or am I doing something wrong?