Login  Register

Re: Flipped texture

Posted by Demoscene Passivist on Jul 14, 2010; 11:35am
URL: https://forum.jogamp.org/Flipped-texture-tp965264p966223.html

With "inverted" u mean "upside down" ? Thats normal. Its OpenGLs standard coordinate system for textures and was like this since the beginning. Take a look here:

http://www.opengl.org/resources/features/KilgardTechniques/oglpitfall/

Under "12. OpenGL's Lower Left Origin" they state:

"Another common pitfall related to 2D rendering APIs having an upper left-hand coordinate system is that 2D image file formats start the image at the top scan line, not the bottom scan line. OpenGL assumes images start at the bottom scan line by default."

So it has nothing to do with old/new JOGL.

My lucky guess is u forgot to migrate/port some kind of custom "texture flipping"-code that does the magic for u in the background.