amitsarangi / mt4j

Automatically exported from code.google.com/p/mt4j
GNU General Public License v2.0
0 stars 0 forks source link

MTSceneTexture: texture vertical flip bug #8

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. If i have a MTSceneTexture object and set the Texture via setTexture
with a new GLTexture the  Texture is flipped horizontally(y-axis)
2. The same is in the opposite way: if i use a GLTexture from a
MTSceneTexture object via getTexture() i get a flipped image.

Original issue reported on code.google.com by stefan.s...@googlemail.com on 8 Apr 2010 at 4:46

GoogleCodeExporter commented 9 years ago
This is actually an OpenGL issue. If we render to texture using a FBO the 
texture is
flipped vertically.
To display it un-flipped, we have to flip the texture coordinates of each shape 
that
we apply the FBO texture to. In the MTSceneTexture class this is done 
automatically
in the constructor.

Original comment by sirhc.f...@gmail.com on 8 Apr 2010 at 9:55