[SOLVED]Transforming texture coordinates

Tutorials concerning the OpenGL® ES cross-platform API for full-function 2D and 3D graphics on the Google-Android platform.

[SOLVED]Transforming texture coordinates

Postby Shaka » Sat Nov 28, 2009 9:46 am

Hi!

I'm currently working on my 2D engine in OpenGL ES and I've encountered some problems. I'm trying to translate and scale texture coordinates, scaling goes well but translation doesn't seem to do anything. Does anyone know if OpenGL supports all texture transformations?
Last edited by Shaka on Tue Dec 01, 2009 8:44 am, edited 1 time in total.
Shaka
Developer
Developer
 
Posts: 44
Joined: Fri Aug 28, 2009 3:01 pm

Top

Postby Shaka » Tue Dec 01, 2009 8:44 am

Solved it. I was scaling the texturecoordinates and then translating with the wrong amount. It works now :)
Shaka
Developer
Developer
 
Posts: 44
Joined: Fri Aug 28, 2009 3:01 pm

Top

Return to Android 2D/3D Graphics - OpenGL Tutorials

Who is online

Users browsing this forum: No registered users and 2 guests